summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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