summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_tls.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-04-25 15:06:54 +0200
committerMatt Caswell <matt@openssl.org>2023-04-27 18:03:33 +0200
commit57582450318e955632d8fb09f42bd90f2ed5d3b4 (patch)
tree90c1861b375e1db45a74e1744d31d3f99c0f7594 /ssl/quic/quic_tls.c
parentCorrect the SSL_rstate_string*() APIs to match reality (diff)
downloadopenssl-57582450318e955632d8fb09f42bd90f2ed5d3b4.tar.xz
openssl-57582450318e955632d8fb09f42bd90f2ed5d3b4.zip
Update the SSL_rstate_string*() return value for QUIC
We make these APIs work more like the TLS versions do. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20827)
Diffstat (limited to '')
-rw-r--r--ssl/quic/quic_tls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssl/quic/quic_tls.c b/ssl/quic/quic_tls.c
index 2dedc760cb..98bf250f93 100644
--- a/ssl/quic/quic_tls.c
+++ b/ssl/quic/quic_tls.c
@@ -451,9 +451,9 @@ static void quic_get_state(OSSL_RECORD_LAYER *rl, const char **shortstr,
{
/*
* According to the docs, valid read state strings are: "RH"/"read header",
- * "RB"/"read body", "RD"/"read done" and "unknown"/"unknown". We don't
- * read records in quite that way, so we report every "normal" state as
- * "read done". In the event of error then we report "unknown".
+ * "RB"/"read body", and "unknown"/"unknown". We don't read records in quite
+ * that way, so we report every "normal" state as "read header". In the
+ * event of error then we report "unknown".
*/
if (rl->qtls->inerror) {
@@ -463,9 +463,9 @@ static void quic_get_state(OSSL_RECORD_LAYER *rl, const char **shortstr,
*longstr = "unknown";
} else {
if (shortstr != NULL)
- *shortstr = "RD";
+ *shortstr = "RH";
if (longstr != NULL)
- *longstr = "read done";
+ *longstr = "read header";
}
}