Christopher McArthur
ddffc6c03c
detection idiom to help validate traits
2020-05-21 22:04:21 -04:00
Christopher McArthur
474a870889
adding verification test
2020-05-20 21:24:46 -04:00
Christopher McArthur
8ba9dc1b96
correcting sstream reset
2020-05-20 21:13:16 -04:00
Christopher McArthur
cb9165b3ba
using operator<< instead of function call
2020-05-20 21:04:56 -04:00
Christopher McArthur
b3de79da98
testing just picojson templating
2020-05-20 14:26:48 -04:00
Christopher McArthur
767c3fc827
[skip ci] more progress
2020-05-20 14:23:28 -04:00
Christopher McArthur
f5e3716c99
[skip ci] more progress
2020-05-19 23:33:19 -04:00
Christopher McArthur
41d767d926
traits v2
2020-05-19 22:54:55 -04:00
Christopher McArthur
45ccd617ad
rough nholmann/json traits
2020-05-19 21:34:40 -04:00
Christopher McArthur
56ffe083ae
tester that compiles
2020-05-18 22:25:19 -04:00
Christopher McArthur
494cb2c051
wip
...
low laptop battery
2020-05-16 21:30:08 -04:00
Dominik Thalhammer
0c803ed905
Merge branch 'master' into verify-aud-string
2020-05-02 14:59:09 +02:00
Chris Mc
d8f1170826
simplified object compare
2020-04-15 23:44:45 -04:00
Chris Mc
c9d04be14a
adding support for aud as string
...
making sure to compare complex objects in verifier
inspired by dcbf0ddbfd
2020-04-15 23:33:20 -04:00
Chris Mc
a4bb9dc796
fixing warning
2020-04-15 22:55:17 -04:00
Chris Mc
5477d3f749
missed namespace for helper
...
only tested with openssl 1.1.1d RIP
2020-04-15 22:54:08 -04:00
Chris Mc
fa806e7be9
fixing conversion warnings on windows
...
where sizeof(size_t) != sizeof(int) since x86 still exists
2020-04-11 14:05:50 -04:00
Chris Mc
141ae3cac0
replacing decimal for hex
...
to be consistent with other places in the code
to follow the numbering style of openssl
2020-04-11 12:58:19 -04:00
Chris Mc
103532688d
exposing private functions as helpers
...
this is to help with other JOSE tasks
2020-04-11 12:58:19 -04:00
Chris Mc
56b6c8e531
removing duplication
2020-04-11 12:58:19 -04:00
Dominik Thalhammer
cf8a6c326c
Merge branch 'master' into patch-2
2020-04-07 17:09:21 +02:00
Chris Mc
18761ec28b
fixes #57
2020-04-07 10:57:22 -04:00
Chris Mc
6284781937
correcting usage of rsa_exception in ecdsa alg
2020-03-25 09:49:03 -04:00
Chris Mc
e2b4067d6f
adding missing &
...
bad copy pasting
2020-03-24 09:31:03 -04:00
Chris Mc
42310e634d
adding stream operators to claims
...
easier to parse and output claims
2020-03-24 09:09:41 -04:00
Chris Mc
bea25f039b
removing code duplication from explicit option
2020-03-24 09:05:50 -04:00
Dominik Thalhammer
c9e7b80452
Merge remote-tracking branch 'upstream/master'
2020-03-18 21:22:04 +01:00
Dominik Thalhammer
da58b496db
Add check for correct key size passed to ecdsa
...
see #53
2020-03-11 21:10:14 +01:00
Christopher McArthur
1659e8181d
using picojson from vcpkg
2020-01-19 17:38:31 -05: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