diff options
author | Technorama team <oss-ruby@technorama.net> | 2004-06-14 17:09:53 +0000 |
---|---|---|
committer | Technorama team <oss-ruby@technorama.net> | 2004-06-14 17:09:53 +0000 |
commit | 8bdd60dae2f8e3775734303a3fdd294e44f45204 (patch) | |
tree | 57fcde0e96832473d7cbfceb71058de820a4ab6d | |
parent | 7dc2d3d9323c7812a11ad23ab386022c4dd2a96c (diff) | |
download | ruby-openssl-history-8bdd60dae2f8e3775734303a3fdd294e44f45204.tar.gz |
fix check for EVP_CIPHER_CTX_set_padding
-rw-r--r-- | extconf.rb | 1 | ||||
-rw-r--r-- | ossl_cipher.c | 5 |
2 files changed, 2 insertions, 4 deletions
@@ -77,6 +77,7 @@ have_func("PEM_def_callback") have_func("EVP_MD_CTX_init") have_func("HMAC_CTX_init") have_func("HMAC_CTX_cleanup") +have_func("EVP_CIPHER_CTX_set_padding") have_func("X509_CRL_set_version") have_func("X509_CRL_set_issuer_name") have_func("X509_CRL_sort") diff --git a/ossl_cipher.c b/ossl_cipher.c index 2054c1c..b2323fc 100644 --- a/ossl_cipher.c +++ b/ossl_cipher.c @@ -341,10 +341,7 @@ ossl_cipher_set_iv(VALUE self, VALUE iv) static VALUE ossl_cipher_set_padding(VALUE self, VALUE padding) { -/* EVP_CIPHER_CTX_set_padding existed in an earlier versions of openssl. - I don't know the exact version number, but it does exist in 0x0090702fL. -*/ -#if defined(HAVE_ST_FLAGS) || OPENSSL_VERSION_NUMBER >= 0x0090702fL +#if defined(HAVE_EVP_CIPHER_CTX_SET_PADDING) EVP_CIPHER_CTX *ctx; GetCipher(self, ctx); |