We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a802940 commit 4ffbb46Copy full SHA for 4ffbb46
libi2pd/Crypto.h
@@ -262,7 +262,12 @@ namespace crypto
262
263
// take care about openssl version
264
#include <openssl/opensslv.h>
265
-#define LEGACY_OPENSSL ((OPENSSL_VERSION_NUMBER < 0x010100000) || defined(LIBRESSL_VERSION_NUMBER)) // 1.0.2 and below or LibreSSL
+#if ((OPENSSL_VERSION_NUMBER < 0x010100000) || defined(LIBRESSL_VERSION_NUMBER)) // 1.0.2 and below or LibreSSL
266
+# define LEGACY_OPENSSL 1
267
+#else
268
+# define LEGACY_OPENSSL 0
269
+#endif
270
+
271
#if LEGACY_OPENSSL
272
// define getters and setters introduced in 1.1.0
273
inline int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g)
0 commit comments