]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC Front End I/O API: Wire up SSL_CTX ctrls and remove unneeded functions
authorHugo Landau <hlandau@openssl.org>
Wed, 30 Nov 2022 08:00:19 +0000 (08:00 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 13 Jan 2023 13:20:19 +0000 (13:20 +0000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)

include/internal/quic_ssl.h
ssl/quic/quic_impl.c

index 254972b1c5544d8e4961f357139e8dc9cccbb885..899aca5b357753ef502ab501f7eb5472d0f5650b 100644 (file)
@@ -40,8 +40,6 @@ int ossl_quic_renegotiate_check(SSL *ssl, int initok);
 
 typedef struct quic_conn_st QUIC_CONNECTION;
 
-__owur QUIC_CONNECTION *ossl_quic_conn_from_ssl(SSL *ssl);
-
 int ossl_quic_do_handshake(QUIC_CONNECTION *qc);
 void ossl_quic_set_connect_state(QUIC_CONNECTION *qc);
 void ossl_quic_set_accept_state(QUIC_CONNECTION *qc);
index aac427bc4925ad49f95c29023c406a32db18fedf..172edb473a6a8824beeaa45597098a1d055b6559 100644 (file)
@@ -1159,23 +1159,18 @@ long ossl_quic_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
 {
     switch (cmd) {
     default:
-        return 0;
+        return ssl3_ctx_ctrl(ctx, cmd, larg, parg);
     }
 }
 
 long ossl_quic_callback_ctrl(SSL *s, int cmd, void (*fp) (void))
 {
-    return 0;
+    return ssl3_callback_ctrl(s, cmd, fp);
 }
 
 long ossl_quic_ctx_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp) (void))
 {
-    return 0;
-}
-
-QUIC_CONNECTION *ossl_quic_conn_from_ssl(SSL *ssl)
-{
-    return QUIC_CONNECTION_FROM_SSL(ssl);
+    return ssl3_ctx_callback_ctrl(ctx, cmd, fp);
 }
 
 int ossl_quic_renegotiate_check(SSL *ssl, int initok)