Make DTLSv1_listen a first class function and change its type

The DTLSv1_listen function exposed details of the underlying BIO
abstraction and did not properly allow for IPv6. This commit changes the
"peer" argument to be a BIO_ADDR and makes it a first class function
(rather than a ctrl) to ensure proper type checking.

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell
2016-02-05 10:59:42 +00:00
parent 0dc225577c
commit 3edeb622ba
7 changed files with 39 additions and 43 deletions

View File

@@ -2496,7 +2496,7 @@ static int init_ssl_connection(SSL *con)
BIO_printf(bio_err, "ERROR - memory\n");
return 0;
}
i = DTLSv1_listen(con, &client);
i = DTLSv1_listen(con, client);
if (i > 0) {
BIO *wbio;
int fd = -1;