summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-04-25 14:06:54 +0100
committerMatt Caswell <matt@openssl.org>2023-04-27 17:03:33 +0100
commit57582450318e955632d8fb09f42bd90f2ed5d3b4 (patch)
tree90c1861b375e1db45a74e1744d31d3f99c0f7594
parent476e06eb1635a4cc9419da090d23fde9fed5a693 (diff)
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)
-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";
}
}