summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-06-06 13:18:34 +0000
committertb <>2022-06-06 13:18:34 +0000
commit11c0c71d977c31afa56ccf830e982a298db962f6 (patch)
tree944ec351c7471edeb4fd250a23978501e217985a /src
parent4faa7bcb8fdf86a84b9ed6ea7ab78fa59c33f9df (diff)
downloadopenbsd-11c0c71d977c31afa56ccf830e982a298db962f6.tar.gz
openbsd-11c0c71d977c31afa56ccf830e982a298db962f6.tar.bz2
openbsd-11c0c71d977c31afa56ccf830e982a298db962f6.zip
Remove incorrect and ungrammattical comment
The fallback to SHA-1 if SHA-256 is disabled fell victim to tedu many moons ago when this file was still called s3_clnt.c and had no RCS ID.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_clnt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c
index 607b038825..f5b8802a69 100644
--- a/src/lib/libssl/ssl_clnt.c
+++ b/src/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_clnt.c,v 1.141 2022/02/05 14:54:10 jsing Exp $ */ 1/* $OpenBSD: ssl_clnt.c,v 1.142 2022/06/06 13:18:34 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1647,8 +1647,7 @@ ssl3_get_new_session_ticket(SSL *s)
1647 * 1647 *
1648 * We choose the former approach because this fits in with 1648 * We choose the former approach because this fits in with
1649 * assumptions elsewhere in OpenSSL. The session ID is set 1649 * assumptions elsewhere in OpenSSL. The session ID is set
1650 * to the SHA256 (or SHA1 is SHA256 is disabled) hash of the 1650 * to the SHA256 hash of the ticket.
1651 * ticket.
1652 */ 1651 */
1653 EVP_Digest(CBS_data(&session_ticket), CBS_len(&session_ticket), 1652 EVP_Digest(CBS_data(&session_ticket), CBS_len(&session_ticket),
1654 s->session->session_id, &s->session->session_id_length, 1653 s->session->session_id, &s->session->session_id_length,