Commit Graph

34 Commits

Author SHA1 Message Date
Christopher McArthur
8086b6ded2 exporting picojson 2020-01-20 20:56:08 -05:00
Christopher McArthur
1659e8181d using picojson from vcpkg 2020-01-19 17:38:31 -05:00
Christopher McArthur
96528a8872 first draft for cmake support 2020-01-19 17:16:40 -05:00
Christopher McArthur
e342957e69 rm third part headers 2020-01-19 15:19:12 -05:00
Norbert Pfeiler
bf75dbb815 update picojson 2020-01-02 14:28:07 +01:00
Dominik Thalhammer
9bf29556db Bugfix incorrect padding of ECDSA signatures
see #49
2019-12-18 20:04:46 +01:00
Arnaud Desitter
6e6c73e54c Fix memory leak in ecdsa::verify 2019-12-16 11:35:27 +00:00
Dominik Thalhammer
f85c63806d Make algorith constructors explicit
see #39
2019-09-12 10:18:53 +02:00
Dominik Thalhammer
27f32983fb Bugfix for set_algorithm 2019-08-10 21:27:30 +02:00
Dominik Thalhammer
9c7ae911ee Allow constructing an claim from an container.
closes #35
2019-08-08 22:34:53 +02:00
Dominik Thalhammer
2b85b34ecc Make sign method const and add noexpect where possible.
closes #37
2019-08-08 22:22:38 +02:00
Dominik Thalhammer
aafd0b542f Change variable names
closes #30
2019-06-18 12:03:29 +02:00
Dominik Thalhammer
1d2b1bac13 Code cleanup + Bugfix 2019-05-07 13:42:37 +02:00
Dominik Thalhammer
4e74d111c0 Allow loading only private key
fixes #21
2019-05-06 10:24:13 +02:00
Dominik Thalhammer
273c9e325a Fix codacy for real 2019-05-05 20:18:56 +02:00
Dominik Thalhammer
d6c54a4647 Cleanup typecast and fix false positive in codacy 2019-05-05 20:04:51 +02:00
Pliable Pixels
3dbc5a0929 typecast to avoid errors 2019-05-05 11:22:34 -04:00
Martin Flaska
c80539368f Fix checking for fallthrough attribute support for older compilers
GCC 4.9 (tested on 4.9.3)  doesn't have __has_cpp_attribute.

Compilation fails with:

include/jwt-cpp/jwt.h:1139:24: error: missing binary operator before token "("
 #if __has_cpp_attribute(fallthrough)
                        ^

Signed-off-by: Martin Flaska <flegy@flegy.sk>
2019-05-02 12:26:27 +02:00
Dominik Thalhammer
f0e37a79f6 Added helpers to load cert instead of public key
closes #18
2019-04-20 22:06:02 +02:00
Dominik Thalhammer
eb8c30c304 Use empty body instead of default function
closes #19
2019-04-20 21:38:04 +02:00
Dominik Thalhammer
2b3ddae668 Added string overload for audience setter (#13) 2019-02-18 18:55:12 +01:00
Dominik Thalhammer
7169e4d0b8 Bugfix invalid aud handling
aud field might be a string instead of a set if there is only one.
closes #13
2019-02-18 16:13:26 +01:00
Dominik Thalhammer
c9b7a6c181 Doxygen documentation 2018-12-06 20:43:57 +01:00
Dominik Thalhammer
6c91034b17 Bugfix, cppcheck fixes, picojson update
* Updated picojson to current master
* Fixed a bug where wrong variable was used
* Fixed some style issues detected by cppcheck
* Added explicit modifier to jwt::claim. Enable them by defining JWT_CLAIM_EXPLICIT to 1. This is default off for compatibility, but will be default on at a later time.
2018-12-05 13:01:32 +01:00
Dominik Thalhammer
c232c6ae7b Small fixes for G++ 7.3
closes #10
2018-11-26 18:24:24 +01:00
Dominik Thalhammer
1357588eb9 Added support for PS256, PS384 and PS512
Added support for RSA-PSS signatures
closes #2
2018-10-07 23:37:44 +02:00
Dominik Thalhammer
572ec3526c Merge pull request #3 from ThalmicRevane/fix_warnings
Fix warnings in JWT
2018-08-02 15:40:35 +02:00
Edwin Vane
c7e8f87192 Fix warnings in JWT
JIRA: None
2018-08-02 09:27:37 -04:00
Edwin Vane
43c280595d Mark global functions inline
Without this including the jwt header in multiple translation units will
end up with ODR violations.

JIRA: None
2018-08-02 09:25:44 -04:00
Andrey Galushkin
55cf120e5b Fixed std::chrono::_V2::system_clock::time_point 2018-07-14 16:26:57 +03:00
Andrey Galushkin
8a6961ba7c Added support for openssl 1.1. Removed gtest src dependencies 2018-07-14 14:59:27 +03:00
Dominik Thalhammer
70eec9d017 Fixed ecdsa and small improvments 2017-11-02 15:25:40 +01:00
Dominik Thalhammer
fda6dd069d Add ecdsa 2017-10-31 16:06:39 +01:00
Dominik Thalhammer
72d2b32c5d Initial code commit 2017-10-30 22:06:53 +01:00