Skip to content

Commit

Permalink
alginment correction of curve array
Browse files Browse the repository at this point in the history
Signed-off-by: Gautham Kuppuswamy <[email protected]>
  • Loading branch information
Gautham-coder committed Jul 30, 2024
1 parent d3a3759 commit 3c6ed63
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions h/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,38 +284,38 @@ typedef struct CipherMap_tag {

#define TLS_IANA_CURVE_MAP(ianaCurveMap)\
static const CurveMap ianaCurveMap[] = {\
{"sect163k1", TLS_CURVE_SECT163K1},\
{"sect163r1", TLS_CURVE_SECT163R1},\
{"sect163r2", TLS_CURVE_SECT163R2},\
{"sect193r1", TLS_CURVE_SECT193R1},\
{"sect193r2", TLS_CURVE_SECT193R2},\
{"sect233k1", TLS_CURVE_SECT233K1},\
{"sect233r1", TLS_CURVE_SECT233R1},\
{"sect239k1", TLS_CURVE_SECT239K1},\
{"sect283k1", TLS_CURVE_SECT283K1},\
{"sect283r1", TLS_CURVE_SECT283R1},\
{"sect409k1", TLS_CURVE_SECT409K1},\
{"sect409r1", TLS_CURVE_SECT409R1},\
{"sect571k1", TLS_CURVE_SECT571K1},\
{"sect571r1", TLS_CURVE_SECT571R1},\
{"secp160k1", TLS_CURVE_SECP160K1},\
{"secp160r1", TLS_CURVE_SECP160R1},\
{"secp160r2", TLS_CURVE_SECP160R2},\
{"secp192k1", TLS_CURVE_SECP192K1},\
{"prime192v",TLS_CURVE_PRIME192V},\
{"secp224k1", TLS_CURVE_SECP224K1},\
{"secp224r1", TLS_CURVE_SECP224R1},\
{"secp256k1", TLS_CURVE_SECP256K1},\
{"secp384r1", TLS_CURVE_SECP384R1},\
{"prime256v1",TLS_CURVE_PRIME256V1},\
{"secp521r1", TLS_CURVE_SECP521R1},\
{"brainpoolP256r1", TLS_CURVE_BRAINPOOLP256R1},\
{"brainpoolP384r1", TLS_CURVE_BRAINPOOLP384R1},\
{"brainpoolP512r1", TLS_CURVE_BRAINPOOLP512R1},\
{"brainpoolP256r1tls13", TLS_CURVE_BRAINPOOLP256R1TLS13},\
{"brainpoolP384r1tls13", TLS_CURVE_BRAINPOOLP384R1TLS13},\
{"brainpoolP512r1tls13", TLS_CURVE_BRAINPOOLP512R1TLS13},\
{0, NULL}\
{"sect163k1", TLS_CURVE_SECT163K1},\
{"sect163r1", TLS_CURVE_SECT163R1},\
{"sect163r2", TLS_CURVE_SECT163R2},\
{"sect193r1", TLS_CURVE_SECT193R1},\
{"sect193r2", TLS_CURVE_SECT193R2},\
{"sect233k1", TLS_CURVE_SECT233K1},\
{"sect233r1", TLS_CURVE_SECT233R1},\
{"sect239k1", TLS_CURVE_SECT239K1},\
{"sect283k1", TLS_CURVE_SECT283K1},\
{"sect283r1", TLS_CURVE_SECT283R1},\
{"sect409k1", TLS_CURVE_SECT409K1},\
{"sect409r1", TLS_CURVE_SECT409R1},\
{"sect571k1", TLS_CURVE_SECT571K1},\
{"sect571r1", TLS_CURVE_SECT571R1},\
{"secp160k1", TLS_CURVE_SECP160K1},\
{"secp160r1", TLS_CURVE_SECP160R1},\
{"secp160r2", TLS_CURVE_SECP160R2},\
{"secp192k1", TLS_CURVE_SECP192K1},\
{"prime192v",TLS_CURVE_PRIME192V},\
{"secp224k1", TLS_CURVE_SECP224K1},\
{"secp224r1", TLS_CURVE_SECP224R1},\
{"secp256k1", TLS_CURVE_SECP256K1},\
{"secp384r1", TLS_CURVE_SECP384R1},\
{"prime256v1",TLS_CURVE_PRIME256V1},\
{"secp521r1", TLS_CURVE_SECP521R1},\
{"brainpoolP256r1", TLS_CURVE_BRAINPOOLP256R1},\
{"brainpoolP384r1", TLS_CURVE_BRAINPOOLP384R1},\
{"brainpoolP512r1", TLS_CURVE_BRAINPOOLP512R1},\
{"brainpoolP256r1tls13", TLS_CURVE_BRAINPOOLP256R1TLS13},\
{"brainpoolP384r1tls13", TLS_CURVE_BRAINPOOLP384R1TLS13},\
{"brainpoolP512r1tls13", TLS_CURVE_BRAINPOOLP512R1TLS13},\
{0, NULL}\
};

int tlsInit(TlsEnvironment **outEnv, TlsSettings *settings);
Expand Down

0 comments on commit 3c6ed63

Please sign in to comment.