From eab773a8aa0c421e9c65f6a115306f2cecf9dfa0 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 9 Nov 2016 18:32:35 -0500 Subject: [PATCH] Add missing PSK identity comment. Change-Id: I1ca9f252afeea6cdcaa6d75e842eab019c82a7e4 Reviewed-on: https://boringssl-review.googlesource.com/12184 Reviewed-by: David Benjamin --- ssl/t1_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 39a6b333..36905488 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1960,6 +1960,7 @@ int ssl_ext_pre_shared_key_parse_serverhello(SSL *ssl, uint8_t *out_alert, return 0; } + /* We only advertise one PSK identity, so the only legal index is zero. */ if (psk_id != 0) { OPENSSL_PUT_ERROR(SSL, SSL_R_PSK_IDENTITY_NOT_FOUND); *out_alert = SSL_AD_UNKNOWN_PSK_IDENTITY;