summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-05-09 07:47:50 +0000
committertb <>2024-05-09 07:47:50 +0000
commitef3fdc7ca030406f952286ee94a6e2145899eb83 (patch)
tree6c6cd31958d081fd2b4ddaf4d212bebb129bf33a /src
parent0615fda950bc56502db2a891579eff6e2eb4659f (diff)
downloadopenbsd-ef3fdc7ca030406f952286ee94a6e2145899eb83.tar.gz
openbsd-ef3fdc7ca030406f952286ee94a6e2145899eb83.tar.bz2
openbsd-ef3fdc7ca030406f952286ee94a6e2145899eb83.zip
Remove leftover logic of SSL2 support
SSL2_CF_8_BYTE_ENC was set by things such as RC4_64_WITH_MD5, which fell victim to tedu's axe a decade ago. Zap that. ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_ciph.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c
index 45d7889b9a..4bcd0dbba4 100644
--- a/src/lib/libssl/ssl_ciph.c
+++ b/src/lib/libssl/ssl_ciph.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_ciph.c,v 1.140 2024/03/02 11:45:51 tb Exp $ */ 1/* $OpenBSD: ssl_ciph.c,v 1.141 2024/05/09 07:47:50 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 *
@@ -1344,7 +1344,7 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method,
1344char * 1344char *
1345SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len) 1345SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
1346{ 1346{
1347 unsigned long alg_mkey, alg_auth, alg_enc, alg_mac, alg_ssl, alg2; 1347 unsigned long alg_mkey, alg_auth, alg_enc, alg_mac, alg_ssl;
1348 const char *ver, *kx, *au, *enc, *mac; 1348 const char *ver, *kx, *au, *enc, *mac;
1349 char *ret; 1349 char *ret;
1350 int l; 1350 int l;
@@ -1355,8 +1355,6 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
1355 alg_mac = cipher->algorithm_mac; 1355 alg_mac = cipher->algorithm_mac;
1356 alg_ssl = cipher->algorithm_ssl; 1356 alg_ssl = cipher->algorithm_ssl;
1357 1357
1358 alg2 = cipher->algorithm2;
1359
1360 if (alg_ssl & SSL_SSLV3) 1358 if (alg_ssl & SSL_SSLV3)
1361 ver = "SSLv3"; 1359 ver = "SSLv3";
1362 else if (alg_ssl & SSL_TLSV1_2) 1360 else if (alg_ssl & SSL_TLSV1_2)
@@ -1409,7 +1407,7 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
1409 enc = "3DES(168)"; 1407 enc = "3DES(168)";
1410 break; 1408 break;
1411 case SSL_RC4: 1409 case SSL_RC4:
1412 enc = alg2 & SSL2_CF_8_BYTE_ENC ? "RC4(64)" : "RC4(128)"; 1410 enc = "RC4(128)";
1413 break; 1411 break;
1414 case SSL_eNULL: 1412 case SSL_eNULL:
1415 enc = "None"; 1413 enc = "None";