mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix for generation of ephemeral key if static ephemeral is not set.
This commit is contained in:
@ -55599,7 +55599,7 @@ int wolfSSL_X509_REQ_set_pubkey(WOLFSSL_X509 *req, WOLFSSL_EVP_PKEY *pkey)
|
|||||||
#ifdef WOLFSSL_STATIC_EPHEMERAL
|
#ifdef WOLFSSL_STATIC_EPHEMERAL
|
||||||
int wolfSSL_StaticEphemeralKeyLoad(WOLFSSL* ssl, int keyAlgo, void* keyPtr)
|
int wolfSSL_StaticEphemeralKeyLoad(WOLFSSL* ssl, int keyAlgo, void* keyPtr)
|
||||||
{
|
{
|
||||||
int ret = BUFFER_E;
|
int ret;
|
||||||
word32 idx = 0;
|
word32 idx = 0;
|
||||||
DerBuffer* der = NULL;
|
DerBuffer* der = NULL;
|
||||||
|
|
||||||
@ -55617,6 +55617,7 @@ int wolfSSL_StaticEphemeralKeyLoad(WOLFSSL* ssl, int keyAlgo, void* keyPtr)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ret = BUFFER_E; /* set default error */
|
||||||
switch (keyAlgo) {
|
switch (keyAlgo) {
|
||||||
#ifndef NO_DH
|
#ifndef NO_DH
|
||||||
case WC_PK_TYPE_DH:
|
case WC_PK_TYPE_DH:
|
||||||
|
Reference in New Issue
Block a user