Skip to content

Commit

Permalink
fixup! QUIC APL: Make use of QUIC_OBJ infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed Nov 12, 2024
1 parent 71aa094 commit 60aadde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/quic/quic_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ SSL *ossl_quic_new(SSL_CTX *ctx)
#endif

/* Create the handshake layer. */
qc->tls = ossl_ssl_connection_new_int(ctx, TLS_method());
qc->tls = ossl_ssl_connection_new_int(ctx, &qc->ssl, TLS_method());
if (qc->tls == NULL || (sc = SSL_CONNECTION_FROM_SSL(qc->tls)) == NULL) {
QUIC_RAISE_NON_NORMAL_ERROR(NULL, ERR_R_INTERNAL_ERROR, NULL);
goto err;
Expand Down
5 changes: 5 additions & 0 deletions ssl/quic/quic_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ static SSL *port_new_handshake_layer(QUIC_PORT *port)
SSL *tls = NULL;
SSL_CONNECTION *tls_conn = NULL;

/*
* TODO(QUIC SERVER): NULL below needs to be replaced with a real user SSL
* object of either the listener or the domain which is associated with
* the port. https://github.com/openssl/project/issues/918
*/
tls = ossl_ssl_connection_new_int(port->channel_ctx, NULL, TLS_method());
if (tls == NULL || (tls_conn = SSL_CONNECTION_FROM_SSL(tls)) == NULL)
return NULL;
Expand Down

0 comments on commit 60aadde

Please sign in to comment.