summaryrefslogtreecommitdiffstats
path: root/crypto/cmp
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2022-07-01 20:25:55 +0200
committerDr. David von Oheimb <dev@ddvo.net>2022-07-11 11:03:28 +0200
commit93d9d6097685dc29e654db15c091c550aef16d5b (patch)
tree98786fb48237d47dfcc92ca0322efc6f9cd9a7de /crypto/cmp
parent4798e0680b112993815098ca21d7d68ff31ebc6e (diff)
cmp_http.c: extend comment in keep_alive()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/18702)
Diffstat (limited to 'crypto/cmp')
-rw-r--r--crypto/cmp/cmp_http.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/cmp/cmp_http.c b/crypto/cmp/cmp_http.c
index c7d24c1795..22144764a4 100644
--- a/crypto/cmp/cmp_http.c
+++ b/crypto/cmp/cmp_http.c
@@ -29,7 +29,10 @@
static int keep_alive(int keep_alive, int body_type)
{
if (keep_alive != 0
- /* Ask for persistent connection only if may need more round trips */
+ /*
+ * Ask for persistent connection only if may need more round trips.
+ * Do so even with disableConfirm because polling might be needed.
+ */
&& body_type != OSSL_CMP_PKIBODY_IR
&& body_type != OSSL_CMP_PKIBODY_CR
&& body_type != OSSL_CMP_PKIBODY_P10CR