]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
proposal: Remove MODP-1024 from default IKE proposal
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Sep 2017 09:04:37 +0000 (11:04 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Nov 2017 15:47:16 +0000 (16:47 +0100)
RFC 8247 demoted it to SHOULD NOT. This might break connections with
Windows clients unless they are configured to use a stronger group or
matching weak proposals are configured explicitly on the server.

References #2427.

src/libcharon/config/proposal.c

index b4245d3de478806464944cfe930ef06580939b98..46c3c9400a03971b92485ba2bb92e136d482741f 100644 (file)
@@ -973,6 +973,8 @@ static bool proposal_add_supported_ike(private_proposal_t *this, bool aead)
                                /* only for testing purposes */
                                break;
                        case MODP_768_BIT:
+                       case MODP_1024_BIT:
+                       case MODP_1536_BIT:
                                /* weak */
                                break;
                        case MODP_1024_160:
@@ -980,7 +982,6 @@ static bool proposal_add_supported_ike(private_proposal_t *this, bool aead)
                        case MODP_2048_256:
                                /* RFC 5114 primes are of questionable source */
                                break;
-                       case MODP_1536_BIT:
                        case ECP_224_BIT:
                        case ECP_224_BP:
                        case ECP_192_BIT:
@@ -988,7 +989,6 @@ static bool proposal_add_supported_ike(private_proposal_t *this, bool aead)
                                /* rarely used */
                                break;
                        case MODP_2048_BIT:
-                       case MODP_1024_BIT:
                                add_algorithm(this, DIFFIE_HELLMAN_GROUP, group, 0);
                                break;
                        default: