mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix for building with NO_CERTS
or NO_WOLFSSL_SERVER
defined.
This commit is contained in:
@@ -2643,7 +2643,9 @@ void InitSuites(Suites* suites, ProtocolVersion pv, int keySz, word16 haveRSA,
|
|||||||
InitSuitesHashSigAlgo(suites, haveECDSAsig, haveRSAsig, 0, tls1_2, keySz);
|
InitSuitesHashSigAlgo(suites, haveECDSAsig, haveRSAsig, 0, tls1_2, keySz);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(NO_WOLFSSL_SERVER) || !defined(NO_CERTS)
|
#if !defined(NO_WOLFSSL_SERVER) || !defined(NO_CERTS) || \
|
||||||
|
(!defined(NO_WOLFSSL_CLIENT) && (!defined(NO_DH) || defined(HAVE_ECC)))
|
||||||
|
|
||||||
/* Decode the signature algorithm.
|
/* Decode the signature algorithm.
|
||||||
*
|
*
|
||||||
* input The encoded signature algorithm.
|
* input The encoded signature algorithm.
|
||||||
|
@@ -1408,7 +1408,9 @@ int wolfSSL_CTX_SetMinEccKey_Sz(WOLFSSL_CTX* ctx, short keySz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx->minEccKeySz = keySz / 8;
|
ctx->minEccKeySz = keySz / 8;
|
||||||
|
#ifndef NO_CERTS
|
||||||
ctx->cm->minEccKeySz = keySz / 8;
|
ctx->cm->minEccKeySz = keySz / 8;
|
||||||
|
#endif
|
||||||
return SSL_SUCCESS;
|
return SSL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user