mirror of https://github.com/openssl/openssl.git
BIO: Wire poll descriptor functions in BIO_s_sock
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21979)
This commit is contained in:
parent
7e1b0dc1ef
commit
b79e73cfba
|
|
@ -215,6 +215,20 @@ static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
|
|||
case BIO_CTRL_FLUSH:
|
||||
ret = 1;
|
||||
break;
|
||||
case BIO_CTRL_GET_RPOLL_DESCRIPTOR:
|
||||
case BIO_CTRL_GET_WPOLL_DESCRIPTOR:
|
||||
{
|
||||
BIO_POLL_DESCRIPTOR *pd = ptr;
|
||||
|
||||
if (!b->init) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
pd->type = BIO_POLL_DESCRIPTOR_TYPE_SOCK_FD;
|
||||
pd->value.fd = b->num;
|
||||
}
|
||||
break;
|
||||
# ifndef OPENSSL_NO_KTLS
|
||||
case BIO_CTRL_SET_KTLS:
|
||||
crypto_info = (ktls_crypto_info_t *)ptr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue