forked from wolfSSL/wolfssl
WOLFSSL_MIN_DOWNGRADE, default: TLSv1_MINOR
This commit is contained in:
committed by
Jacob Barthelmeh
parent
5a40d8b3c2
commit
401db67bcd
@ -1345,7 +1345,7 @@ int InitSSL_Ctx(WOLFSSL_CTX* ctx, WOLFSSL_METHOD* method, void* heap)
|
||||
ctx->refCount = 1; /* so either CTX_free or SSL_free can release */
|
||||
ctx->heap = ctx; /* defaults to self */
|
||||
ctx->timeout = WOLFSSL_SESSION_TIMEOUT;
|
||||
ctx->minDowngrade = TLSv1_MINOR; /* current default */
|
||||
ctx->minDowngrade = WOLFSSL_MIN_DOWNGRADE; /* current default: TLSv1_MINOR */
|
||||
|
||||
if (wc_InitMutex(&ctx->countMutex) < 0) {
|
||||
WOLFSSL_MSG("Mutex error on CTX init");
|
||||
|
@ -1185,6 +1185,10 @@ enum Misc {
|
||||
READ_PROTO = 0 /* reading a protocol message */
|
||||
};
|
||||
|
||||
/* minimum Downgrade Minor version */
|
||||
#ifndef WOLFSSL_MIN_DOWNGRADE
|
||||
#define WOLFSSL_MIN_DOWNGRADE TLSv1_MINOR
|
||||
#endif
|
||||
|
||||
/* Set max implicit IV size for AEAD cipher suites */
|
||||
#define AEAD_MAX_IMP_SZ 12
|
||||
|
Reference in New Issue
Block a user