sync with OpenBSD -current
This commit is contained in:
parent
01ab08895c
commit
492219ffd1
35 changed files with 666 additions and 546 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ssl_ciph.c,v 1.140 2024/03/02 11:45:51 tb Exp $ */
|
||||
/* $OpenBSD: ssl_ciph.c,v 1.142 2024/05/09 07:55:48 tb Exp $ */
|
||||
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
||||
* All rights reserved.
|
||||
*
|
||||
|
@ -522,8 +522,7 @@ ssl_get_handshake_evp_md(SSL *s, const EVP_MD **md)
|
|||
if (s->s3->hs.cipher == NULL)
|
||||
return 0;
|
||||
|
||||
handshake_mac = s->s3->hs.cipher->algorithm2 &
|
||||
SSL_HANDSHAKE_MAC_MASK;
|
||||
handshake_mac = s->s3->hs.cipher->algorithm2 & SSL_HANDSHAKE_MAC_MASK;
|
||||
|
||||
/* For TLSv1.2 we upgrade the default MD5+SHA1 MAC to SHA256. */
|
||||
if (SSL_USE_SHA256_PRF(s) && handshake_mac == SSL_HANDSHAKE_MAC_DEFAULT)
|
||||
|
@ -1344,7 +1343,7 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method,
|
|||
char *
|
||||
SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
|
||||
{
|
||||
unsigned long alg_mkey, alg_auth, alg_enc, alg_mac, alg_ssl, alg2;
|
||||
unsigned long alg_mkey, alg_auth, alg_enc, alg_mac, alg_ssl;
|
||||
const char *ver, *kx, *au, *enc, *mac;
|
||||
char *ret;
|
||||
int l;
|
||||
|
@ -1355,8 +1354,6 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
|
|||
alg_mac = cipher->algorithm_mac;
|
||||
alg_ssl = cipher->algorithm_ssl;
|
||||
|
||||
alg2 = cipher->algorithm2;
|
||||
|
||||
if (alg_ssl & SSL_SSLV3)
|
||||
ver = "SSLv3";
|
||||
else if (alg_ssl & SSL_TLSV1_2)
|
||||
|
@ -1409,7 +1406,7 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
|
|||
enc = "3DES(168)";
|
||||
break;
|
||||
case SSL_RC4:
|
||||
enc = alg2 & SSL2_CF_8_BYTE_ENC ? "RC4(64)" : "RC4(128)";
|
||||
enc = "RC4(128)";
|
||||
break;
|
||||
case SSL_eNULL:
|
||||
enc = "None";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue