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

Name

Description

s

Newly allocated SSL with read/write BIOs set (typically an unconnected datagram BIO).

client

Receives the peer address when a verified ClientHello is accepted.

Created with MrDocs