diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-01 04:50:33 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-01 04:50:33 +0000 |
commit | dc8db5305ce0228484a06ca08d0f137c2f9b82af (patch) | |
tree | b6e0956463d77ba4e1e592dd0f5243d756087c3c | |
parent | edd2b56f75d39c40d1eeecd4ef810fb1f5b24879 (diff) | |
download | ruby-dc8db5305ce0228484a06ca08d0f137c2f9b82af.tar.gz ruby-dc8db5305ce0228484a06ca08d0f137c2f9b82af.tar.xz ruby-dc8db5305ce0228484a06ca08d0f137c2f9b82af.zip |
* ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): last modify is
rollbacked for future compatibility.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ext/openssl/ossl_cipher.c | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -9,9 +9,6 @@ Thu Jul 1 00:44:42 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/ossl_cipher.c (ossl_cipher_set_key_length): new method OpenSSL::Cipher::Cipher#key_len=. - * ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): the type of - argument is changed from integer to boolean. - Wed Jun 30 19:48:09 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c index 45533e161..877076cee 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(); |