From d162340d367d7a74916106d8706c6b22adb727c2 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 16 Jul 2018 17:31:37 +0100 Subject: [PATCH] Fix no-psk Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6724) --- ssl/statem/statem_lib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index 0d8fe5d912..6262a068c2 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -1493,7 +1493,12 @@ static int is_tls13_capable(const SSL *s) { int i; - if (s->psk_server_callback != NULL || s->psk_find_session_cb != NULL) +#ifndef OPENSSL_NO_PSK + if (s->psk_server_callback != NULL) + return 1; +#endif + + if (s->psk_find_session_cb != NULL) return 1; for (i = 0; i < SSL_PKEY_NUM; i++) { -- 2.25.1