File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 51
51
#include <openssl/rand.h>
52
52
#include <openssl/ssl.h>
53
53
#include <openssl/pkcs12.h>
54
+ #if PHP_OPENSSL_API_VERSION >= 0x30000
55
+ #include <openssl/core_names.h>
56
+ #include <openssl/param_build.h>
57
+ #endif
54
58
55
59
/* Common */
56
60
#include <time.h>
@@ -1201,7 +1205,9 @@ PHP_MINIT_FUNCTION(openssl)
1201
1205
REGISTER_LONG_CONSTANT ("PKCS7_NOSIGS" , PKCS7_NOSIGS , CONST_CS |CONST_PERSISTENT );
1202
1206
1203
1207
REGISTER_LONG_CONSTANT ("OPENSSL_PKCS1_PADDING" , RSA_PKCS1_PADDING , CONST_CS |CONST_PERSISTENT );
1208
+ #ifdef RSA_SSLV23_PADDING
1204
1209
REGISTER_LONG_CONSTANT ("OPENSSL_SSLV23_PADDING" , RSA_SSLV23_PADDING , CONST_CS |CONST_PERSISTENT );
1210
+ #endif
1205
1211
REGISTER_LONG_CONSTANT ("OPENSSL_NO_PADDING" , RSA_NO_PADDING , CONST_CS |CONST_PERSISTENT );
1206
1212
REGISTER_LONG_CONSTANT ("OPENSSL_PKCS1_OAEP_PADDING" , RSA_PKCS1_OAEP_PADDING , CONST_CS |CONST_PERSISTENT );
1207
1213
You can’t perform that action at this time.
0 commit comments