Commit graph

184 commits

Author SHA1 Message Date
Arun Muralidharan
c7faccdebb
Merge pull request #73 from j0nnyw/libressl-check-if-defined
Check LIBRESSL_VERSION_NUMBER only if defined.
2020-12-14 13:15:41 +05:30
Jonny Weir
bdec618caa Check LIBRESSL_VERSION_NUMBER only if defined. 2020-11-16 16:53:30 +00:00
Arun Muralidharan
241bd8291a
Merge pull request #72 from torbatamas/master
Add LibreSSL version number in algorithms.hpp
2020-11-16 20:12:40 +05:30
Torba, Tamas (U513810)
fa499a9d2c Add LibreSSL version number in algorithms.hpp 2020-11-16 14:33:25 +01:00
Arun Muralidharan
f74e010207
Merge pull request #67 from wiebeytec/master
Clarify public key documentation and errors
2020-07-24 23:09:25 +05:30
Wiebe Cazemier
11cb283483 Clarify public key documentation and errors 2020-07-16 17:29:11 +02:00
Arun Muralidharan
42536e5f01
Merge pull request #66 from nikita-karatun/tests-fix
fix: algorithm::NONE string representation capitalized, tests linkage fixes
2020-07-08 22:00:39 +05:30
Nikita Karatun
20d997dd2f fix: algorithm::NONE string representation capitalized, tests linkage fixes 2020-07-08 16:28:19 +03:00
Arun Muralidharan
67504faf29
Merge pull request #64 from gocarlos/build--install-cmakes-find-package-files
build: install cmakes find package files
2020-06-17 13:05:30 +05:30
Arun M
2bb5623d39 explicit constructor initialization for EMap 2020-06-13 12:47:46 +05:30
Arun M
701f4f26c1 merge 2020-06-13 12:40:18 +05:30
Arun M
4752d47592 Deprecated BIO_f_base64 from boringssl #61 2020-06-13 12:39:28 +05:30
Carlos Gomes Martinho
d40fc510e9 fiX: add missing dependencies 2020-05-08 04:16:56 +02:00
Carlos Gomes Martinho
fd403e3df6 ci: also run on pull requests 2020-05-08 02:48:06 +02:00
Carlos Gomes Martinho
52bd9d5bb8 docs: add cmake usage instructions 2020-05-08 02:45:52 +02:00
Carlos Gomes Martinho
af21c2e26f build: install cmakes find package files 2020-05-08 02:35:53 +02:00
Arun Muralidharan
b6845543ed
Merge pull request #62 from gocarlos/patch-1
build: add add_library alias to cmake
2020-03-21 10:23:24 +05:30
Carlos Gomes Martinho
79d2c49b32
build: add add_library alias to cmake
this makes it possible to do:

```cmake
find_package(cpp-jwt REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main cpp-jwt::cpp-jwt)
```
2020-03-18 19:48:52 +01:00
Arun Muralidharan
4b6ed54e2e
Merge pull request #60 from gocarlos/fix--compilation-with-visual-studio-14
fix: compilation with visual studio 14
2020-02-27 11:44:04 +05:30
Carlos Gomes Martinho
67f3dad16a fix: compilation with visual studio 14 2020-02-24 19:54:37 +01:00
Arun Muralidharan
8a066c9823
Merge pull request #59 from gocarlos/master
build: improve cmake scripts
2020-02-24 19:42:22 +05:30
Carlos Gomes Martinho
4dd70e5935 test: add ctest 2020-02-24 15:07:29 +01:00
Carlos Gomes Martinho
f7ffc00a29 chore: use w4 for msvc 2020-02-24 14:58:03 +01:00
Carlos Gomes Martinho
ac31850cdc chore: use cpp 11 by default 2020-02-24 13:38:11 +01:00
Carlos Gomes Martinho
9920f88379 chore: define vendor macro if needed 2020-02-24 13:33:43 +01:00
Carlos Gomes Martinho
f43b6e93fa chore: use both options for gtest include dir variable 2020-02-24 13:26:13 +01:00
Carlos Gomes Martinho
72c26dda67 ci: fix windows build 2020-02-24 13:18:06 +01:00
Carlos Gomes Martinho
d4b5525eb9 chore: use old lib variables for cmake 2020-02-24 13:16:44 +01:00
Carlos Gomes Martinho
92818726b5 chore: use env variable for git workspace 2020-02-24 13:04:36 +01:00
Carlos Gomes Martinho
7df9127c00 chore: initialize conan profile 2020-02-24 12:55:12 +01:00
Carlos Gomes Martinho
a4dc07112c ci: install setup tools 2020-02-24 12:49:36 +01:00
Carlos Gomes Martinho
6cc8790055 ci: use pip3 for python 2020-02-24 12:40:05 +01:00
Carlos Gomes Martinho
3b4ccc006d install conan before pipeline 2020-02-24 12:36:47 +01:00
Carlos Gomes Martinho
bc98be0883 test: add github pipelines 2020-02-24 11:21:17 +01:00
Carlos Gomes Martinho
564e9f8d23 build: add support for conan and make vendored json optional 2020-02-24 10:29:57 +01:00
Carlos Gomes Martinho
de69fd2133 build: improve cmake scripts 2020-02-24 09:21:52 +01:00
Arun Muralidharan
ce85f791ba
Merge pull request #58 from andrewwiik/rfc7515_4_1_1_fix
Fix parsing of alg claim to be RFC compliant
2020-01-16 15:42:15 +05:30
Andrew Wiik
92cac1ecbd Updated tests and README for RFC Fixes 2020-01-16 00:56:41 -05:00
Andrew Wiik
9624da5e59 Fix parsing of alg claim to be RFC compliant
The alg claim should always be treated as a case-sensitive value
according to the RFC spec which you can find here:

https://tools.ietf.org/html/rfc7515#section-4.1.1.

The same RFC spec also says it must be present, if it is empty
it is not present so it should not be converted to the "none"
algo as the "none" algo is an algorithm and not the absence of
one.

Finally the "none" algorithm as a string should be "none" not
"NONE" according to the IANA register for JWS Signature and
Encryption Algorithms which can be found here:

https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms
2020-01-16 00:42:50 -05:00
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