Merge pull request #830 from Gottox/fix-libressl

fix building with libressl
This commit is contained in:
csoler 2017-05-21 14:52:20 +02:00 committed by GitHub
commit dbc23969f4
11 changed files with 54 additions and 54 deletions

View file

@ -508,7 +508,7 @@ bool RsRecogn::itemToRadix64(RsItem *item, std::string &radstr)
std::string RsRecogn::getRsaKeyId(RSA *pubkey)
{
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
int len = BN_num_bytes(pubkey -> n);
unsigned char tmp[len];
BN_bn2bin(pubkey -> n, tmp);