mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* 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]1abfa78a8b[2]0f7fa1b190[3]27007233db/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 d74c832bd9fae79c2dcaf0def67e3c2c501a6b80. * Test against OpenSSL 1.0.1u Co-authored-by: Chris Mc <prince.chrismc@gmail.com>