Add the nist group names as aliases for the normal TLS group names
[openssl.git] / ssl / t1_lib.c
index 6bc33215c1260c45b0206df1a7b71373c1d83235..571a1ec2c46207c1ee513e84fc33b80e27bcb377 100644 (file)
@@ -440,10 +440,7 @@ static uint16_t tls1_group_name2id(SSL_CTX *ctx, const char *name)
 
     for (i = 0; i < ctx->group_list_len; i++) {
         if (strcmp(ctx->group_list[i].tlsname, name) == 0
-                || (nid != NID_undef
-                    && nid == tls1_group_id2nid(ctx->group_list[i].group_id,
-                                                0))
-           )
+                || strcmp(ctx->group_list[i].realname, name) == 0)
             return ctx->group_list[i].group_id;
     }