DTLSv1_listen

Statelessly listen for a new DTLS ClientHello and verify the cookie exchange.

Synopsis

Declared in <openssl/ssl.h>

int
DTLSv1_listen(
    SSL* s,
    BIO_ADDR* client);

Return Value

>=1 when the handshake may continue (e.g. via SSL_accept), 0 to retry, or <0 on fatal error.

Parameters

NameDescription
sNewly allocated SSL with read/write BIOs set (typically an unconnected datagram BIO).
clientReceives the peer address when a verified ClientHello is accepted.