aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_rand.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-03-19 19:18:25 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-10-24 17:24:50 +0900
commite95ee24867387dfe00fa5d3c4a6f28425a8eff5c (patch)
tree744ecba3c3485dbdf326f6bb640396374327b93c /ext/openssl/ossl_rand.c
parent5375a55ffc35cf378cd52aa4646028d7cbdbcb6f (diff)
downloadruby-openssl-e95ee24867387dfe00fa5d3c4a6f28425a8eff5c.tar.gz
ssl: use SSL_get_rbio() to check if SSL is started or not
Use SSL_get_rbio() instead of SSL_get_fd(). SSL_get_fd() internally calls SSL_get_rbio() and it's enough for our purpose. In OpenSSL 3.0, SSL_get_fd() leaves an entry in the OpenSSL error queue if BIO has not been set up yet, and we would have to clean it up.
Diffstat (limited to 'ext/openssl/ossl_rand.c')
0 files changed, 0 insertions, 0 deletions