mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Pass static ephemeral keys for TLS v1.2 as well.
This commit is contained in:
@@ -2426,6 +2426,14 @@ static int ProcessClientKeyExchange(const byte* input, int* sslBytes,
|
|||||||
}
|
}
|
||||||
|
|
||||||
XMEMSET(&keys, 0, sizeof(keys));
|
XMEMSET(&keys, 0, sizeof(keys));
|
||||||
|
#ifdef WOLFSSL_STATIC_EPHEMERAL
|
||||||
|
#ifndef NO_DH
|
||||||
|
keys.dhKey = session->sslServer->staticKE.dhKey;
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_ECC
|
||||||
|
keys.ecKey = session->sslServer->staticKE.ecKey;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
keys.rsaKey = session->sslServer->buffers.key;
|
keys.rsaKey = session->sslServer->buffers.key;
|
||||||
return SetupKeys(input, sslBytes, session, error, NULL, &keys);
|
return SetupKeys(input, sslBytes, session, error, NULL, &keys);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user