Commit f7dbd73a authored by Jan Becker's avatar Jan Becker
Browse files

[gui] Fix compilation for libssl >= 1.1.0

parent 6755080b
......@@ -154,7 +154,11 @@ RSA *readKey(const char *fn, int which, int minbits, int maxbits, int &strength)
(void)BIO_free_all(in);
if ( rsa != NULL ) {
#if OPENSSL_VERSION_NUMBER < 0x10100000L
strength = BN_num_bits(rsa->n);
#else
strength = RSA_bits(rsa);
#endif
if ( strength < minbits || strength > maxbits ) {
RSA_free(rsa);
rsa = NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment