Skip to content

Calling SSL_accept() on a connection returned from SSL_accept_connection() does not work #27282

@mattcaswell

Description

@mattcaswell

An object returned from SSL_accept_connection() may not have completed its handshake. It should be perfectly ok to call SSL_accept on such an object. If you do this then you get an error response and an error is raised on the error stack "should not have been called".

By contrast it works as expected if you call SSL_do_handshake() instead of SSL_accept.

In particular this looks wrong:

IMPLEMENT_quic_meth_func(OSSL_QUIC_ANY_VERSION,
OSSL_QUIC_server_method,
ssl_undefined_function,
ossl_quic_connect, ssl3_undef_enc_method)

I might have expected:

 IMPLEMENT_quic_meth_func(OSSL_QUIC_ANY_VERSION, 
                          OSSL_QUIC_server_method, 
                          ossl_quic_accept, 
                          ssl_undefined_function, ssl3_undef_enc_method) 

Metadata

Metadata

Assignees

Labels

triaged: bugThe issue/pr is/fixes a bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions