mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Remove duplicated key handlers (#318)
* add a quick test to see if rsa helpers handle ec certs LoadPublicKeyFromStringReferenceWithEcCert * run all tests with generic helper * template out error category and new tests * linter * missing enum entry * does convert_base64_der_to_pem work with ecdsa? * use correct EC curve functions * missing extern symbol * dont change behavior * typo * fix tests * update private key to be more generic * fixup 2 more tests * update exception for libressl 3.5.3 https://github.com/Thalhammer/jwt-cpp/actions/runs/7161143039/job/19496334109?pr=318#step:8:248 ``` [ RUN ] OpenSSLErrorTest.ECDSACertificate /home/runner/work/jwt-cpp/jwt-cpp/tests/OpenSSLErrorTest.cpp:487: Failure Expected equality of these values: ec Which is: ecdsa_error:19 e.expected_ec Which is: rsa_error:12 ``` * linter * add missing test * fix copy paste * typo part 2
This commit is contained in:
@@ -59,7 +59,7 @@ TEST(HelperTest, ErrorCodeMessages) {
|
||||
ASSERT_EQ(std::error_code(static_cast<jwt::error::rsa_error>(i)).message(),
|
||||
std::error_code(static_cast<jwt::error::rsa_error>(-1)).message());
|
||||
|
||||
for (i = 10; i < 17; i++) {
|
||||
for (i = 10; i < 22; i++) {
|
||||
ASSERT_NE(std::error_code(static_cast<jwt::error::ecdsa_error>(i)).message(),
|
||||
std::error_code(static_cast<jwt::error::ecdsa_error>(-1)).message());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user