Commit graph

195 commits

Author SHA1 Message Date
Arun Muralidharan
534e72b326
Merge pull request #57 from LanderN/fix-windows-clang
fix clang-cl build on windows
2019-12-09 15:39:01 +05:30
Lander Noterman
8841837fe4
fix clang-cl build on windows 2019-12-09 09:23:37 +01:00
Arun Muralidharan
d8197361fe
Merge pull request #56 from cstratopoulos/patch-1
Make C++17 string_view detection work with MSVC
2019-11-23 22:48:45 +05:30
Christos Stratopoulos
b607c4da9e
Make C++ string_view detection work with MSVC
The existing method to check for support of C++17 `string_view` does not work on MSVC, see [here](https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=vs-2019)

Instead we replace with the [feature test macro](https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros) for `string_view`, which is `__cpp_lib_string_view`. This should work on all platforms and is arguably more precise.
2019-10-31 14:44:19 -04:00
Arun Muralidharan
42fcc915e4
Merge pull request #49 from zxey/cpp17-string-view
Use std::string_view if c+17 is available
2019-10-08 14:24:19 +05:30
Arun Muralidharan
d02a544f1c
Merge pull request #50 from dashprint/fix-char-signedness
Fix char signedness in DMap
2019-10-08 14:23:32 +05:30
Lubos Dolezel
4392f4b538 Fix char signedness in DMap 2019-07-13 20:10:20 +02:00
zxey
a5e5a233b7 Use std::string_view if c+17 is available 2019-06-17 17:31:06 +02:00
Arun M
af3fef94f1 merge 2019-05-31 00:46:41 +05:30
Arun M
1e9667ae0d update nlohmann json library 2019-05-31 00:45:35 +05:30
Arun Muralidharan
efc5732513
Merge pull request #47 from olcydvt/master
Fix for error setw is not defined
2019-05-03 12:40:03 +05:30
Olcay Cabbas
602ec562e0 Fix for error setw is not defined 2019-05-03 09:08:21 +03:00
Arun Muralidharan
10337fcefc
Merge pull request #42 from leoTlr/master
prevent gcc warnings
2019-04-04 11:58:16 +05:30
leoTlr
4234eea1bf prevent -Wimplicit-fallthrough= warning with gcc 8.2.1 2019-04-04 00:27:39 +02:00
leoTlr
a3a0d9c0ec prevent -Wunused-parameter warning with gcc 8.2.1 2019-04-04 00:26:54 +02:00
leoTlr
31df3b8bd4 compile with -Wextra 2019-04-04 00:24:25 +02:00
Arun Muralidharan
742ef512a4
Merge pull request #41 from MatthewPowley/WindowsFix
'__builtin_unreachable' is not available on Windows
2019-03-22 14:41:07 +05:30
Matt Powley
ff21be2947 '__builtin_unreachable' is not available on Windows
Replaced with macro that inserts Windows equivalent
2019-03-21 12:31:02 +00:00
Arun Muralidharan
cdcc26134e
Merge pull request #40 from huangminghuang/lambda_secret
Add api to supply secret based on decoded payload
2019-02-17 16:51:34 +05:30
Huang-Ming Huang
74b7b344c6 Add api to supply secret based on decoded payload 2019-02-16 15:36:12 -06:00
Arun Muralidharan
2d2c093652
Merge pull request #39 from huangminghuang/master
Some cmake improvements
2019-02-12 22:39:50 +05:30
Huang-Ming Huang
0b68fd46fb Some cmake improvements 2019-02-11 14:10:38 -06:00
Arun M
1cbc5eb5a5 compile error with master #37 2018-11-20 19:08:08 +05:30
Arun Muralidharan
fe2e06141f
Merge pull request #35 from mhfrantz/issue-33/move-semantics.v1
issue-33: Add test showing how to invoke move ctor
2018-11-02 22:34:22 +05:30
Matt Frantz
1b105f4772 SFINAE guard on jwt_object's universal reference constructor
This allows the move constructor to be preferred in some cases.
2018-11-01 13:28:49 -07:00
Arun M
6e27aa4c86 Merge 2018-10-27 12:08:08 +05:30
Arun M
1e588256f4 Narrowing errors compiling for ARM #36 2018-10-27 12:07:06 +05:30
Matt Frantz
043c8429d4 issue-33: Add test showing how to invoke move ctor 2018-10-24 17:44:15 -07:00
Arun Muralidharan
5804dba959
Merge pull request #32 from meastman/json-decode-out-of-bounds-read
Fix out of bounds read in base64_decode
2018-10-04 07:31:09 +05:30
Matt Eastman
8cb5ea3d5e Fix out of bounds read in base64_decode 2018-10-03 17:24:11 -05:00
Arun M
64de7b6f1d Ptential Fix for VS2015 compile fail #27 2018-10-03 22:07:08 +05:30
Arun M
e5ecca4f38 'str_to_type' has a non-throwing exception specification but can still throw #31 2018-09-29 00:24:08 +05:30
Arun M
129731da56 Add option to remove type fromt he jwt_header #26 2018-08-05 15:10:53 +05:30
Arun M
87dcef903f Why does the existence of a signature algorithm entail a required verification? #24 2018-05-31 20:36:07 +05:30
Arun Muralidharan
b1140707cc
Merge pull request #23 from TheQuantumPhysicist/master
Fixed many warnings that appear due to assert not being executed in release mode.
2018-05-31 09:42:51 +05:30
Arun Muralidharan
ea3bcd6223
Merge pull request #22 from TheQuantumPhysicist/FixErrorCategoryComparison
Fix a major error in error_code category checking implementations.
2018-05-31 09:36:24 +05:30
Samer Afach
bef9e9d553 Fix a major error in error_code category checking implementations.
Errors some times don't throw exceptions due to implementation
differences.
2018-05-31 01:49:47 +02:00
Samer Afach
00343347b2 Fixed many warnings that appear due to assert not being executed in
release mode.
2018-05-30 22:44:38 +02:00
Arun M
077e6f3f07 ES256/384 signature verification fails #20 2018-05-22 18:07:19 +05:30
Arun Muralidharan
d475665b72
Merge pull request #19 from TheQuantumPhysicist/master
Minor error fix to make the flag -pedantic-errors work
2018-05-21 18:27:48 +05:30
Samer Afach
9ff6e50b5e Merge branch 'master' of https://github.com/arun11299/cpp-jwt 2018-05-21 14:08:10 +02:00
Samer Afach
34fdb34b44 Minor to make the code compile with -pedantic-errors flag in g++ 2018-05-21 14:06:48 +02:00
Arun Muralidharan
1aaffabe90
Merge pull request #18 from TheQuantumPhysicist/master
Make it possible to only include base64.hpp without everything
2018-05-20 13:20:17 +05:30
Samer Afach
a9562500a0 More inline definitions to for header files to avoid double definition
problems.
2018-05-20 02:57:13 +02:00
Samer Afach
22856e9da2 Functions made inline because they're in the header. Otherwise multiple
definition errors will appear when this file is included.
2018-05-20 00:47:37 +02:00
Samer Afach
8ef6d055ae Make it possible to only include base64.hpp without having to include
jwt.hpp by adding missing includes to resolve incomplete types.
2018-05-19 21:38:25 +02:00
Arun Muralidharan
549235f009
Merge pull request #17 from TheQuantumPhysicist/master
Fix more signed/unsigned warnings.
2018-05-19 22:53:34 +05:30
Samer Afach
1fcfbaac75 Fix more signed/unsigned warnings. 2018-05-19 19:03:46 +02:00
Arun Muralidharan
0227be3445
Merge pull request #16 from TheQuantumPhysicist/master
Fixed a few warnings about signed and unsigned comparison.
2018-05-19 21:54:49 +05:30
Samer Afach
e5fc25bbe8 Fixed a few warnings about signed and unsigned comparison. 2018-05-19 16:29:12 +02:00