aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey.c
diff options
context:
space:
mode:
authorrhe <rhe@ruby-lang.org>2016-05-23 10:47:37 +0000
committerKazuki Yamaguchi <k@rhe.jp>2016-05-31 11:31:27 +0900
commitd955905ba85a4a6ff72ee8125a81c1ee66798d08 (patch)
tree54c9df606948e3857e11b42cfbcb15c0079373f9 /ext/openssl/ossl_pkey.c
parent63f74fb70f8059e08a69dfe0aa8216ef2d9dd0d3 (diff)
downloadruby-openssl-d955905ba85a4a6ff72ee8125a81c1ee66798d08.tar.gz
openssl: fix incorrect return value check of RAND_* functions
* ext/openssl/ossl_rand.c (ossl_rand_egd, ossl_rand_egd_bytes): RAND_egd{_bytes,}() return -1 on failure, not 0. Patch by cremno phobia <cremno@mail.ru> [ruby-core:63795] [Bug #10053] (ossl_pseudo_bytes): Similar, RAND_pseudo_bytes() may return 0 or -1 on failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_pkey.c')
0 files changed, 0 insertions, 0 deletions