mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d56885b43d
commit
6c0f540298
31 changed files with 190 additions and 195 deletions
|
@ -96,7 +96,6 @@ ossl_digest_initialize(int argc, VALUE *argv, VALUE self)
|
|||
{
|
||||
EVP_MD_CTX *ctx;
|
||||
const EVP_MD *md;
|
||||
char *name;
|
||||
VALUE type, data;
|
||||
|
||||
rb_scan_args(argc, argv, "11", &type, &data);
|
||||
|
@ -182,7 +181,7 @@ ossl_digest_finish(int argc, VALUE *argv, VALUE self)
|
|||
rb_str_resize(str, EVP_MD_CTX_size(ctx));
|
||||
}
|
||||
|
||||
EVP_DigestFinal_ex(ctx, RSTRING_PTR(str), NULL);
|
||||
EVP_DigestFinal_ex(ctx, (unsigned char *)RSTRING_PTR(str), NULL);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue