From ad0add9f08ad687cb1f25f3de65c398b19da7f21 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Thu, 1 Jul 2004 04:51:19 +0000 Subject: * ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): last modify is rolled back for future compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_cipher.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/openssl/ossl_cipher.c') diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c index 6e238189d1..98468e0f28 100644 --- a/ext/openssl/ossl_cipher.c +++ b/ext/openssl/ossl_cipher.c @@ -326,9 +326,7 @@ ossl_cipher_set_padding(VALUE self, VALUE padding) EVP_CIPHER_CTX *ctx; GetCipher(self, ctx); - if(rb_obj_is_kind_of(padding, rb_cInteger)) - padding = NUM2INT(padding) ? Qtrue : Qfalse; - 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(); -- cgit v1.2.3