summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_bn.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-25 00:40:44 +0900
commitfa24e7a57e15900c01fa84d7ff5b0905f6bb6092 (patch)
tree602e7a95a5a0c2f55dc399f2fe4eebf672161392 /ext/openssl/ossl_bn.c
parentd5aa3fcae68483b0458fbe9f1b64bd0256f9673c (diff)
[ruby/openssl] 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. https://github.com/ruby/openssl/commit/e95ee24867
Diffstat (limited to 'ext/openssl/ossl_bn.c')
0 files changed, 0 insertions, 0 deletions