mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Fix for being able to build with LIBOQS but without DH
The following configuration yielded a compile error: ./configure --with-liboqs --disable-dh This fixes bug reported on ZD13028.
This commit is contained in:
@@ -7783,7 +7783,7 @@ static int TLSX_KeyShare_Parse(WOLFSSL* ssl, const byte* input, word16 length,
|
|||||||
|
|
||||||
/* Not in list sent if there isn't a private key. */
|
/* Not in list sent if there isn't a private key. */
|
||||||
if (keyShareEntry == NULL || (keyShareEntry->key == NULL
|
if (keyShareEntry == NULL || (keyShareEntry->key == NULL
|
||||||
#ifndef NO_DH
|
#if !defined(NO_DH) || defined(HAVE_LIBOQS)
|
||||||
&& keyShareEntry->privKey == NULL
|
&& keyShareEntry->privKey == NULL
|
||||||
#endif
|
#endif
|
||||||
)) {
|
)) {
|
||||||
|
@@ -2571,15 +2571,15 @@ WOLFSSL_LOCAL int TLSX_Cookie_Use(WOLFSSL* ssl, const byte* data, word16 len,
|
|||||||
|
|
||||||
/* The KeyShare extension information - entry in a linked list. */
|
/* The KeyShare extension information - entry in a linked list. */
|
||||||
typedef struct KeyShareEntry {
|
typedef struct KeyShareEntry {
|
||||||
word16 group; /* NamedGroup */
|
word16 group; /* NamedGroup */
|
||||||
byte* ke; /* Key exchange data */
|
byte* ke; /* Key exchange data */
|
||||||
word32 keLen; /* Key exchange data length */
|
word32 keLen; /* Key exchange data length */
|
||||||
void* key; /* Key struct */
|
void* key; /* Key struct */
|
||||||
word32 keyLen; /* Key size (bytes) */
|
word32 keyLen; /* Key size (bytes) */
|
||||||
byte* pubKey; /* Public key */
|
byte* pubKey; /* Public key */
|
||||||
word32 pubKeyLen; /* Public key length */
|
word32 pubKeyLen; /* Public key length */
|
||||||
#ifndef NO_DH
|
#if !defined(NO_DH) || defined(HAVE_LIBOQS)
|
||||||
byte* privKey; /* Private key - DH only */
|
byte* privKey; /* Private key - DH ond PQ KEMs only */
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
int lastRet;
|
int lastRet;
|
||||||
|
Reference in New Issue
Block a user