You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔐 Make it possible to build with OpenSSL 1.0.1 (#199)
* Make it possible to build with OpenSSL 1.0.1
This patch updates the code in the jwt-cpp/jwt.h header and relaxes the
requirement for OpenSSL's version in the top-level CMakeLists.txt to
allow for compiling with OpenSSL 1.0.1. The patch works around the
non-constantness of the 'sig' parameter in the signature of the
EVP_DigestVerifyFinal() function in versions of OpenSSL prior to 1.0.2.
I verfied it's now possible to compile with OpenSSL 1.0.1, but I guess
it might be possible to compile even with OpenSSL 1.0.0 after tweaking
the version requirement in CMakeLists.txt.
The new EVP_DigestVerifyFinal() signature was introduced in [1] and then
cherry-picked into the main branch as [2]. The update [1] doesn't
contain any functional change per se: even prior to the update,
EVP_DigestVerifyFinal() implementation was de facto treating the 'sig'
parameter as if it were immutable [3].
[1] openssl/openssl@1abfa78
[2] openssl/openssl@0f7fa1b
[3] https://github.com/openssl/openssl/blob/27007233db5d6f8b91ed474c4e09dd7014871cc6/crypto/evp/m_sigver.c#L163-L187
* Fix formatting in jwt-cpp/jwt.h
This patch doesn't contain any functional modifications.
This is a follow-up to d74c832.
* Test against OpenSSL 1.0.1u
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
0 commit comments