Skip to content

Commit

Permalink
mod_ssl: Silence info log message "SSL Library Error: error:0A000126:
Browse files Browse the repository at this point in the history
         SSL routines::unexpected eof while reading" when using
         OpenSSL 3 by setting SSL_OP_IGNORE_UNEXPECTED_EOF if
         available. [Rainer Jung]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912015 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rainerjung committed Aug 30, 2023
1 parent 7c50a84 commit b9e029c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/ssl/ssl_engine_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,14 @@ static apr_status_t ssl_init_ctx_protocol(server_rec *s,
SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION);
}
#endif

#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
/* For server-side SSL_CTX, enable ignoring unexpected EOF */
/* (OpenSSL 1.1.1 behavioural compatibility).. */
if (!mctx->pkp) {
SSL_CTX_set_options(ctx, SSL_OP_IGNORE_UNEXPECTED_EOF);
}
#endif

return APR_SUCCESS;
}
Expand Down

0 comments on commit b9e029c

Please sign in to comment.