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 9b4f761 commit fe2d73cCopy full SHA for fe2d73c
ext/openssl/ossl.h
@@ -42,6 +42,24 @@
42
#include <openssl/evp.h>
43
#include <openssl/dh.h>
44
45
+#ifndef LIBRESSL_VERSION_NUMBER
46
+# define OSSL_IS_LIBRESSL 0
47
+# ifdef OPENSSL_VERSION_PREREQ
48
+# define OSSL_OPENSSL_PREREQ(maj, min, pat) \
49
+ OPENSSL_VERSION_PREREQ(maj, min) && OPENSSL_VERSION_PATCH >= pat
50
+# define OSSL_LIBRESSL_PREREQ(maj, min, pat) 0
51
+# else
52
53
+ OPENSSL_VERSION_NUMBER >= (maj << 28) | (min << 20) | (pat << 12)
54
55
+# endif
56
+#else
57
+# define OSSL_IS_LIBRESSL 1
58
+# define OSSL_OPENSSL_PREREQ(maj, min, pat) 0
59
+# define OSSL_LIBRESSL_PREREQ(maj, min, pat) \
60
+ LIBRESSL_VERSION_NUMBER >= (maj << 28) | (min << 20) | (pat << 12)
61
+#endif
62
+
63
/*
64
* Common Module
65
*/
0 commit comments