forked from wolfSSL/wolfssl
update return value of local GetCurveByOID
This commit is contained in:
@@ -23038,7 +23038,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
|
||||
#ifdef HAVE_ECC
|
||||
/* returns the WOLFSSL_* version of the curve from the OID sum */
|
||||
unsigned char GetCurveByOID(int oidSum) {
|
||||
word16 GetCurveByOID(int oidSum) {
|
||||
switch(oidSum) {
|
||||
#if defined(HAVE_ECC160) || defined(HAVE_ALL_CURVES)
|
||||
#ifndef NO_ECC_SECP
|
||||
@@ -23111,6 +23111,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
#endif /* !NO_ECC_SECP */
|
||||
#endif
|
||||
default:
|
||||
WOLFSSL_MSG("Curve OID not compiled in or implemented");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -4465,7 +4465,7 @@ WOLFSSL_LOCAL int SetKeysSide(WOLFSSL*, enum encrypt_side);
|
||||
|
||||
#ifdef HAVE_ECC
|
||||
WOLFSSL_LOCAL int EccMakeKey(WOLFSSL* ssl, ecc_key* key, ecc_key* peer);
|
||||
WOLFSSL_LOCAL unsigned char GetCurveByOID(int oidSum);
|
||||
WOLFSSL_LOCAL word16 GetCurveByOID(int oidSum);
|
||||
#endif
|
||||
|
||||
WOLFSSL_LOCAL int InitHandshakeHashes(WOLFSSL* ssl);
|
||||
|
Reference in New Issue
Block a user