]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
tls-crypto: Enumerate x25519/448 and rename constant for consistency
authorTobias Brunner <tobias@strongswan.org>
Tue, 25 Aug 2020 11:16:52 +0000 (13:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 10:45:44 +0000 (11:45 +0100)
src/libtls/tls_crypto.c
src/libtls/tls_crypto.h

index fea04a9ebcb9a4a77b71b3b20a932735dae9c0e1..77fc1530959f57535dd48c048285fa025f05bbd7 100644 (file)
@@ -320,11 +320,11 @@ ENUM_BEGIN(tls_named_group_names, TLS_SECT163K1, TLS_SECP521R1,
        "SECP384R1",
        "SECP521R1",
 );
-ENUM_NEXT(tls_named_group_names, TLS_CURVE25519, TLS_CURVE_448, TLS_SECP521R1,
+ENUM_NEXT(tls_named_group_names, TLS_CURVE25519, TLS_CURVE448, TLS_SECP521R1,
        "CURVE25519",
        "CURVE448",
 );
-ENUM_NEXT(tls_named_group_names, TLS_FFDHE2048, TLS_FFDHE8192, TLS_CURVE_448,
+ENUM_NEXT(tls_named_group_names, TLS_FFDHE2048, TLS_FFDHE8192, TLS_CURVE448,
        "FFDHE2048",
        "FFDHE3072",
        "FFDHE4096",
@@ -1471,6 +1471,8 @@ static struct {
        { ECP_521_BIT, TLS_SECP521R1},
        { ECP_224_BIT, TLS_SECP224R1},
        { ECP_192_BIT, TLS_SECP192R1},
+       { CURVE_25519, TLS_CURVE25519},
+       { CURVE_448,   TLS_CURVE448},
 };
 
 CALLBACK(group_filter, bool,
index 04519065656a3dae712cf4d5103bc298ec8c800c..5cd007241e1333f59762b675011c2efb9f2dd8db 100644 (file)
@@ -362,7 +362,7 @@ enum tls_named_group_t {
 
        /* TLS 1.3: new ecdhe, dhe groups */
        TLS_CURVE25519 =    29,
-       TLS_CURVE_448  =    30,
+       TLS_CURVE448   =    30,
        TLS_FFDHE2048  =    256,
        TLS_FFDHE3072  =    257,
        TLS_FFDHE4096  =    258,