summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorbeck <>2021-09-02 11:58:30 +0000
committerbeck <>2021-09-02 11:58:30 +0000
commitd0809b5ed8cfa0c035364e0fc4076d693a68339e (patch)
tree21342e3600c98e6c5869806b8c27c11b1c9c949f /src/lib
parentb2715265ab668762e0c33452b4ef245ea07954e6 (diff)
downloadopenbsd-d0809b5ed8cfa0c035364e0fc4076d693a68339e.tar.gz
openbsd-d0809b5ed8cfa0c035364e0fc4076d693a68339e.tar.bz2
openbsd-d0809b5ed8cfa0c035364e0fc4076d693a68339e.zip
Call the ocsp callback if present and we get no response, instead of
succeeding unconditionally. Makes muststaple work with tls1.3 in nc ok tb@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/tls13_lib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c
index 77b4364f56..6615efc4d2 100644
--- a/src/lib/libssl/tls13_lib.c
+++ b/src/lib/libssl/tls13_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_lib.c,v 1.60 2021/08/30 19:25:43 jsing Exp $ */ 1/* $OpenBSD: tls13_lib.c,v 1.61 2021/09/02 11:58:30 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2019 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2019 Bob Beck <beck@openbsd.org>
@@ -195,8 +195,7 @@ tls13_legacy_ocsp_status_recv_cb(void *arg)
195 SSL *s = ctx->ssl; 195 SSL *s = ctx->ssl;
196 int ret; 196 int ret;
197 197
198 if (s->ctx->internal->tlsext_status_cb == NULL || 198 if (s->ctx->internal->tlsext_status_cb == NULL)
199 s->internal->tlsext_ocsp_resp == NULL)
200 return 1; 199 return 1;
201 200
202 ret = s->ctx->internal->tlsext_status_cb(s, 201 ret = s->ctx->internal->tlsext_status_cb(s,