mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Openssl make does not work #5
This commit is contained in:
parent
dfaa507c0b
commit
f8f0d37263
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,7 @@ SOFTWARE.
|
|||
#include <openssl/hmac.h>
|
||||
#include <openssl/ecdsa.h>
|
||||
#include <openssl/buffer.h>
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#include "jwt/exceptions.hpp"
|
||||
#include "jwt/string_view.hpp"
|
||||
|
@ -510,6 +511,8 @@ private:
|
|||
*/
|
||||
static std::string public_key_ser(EVP_PKEY* pkey, jwt::string_view sign, std::error_code& ec);
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
|
||||
//ATTN: Below 2 functions
|
||||
//are Taken from https://github.com/nginnever/zogminer/issues/39
|
||||
|
||||
|
@ -534,6 +537,8 @@ private:
|
|||
sig->s = s;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
} // END namespace jwt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue