Commit Graph

12 Commits

Author SHA1 Message Date
Speeder
49d29e3d43 Added EdDSA support (#95)
* Fixed a build error

`jwt.h` previously depended on the nlohmann JSON library's inclusion of `iso646.h`, which defines the `not` operator.

* Added EdDSA support

https://github.com/Thalhammer/jwt-cpp/issues/79
Disabled EdDSA support when building with OpenSSL <1.1.1. Support for EdDSA came with OpenSSL version 1.1.1, incl. API extensions.

* Fixed build generation for Microsoft Visual Studio

* Fixed MSVC build warnings "hides previous local declaration"

* Fixed narrowing warnings when building with OpenSSL 1.0.2

* Compacted the string buffer initialization code pattern

As per review comment: https://github.com/Thalhammer/jwt-cpp/pull/95#discussion_r462985506

* adding eddsa openssl tests

* adding on mock openssl call as a test

* adding more mock openssl call to test failures

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2020-08-03 23:40:08 +02:00
Dominik Thalhammer
9711259ef2 Openssl testing (#90)
* Add error_code support to algorithm::verify

* Add error_code support for signing

* Add error_code overloads to verifying

* Fix missing throw

* Improvements

* Remove unused throwing overloads

* Fix test on older gtest

* Found bug and added more testing

* Move exceptions into error namespace

* Initial implementation of openssl tests

* Fix tests for older compilers

* Only enable openssl test on openssl >=1.1
2020-07-21 18:47:10 +02:00
Dominik Thalhammer
ab37be7df4 Initial support for std::error_code (#86)
* Add error_code support to algorithm::verify

* Add error_code support for signing

* Add error_code overloads to verifying

* Fix missing throw

* Improvements

* Remove unused throwing overloads

* Fix test on older gtest

* Found bug and added more testing

* Move exceptions into error namespace
2020-07-21 18:30:51 +02:00
Christopher McArthur
767c3fc827 [skip ci] more progress 2020-05-20 14:23:28 -04:00
Christopher McArthur
56ffe083ae tester that compiles 2020-05-18 22:25:19 -04:00
Chris Mc
aa001544e2 correcting usage of stream operator 2020-04-15 23:53:26 -04:00
Chris Mc
5df90e9c11 fixing ambiguous 2020-04-15 23:52:17 -04:00
Chris Mc
385afc3bd7 fixing string literal 2020-04-15 23:48:47 -04:00
Chris Mc
9dec02d571 adding tests for new functionality 2020-04-15 23:37:55 -04:00
Dominik Thalhammer
c9e7b80452 Merge remote-tracking branch 'upstream/master' 2020-03-18 21:22:04 +01:00
Christopher McArthur
a9a1b80eda adding tests to cmake 2020-01-19 17:25:51 -05:00
Christopher McArthur
bb42fd9472 moving tests to a subdir 2020-01-19 15:08:20 -05:00