From 7946a3793c5e16cd6b152d6c21f53524e2b0d202 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 29 Jun 2021 19:43:15 +0000 Subject: Track sigalg used by ourselves and our peer in the legacy stack. This is needed for upcoming API additions. --- src/lib/libssl/ssl_srvr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl_srvr.c') diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c index e3eeddab0f..2097ccdebf 100644 --- a/src/lib/libssl/ssl_srvr.c +++ b/src/lib/libssl/ssl_srvr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_srvr.c,v 1.116 2021/06/29 19:24:07 jsing Exp $ */ +/* $OpenBSD: ssl_srvr.c,v 1.117 2021/06/29 19:43:15 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1565,6 +1565,7 @@ ssl3_send_server_key_exchange(SSL *s) al = SSL_AD_DECODE_ERROR; goto fatal_err; } + S3I(s)->hs.our_sigalg = sigalg; /* Send signature algorithm. */ if (SSL_USE_SIGALGS(s)) { @@ -2194,6 +2195,7 @@ ssl3_get_cert_verify(SSL *s) al = SSL_AD_DECODE_ERROR; goto fatal_err; } + S3I(s)->hs.peer_sigalg = sigalg; if (SSL_USE_SIGALGS(s)) { EVP_PKEY_CTX *pctx; -- cgit v1.2.3-55-g6feb