File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ package openssl
17
17
/*
18
18
#include <openssl/ssl.h>
19
19
20
- #if OPENSSL_VERSION_MAJOR == 3
20
+ #if OPENSSL_VERSION_NUMBER >= 0x30000000L
21
21
int FIPS_mode_set(int ONOFF) {
22
22
return 0;
23
23
}
@@ -35,7 +35,7 @@ func FIPSModeSet(mode bool) error {
35
35
runtime .LockOSThread ()
36
36
defer runtime .UnlockOSThread ()
37
37
38
- if C .OPENSSL_VERSION_MAJOR == 3 {
38
+ if C .OPENSSL_VERSION_NUMBER >= 0x30000000 {
39
39
return errors .New ("FIPS_mode_set() has been deleted from OpenSSL 3.0" )
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ package openssl
17
17
/*
18
18
#include <openssl/ssl.h>
19
19
#include <openssl/conf.h>
20
- #if OPENSSL_VERSION_MAJOR == 3
20
+ #if OPENSSL_VERSION_NUMBER >= 0x30000000L
21
21
#include <openssl/x509v3.h>
22
22
typedef const char x509char;
23
23
#else
You can’t perform that action at this time.
0 commit comments