Skip to content

Commit

Permalink
more compat
Browse files Browse the repository at this point in the history
since they changed the API with ever version
  • Loading branch information
prince-chrismc committed Dec 21, 2023
1 parent 78cca3a commit a78fb83
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions example/jwks-verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,14 @@ int main() {
#if defined(JWT_OPENSSL_1_1_1)
const BIGNUM* n = RSA_get0_n(r);
const BIGNUM* e = RSA_get0_e(r);
#elif defined(JWT_OPENSSL_1_1_0) || defined(JWT_OPENSSL_1_0_0)
BIGNUM* n = rsa->n;
BIGNUM* e = rsa-e;
#elif defined(JWT_OPENSSL_1_1_0)
BIGNUM* n = nullptr;
BIGNUM* e = nullptr;
BIGNUM* d = nullptr;
RSA_get0_key(r, n, e, d);
#elif defined(JWT_OPENSSL_1_0_0)
BIGNUM* n = r->n;
BIGNUM* e = r->e;
#endif
#endif

Expand Down

0 comments on commit a78fb83

Please sign in to comment.