Openssl make does not work #5

This commit is contained in:
Arun M 2018-04-04 14:00:40 +05:30
parent dfaa507c0b
commit f8f0d37263

View file

@ -41,6 +41,7 @@ SOFTWARE.
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include <openssl/ecdsa.h> #include <openssl/ecdsa.h>
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/opensslv.h>
#include "jwt/exceptions.hpp" #include "jwt/exceptions.hpp"
#include "jwt/string_view.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); 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 //ATTN: Below 2 functions
//are Taken from https://github.com/nginnever/zogminer/issues/39 //are Taken from https://github.com/nginnever/zogminer/issues/39
@ -534,6 +537,8 @@ private:
sig->s = s; sig->s = s;
return 1; return 1;
} }
#endif
}; };
} // END namespace jwt } // END namespace jwt