diff options
Diffstat (limited to 'lib/ext/key_share.c')
-rw-r--r-- | lib/ext/key_share.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ext/key_share.c b/lib/ext/key_share.c index 871ff08ceb..c46f0c733e 100644 --- a/lib/ext/key_share.c +++ b/lib/ext/key_share.c @@ -32,7 +32,7 @@ #include <algorithms.h> #include "auth/psk.h" #include "auth/cert.h" -#include "auth/anon.h" +#include "handshake.h" #include "../ecc.h" #include "../algorithms.h" #include "pk.h" @@ -649,6 +649,9 @@ key_share_send_params(gnutls_session_t session, if (unlikely(ver == NULL || ver->key_shares == 0)) return 0; + if (!have_creds_for_tls13(session)) + return 0; + /* write the total length later */ lengthp = &extdata->data[extdata->length]; |