diff options
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
| -rw-r--r-- | src/lib/libssl/ssl_ciph.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 1645f6af49..6193cd1a66 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.71 2014/11/02 10:42:38 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.72 2014/11/08 15:21:02 jsing 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 | * |
| @@ -450,10 +450,6 @@ static const SSL_CIPHER cipher_aliases[] = { | |||
| 450 | 450 | ||
| 451 | /* protocol version aliases */ | 451 | /* protocol version aliases */ |
| 452 | { | 452 | { |
| 453 | .name = SSL_TXT_SSLV2, | ||
| 454 | .algorithm_ssl = SSL_SSLV2, | ||
| 455 | }, | ||
| 456 | { | ||
| 457 | .name = SSL_TXT_SSLV3, | 453 | .name = SSL_TXT_SSLV3, |
| 458 | .algorithm_ssl = SSL_SSLV3, | 454 | .algorithm_ssl = SSL_SSLV3, |
| 459 | }, | 455 | }, |
| @@ -872,9 +868,8 @@ CIPHER_ORDER **head_p, CIPHER_ORDER **tail_p) | |||
| 872 | 868 | ||
| 873 | /* | 869 | /* |
| 874 | * We have num_of_ciphers descriptions compiled in, depending on the | 870 | * We have num_of_ciphers descriptions compiled in, depending on the |
| 875 | * method selected (SSLv2 and/or SSLv3, TLSv1 etc). | 871 | * method selected (SSLv3, TLSv1, etc). These will later be sorted in |
| 876 | * These will later be sorted in a linked list with at most num | 872 | * a linked list with at most num entries. |
| 877 | * entries. | ||
| 878 | */ | 873 | */ |
| 879 | 874 | ||
| 880 | /* Get the initial list of ciphers */ | 875 | /* Get the initial list of ciphers */ |
| @@ -1560,9 +1555,7 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len) | |||
| 1560 | 1555 | ||
| 1561 | alg2 = cipher->algorithm2; | 1556 | alg2 = cipher->algorithm2; |
| 1562 | 1557 | ||
| 1563 | if (alg_ssl & SSL_SSLV2) | 1558 | if (alg_ssl & SSL_SSLV3) |
| 1564 | ver = "SSLv2"; | ||
| 1565 | else if (alg_ssl & SSL_SSLV3) | ||
| 1566 | ver = "SSLv3"; | 1559 | ver = "SSLv3"; |
| 1567 | else if (alg_ssl & SSL_TLSV1_2) | 1560 | else if (alg_ssl & SSL_TLSV1_2) |
| 1568 | ver = "TLSv1.2"; | 1561 | ver = "TLSv1.2"; |
| @@ -1691,15 +1684,10 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len) | |||
| 1691 | char * | 1684 | char * |
| 1692 | SSL_CIPHER_get_version(const SSL_CIPHER *c) | 1685 | SSL_CIPHER_get_version(const SSL_CIPHER *c) |
| 1693 | { | 1686 | { |
| 1694 | int i; | ||
| 1695 | |||
| 1696 | if (c == NULL) | 1687 | if (c == NULL) |
| 1697 | return("(NONE)"); | 1688 | return("(NONE)"); |
| 1698 | i = (int)(c->id >> 24L); | 1689 | if ((c->id >> 24) == 3) |
| 1699 | if (i == 3) | ||
| 1700 | return("TLSv1/SSLv3"); | 1690 | return("TLSv1/SSLv3"); |
| 1701 | else if (i == 2) | ||
| 1702 | return("SSLv2"); | ||
| 1703 | else | 1691 | else |
| 1704 | return("unknown"); | 1692 | return("unknown"); |
| 1705 | } | 1693 | } |
