summaryrefslogtreecommitdiffstats
path: root/include/internal
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-07-25 11:32:24 +0100
committerMatt Caswell <matt@openssl.org>2023-08-08 14:33:42 +0100
commit80bcc4f1aeb67f0a05dbff04372e0b9563d4a779 (patch)
tree4f57debcea0a3b0c5de58c0a5646da3ea6879b37 /include/internal
parent3ad5711e484736c7383b43d03f83e5700e589dfa (diff)
QUIC TLS: Report TLS errors properly as QUIC protocol errors
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21547)
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/quic_error.h3
-rw-r--r--include/internal/quic_tls.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/include/internal/quic_error.h b/include/internal/quic_error.h
index 0d5c6b4529..e32bdf03f8 100644
--- a/include/internal/quic_error.h
+++ b/include/internal/quic_error.h
@@ -43,6 +43,9 @@
# define QUIC_ERR_CRYPTO_MISSING_EXT \
QUIC_ERR_CRYPTO_ERR(TLS13_AD_MISSING_EXTENSION)
+# define QUIC_ERR_CRYPTO_NO_APP_PROTO \
+ QUIC_ERR_CRYPTO_ERR(TLS1_AD_NO_APPLICATION_PROTOCOL)
+
# endif
#endif
diff --git a/include/internal/quic_tls.h b/include/internal/quic_tls.h
index 133e247c26..9c5fa9cd5a 100644
--- a/include/internal/quic_tls.h
+++ b/include/internal/quic_tls.h
@@ -94,4 +94,9 @@ int ossl_quic_tls_tick(QUIC_TLS *qtls);
int ossl_quic_tls_set_transport_params(QUIC_TLS *qtls,
const unsigned char *transport_params,
size_t transport_params_len);
+
+int ossl_quic_tls_get_error(QUIC_TLS *qtls,
+ uint64_t *error_code,
+ const char **error_msg);
+
#endif