From: jsing Date: Sat, 23 Aug 2014 15:37:38 +0000 (+0000) Subject: Remove non-standard GOST cipher suites (which are not compiled in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=98464bca80dd4c6fb622e413dee27fbf454cd07f;p=openbsd Remove non-standard GOST cipher suites (which are not compiled in currently). From Dmitry Eremin-Solenikov. --- diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index 1578f0388dc..9a256430709 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_lib.c,v 1.77 2014/08/23 14:52:41 jsing Exp $ */ +/* $OpenBSD: s3_lib.c,v 1.78 2014/08/23 15:37:38 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1705,73 +1705,6 @@ SSL_CIPHER ssl3_ciphers[] = { .alg_bits = 256, }, -#ifdef TEMP_GOST_TLS - /* Cipher FF00 */ - { - .valid = 1, - .name = "GOST-MD5", - .id = 0x0300ff00, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_MD5, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF, - .strength_bits = 256, - .alg_bits = 256, - }, - - /* Cipher FF01 */ - { - .valid = 1, - .name = "GOST-GOST94", - .id = 0x0300ff01, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_GOST94, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF, - .strength_bits = 256, - .alg_bits = 256 - }, - - /* Cipher FF02 */ - { - .valid = 1, - .name = "GOST-GOST89MAC", - .id = 0x0300ff02, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_GOST89MAC, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF, - .strength_bits = 256, - .alg_bits = 256 - }, - - /* Cipher FF03 */ - { - .valid = 1, - .name = "GOST-GOST89STREAM", - .id = 0x0300ff03, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_GOST89MAC, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF| - TLS1_STREAM_MAC, - .strength_bits = 256, - .alg_bits = 256 - }, -#endif - #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) /* Cipher CC13 */ { diff --git a/lib/libssl/src/ssl/s3_lib.c b/lib/libssl/src/ssl/s3_lib.c index 1578f0388dc..9a256430709 100644 --- a/lib/libssl/src/ssl/s3_lib.c +++ b/lib/libssl/src/ssl/s3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_lib.c,v 1.77 2014/08/23 14:52:41 jsing Exp $ */ +/* $OpenBSD: s3_lib.c,v 1.78 2014/08/23 15:37:38 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1705,73 +1705,6 @@ SSL_CIPHER ssl3_ciphers[] = { .alg_bits = 256, }, -#ifdef TEMP_GOST_TLS - /* Cipher FF00 */ - { - .valid = 1, - .name = "GOST-MD5", - .id = 0x0300ff00, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_MD5, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF, - .strength_bits = 256, - .alg_bits = 256, - }, - - /* Cipher FF01 */ - { - .valid = 1, - .name = "GOST-GOST94", - .id = 0x0300ff01, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_GOST94, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF, - .strength_bits = 256, - .alg_bits = 256 - }, - - /* Cipher FF02 */ - { - .valid = 1, - .name = "GOST-GOST89MAC", - .id = 0x0300ff02, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_GOST89MAC, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF, - .strength_bits = 256, - .alg_bits = 256 - }, - - /* Cipher FF03 */ - { - .valid = 1, - .name = "GOST-GOST89STREAM", - .id = 0x0300ff03, - .algorithm_mkey = SSL_kRSA, - .algorithm_auth = SSL_aRSA, - .algorithm_enc = SSL_eGOST2814789CNT, - .algorithm_mac = SSL_GOST89MAC, - .algorithm_ssl = SSL_TLSV1, - .algo_strength = SSL_HIGH, - .algorithm2 = SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF| - TLS1_STREAM_MAC, - .strength_bits = 256, - .alg_bits = 256 - }, -#endif - #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) /* Cipher CC13 */ {