From e440f51395f10e307f720213bd75393e446024a3 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 8 Mar 2018 17:44:12 +0000 Subject: Give more information in the SSL_stateless return code Allow users to distinguish between an error occurring and an HRR being issued. Fixes #5549 Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5562) --- doc/man3/DTLSv1_listen.pod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/man3/DTLSv1_listen.pod b/doc/man3/DTLSv1_listen.pod index 50f16bc81b..70f6a25cde 100644 --- a/doc/man3/DTLSv1_listen.pod +++ b/doc/man3/DTLSv1_listen.pod @@ -88,8 +88,9 @@ start. =head1 RETURN VALUES For SSL_stateless() a return value of 1 indicates success and the B object -will be set up ready to continue the handshake. A return value of 0 indicates -failure. User code may retry the SSL_stateless() call. +will be set up ready to continue the handshake. A return value of 0 or -1 +indicates failure. If the value is 0 then a HelloRetryRequest was sent. A value +of -1 indicates any other error. User code may retry the SSL_stateless() call. For DTLSv1_listen() a return value of >= 1 indicates success. The B object will be set up ready to continue the handshake. the B value will also be -- cgit v1.2.3