File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ def find_openssl_library
165
165
have_func ( "X509_get0_notBefore" )
166
166
have_func ( "SSL_SESSION_get_protocol_version" )
167
167
have_func ( "EVP_PBE_scrypt" )
168
+ have_func ( "CMS_sign" )
168
169
169
170
Logging ::message "=== Checking done. ===\n "
170
171
Original file line number Diff line number Diff line change @@ -1202,7 +1202,9 @@ Init_openssl(void)
1202
1202
Init_ossl_ns_spki ();
1203
1203
Init_ossl_pkcs12 ();
1204
1204
Init_ossl_pkcs7 ();
1205
+ #if defined(HAVE_CMS_SIGN )
1205
1206
Init_ossl_cms ();
1207
+ #endif
1206
1208
Init_ossl_pkey ();
1207
1209
Init_ossl_rand ();
1208
1210
Init_ossl_ssl ();
Original file line number Diff line number Diff line change 24
24
#include <openssl/ssl.h>
25
25
#include <openssl/pkcs12.h>
26
26
#include <openssl/pkcs7.h>
27
+ #if defined(HAVE_CMS_SIGN )
27
28
#include <openssl/cms.h>
29
+ #endif
28
30
#include <openssl/hmac.h>
29
31
#include <openssl/rand.h>
30
32
#include <openssl/conf.h>
Original file line number Diff line number Diff line change 11
11
*/
12
12
#include "ossl.h"
13
13
14
+ #if defined(HAVE_CMS_SIGN )
14
15
/*
15
16
* The CMS_ContentInfo is the primary data structure which this module creates and maintains
16
17
* Is is called OpenSSL::CMS::ContentInfo in ruby.
@@ -496,3 +497,5 @@ Init_ossl_cms(void)
496
497
DefCMSConst (STREAM );
497
498
DefCMSConst (PARTIAL );
498
499
}
500
+
501
+ #endif /* HAVE_CMS_SIGN */
You can’t perform that action at this time.
0 commit comments