diff options
author | Matt Caswell <matt@openssl.org> | 2024-01-15 08:55:48 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-01-18 11:18:09 +0100 |
commit | ead44e19fa3ff7d189876081880f1adb3dfdf30b (patch) | |
tree | eb540b48f8b6aa68a2208f309dc5bd26d6f0d51c /ssl | |
parent | 3e938453be47751d50917e25b8f7334b482844b3 (diff) |
Document SSL_R_UNEXPECTED_EOF_WHILE_READING
Also document that it is ok to use this for control flow decisions.
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23304)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/record/rec_layer_s3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index 8a2db5817f..3856708a83 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -466,6 +466,10 @@ int ossl_tls_handle_rlayer_return(SSL_CONNECTION *s, int writing, int ret, } else { ERR_new(); ERR_set_debug(file, line, 0); + /* + * This reason code is part of the API and may be used by + * applications for control flow decisions. + */ ossl_statem_fatal(s, SSL_AD_DECODE_ERROR, SSL_R_UNEXPECTED_EOF_WHILE_READING, NULL); } |