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
165165have_func ( "X509_get0_notBefore" )
166166have_func ( "SSL_SESSION_get_protocol_version" )
167167have_func ( "EVP_PBE_scrypt" )
168+ have_func ( "CMS_sign" )
168169
169170Logging ::message "=== Checking done. ===\n "
170171
Original file line number Diff line number Diff line change @@ -1202,7 +1202,9 @@ Init_openssl(void)
12021202 Init_ossl_ns_spki ();
12031203 Init_ossl_pkcs12 ();
12041204 Init_ossl_pkcs7 ();
1205+ #if defined(HAVE_CMS_SIGN )
12051206 Init_ossl_cms ();
1207+ #endif
12061208 Init_ossl_pkey ();
12071209 Init_ossl_rand ();
12081210 Init_ossl_ssl ();
Original file line number Diff line number Diff line change 2424#include <openssl/ssl.h>
2525#include <openssl/pkcs12.h>
2626#include <openssl/pkcs7.h>
27+ #if defined(HAVE_CMS_SIGN )
2728#include <openssl/cms.h>
29+ #endif
2830#include <openssl/hmac.h>
2931#include <openssl/rand.h>
3032#include <openssl/conf.h>
Original file line number Diff line number Diff line change 1111 */
1212#include "ossl.h"
1313
14+ #if defined(HAVE_CMS_SIGN )
1415/*
1516 * The CMS_ContentInfo is the primary data structure which this module creates and maintains
1617 * Is is called OpenSSL::CMS::ContentInfo in ruby.
@@ -496,3 +497,5 @@ Init_ossl_cms(void)
496497 DefCMSConst (STREAM );
497498 DefCMSConst (PARTIAL );
498499}
500+
501+ #endif /* HAVE_CMS_SIGN */
You can’t perform that action at this time.
0 commit comments