1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
gotoyuzo 2004-07-01 04:51:19 +00:00
parent a9244b8aa7
commit ad0add9f08
2 changed files with 1 additions and 6 deletions

View file

@ -25,9 +25,6 @@ Thu Jul 1 11:59:45 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.
* ext/openssl/ossl_cipher.c (ossl_cipher_init_deprecated): new
finction; print warning for Cipher#<<.

View file

@ -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();