summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_cipher.c
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-01 04:50:33 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-01 04:50:33 +0000
commit7662d794fed79e87d30962cac4b50a3843d390d3 (patch)
treeb6e0956463d77ba4e1e592dd0f5243d756087c3c /ext/openssl/ossl_cipher.c
parent0b6d266dae4deb1244eb33f4b150397e29eed643 (diff)
* ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): last modify is
rollbacked for future compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_cipher.c')
-rw-r--r--ext/openssl/ossl_cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c
index 45533e1..877076c 100644
--- a/ext/openssl/ossl_cipher.c
+++ b/ext/openssl/ossl_cipher.c
@@ -316,7 +316,7 @@ ossl_cipher_set_padding(VALUE self, VALUE padding)
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
- if (EVP_CIPHER_CTX_set_padding(ctx, RTEST(padding)) != 1)
+ if (EVP_CIPHER_CTX_set_padding(ctx, NUM2INT(padding)) != 1)
ossl_raise(eCipherError, NULL);
#else
rb_notimplement();