]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add const to some test tserver functions
authorMatt Caswell <matt@openssl.org>
Mon, 6 Feb 2023 15:56:33 +0000 (15:56 +0000)
committerHugo Landau <hlandau@openssl.org>
Wed, 22 Feb 2023 05:34:06 +0000 (05:34 +0000)
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20030)

include/internal/quic_tserver.h
ssl/quic/quic_tserver.c

index cf74d8756912032a13f1491066ce9ba7d74f7a80..f53ec9ffbb343e04d02be1305704d577a6edd501 100644 (file)
@@ -60,15 +60,15 @@ int ossl_quic_tserver_tick(QUIC_TSERVER *srv);
 /*
  * Returns 1 if we have finished the TLS handshake
  */
-int ossl_quic_tserver_is_handshake_confirmed(QUIC_TSERVER *srv);
+int ossl_quic_tserver_is_handshake_confirmed(const QUIC_TSERVER *srv);
 
 /* Returns 1 if the server is in any terminating or terminated state */
-int ossl_quic_tserver_is_term_any(QUIC_TSERVER *srv);
+int ossl_quic_tserver_is_term_any(const QUIC_TSERVER *srv);
 
-QUIC_TERMINATE_CAUSE ossl_quic_tserver_get_terminate_cause(QUIC_TSERVER *srv);
+QUIC_TERMINATE_CAUSE ossl_quic_tserver_get_terminate_cause(const QUIC_TSERVER *srv);
 
 /* Returns 1 if the server is in a terminated state */
-int ossl_quic_tserver_is_terminated(QUIC_TSERVER *srv);
+int ossl_quic_tserver_is_terminated(const QUIC_TSERVER *srv);
 /*
  * Attempts to read from stream 0. Writes the number of bytes read to
  * *bytes_read and returns 1 on success. If no bytes are available, 0 is written
index 566d2c37ac158e76a74bf33bc805e8138c2db9ee..0498bf8d0e7d58832ec8e7e543603f243f74c77b 100644 (file)
@@ -154,23 +154,23 @@ int ossl_quic_tserver_tick(QUIC_TSERVER *srv)
 }
 
 /* Returns 1 if the server is in any terminating or terminated state */
-int ossl_quic_tserver_is_term_any(QUIC_TSERVER *srv)
+int ossl_quic_tserver_is_term_any(const QUIC_TSERVER *srv)
 {
     return ossl_quic_channel_is_term_any(srv->ch);
 }
 
-QUIC_TERMINATE_CAUSE ossl_quic_tserver_get_terminate_cause(QUIC_TSERVER *srv)
+QUIC_TERMINATE_CAUSE ossl_quic_tserver_get_terminate_cause(const QUIC_TSERVER *srv)
 {
     return ossl_quic_channel_get_terminate_cause(srv->ch);
 }
 
 /* Returns 1 if the server is in a terminated state */
-int ossl_quic_tserver_is_terminated(QUIC_TSERVER *srv)
+int ossl_quic_tserver_is_terminated(const QUIC_TSERVER *srv)
 {
     return ossl_quic_channel_is_terminated(srv->ch);
 }
 
-int ossl_quic_tserver_is_handshake_confirmed(QUIC_TSERVER *srv)
+int ossl_quic_tserver_is_handshake_confirmed(const QUIC_TSERVER *srv)
 {
     return ossl_quic_channel_is_handshake_confirmed(srv->ch);
 }