完善openssl的版本判断
This commit is contained in:
parent
9f44ab4934
commit
5676b45580
|
|
@ -57,7 +57,7 @@ static string openssl_HMACsha256(const void *key,unsigned int key_len,
|
|||
HMAC_Update(&ctx, (unsigned char*)data, data_len);
|
||||
HMAC_Final(&ctx, (unsigned char *)out.get(), &out_len);
|
||||
HMAC_CTX_cleanup(&ctx);
|
||||
#endif // defined(WIN32) || defined(ANDROID)
|
||||
#endif //defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER > 0x10100000L)
|
||||
return string(out.get(),out_len);
|
||||
}
|
||||
#endif //ENABLE_OPENSSL
|
||||
|
|
|
|||
Loading…
Reference in New Issue