Skip to content

Commit 665469f

Browse files
Merge pull request #6986 from douzzer/20231119-all-cryptonly-opensslextra
20231119-all-cryptonly-opensslextra
2 parents 538ce14 + 7dedfe0 commit 665469f

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ then
798798
if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
799799
then
800800
test "$enable_compkey" = "" && enable_compkey=yes
801-
test "$enable_quic" = "" && enable_quic=yes
801+
test "$enable_quic" = "" && test "$enable_cryptonly" != "yes" && enable_quic=yes
802802
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_IO -DHAVE_IO_TIMEOUT"
803803
fi
804804

linuxkm/module_exports.c.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,14 @@
151151

152152
#ifdef OPENSSL_EXTRA
153153
#ifndef WOLFCRYPT_ONLY
154-
#include <wolfssl/openssl/evp.h>
154+
#include <wolfssl/openssl/evp.h>
155155
#endif
156156
#include <wolfssl/openssl/rand.h>
157157
#include <wolfssl/openssl/hmac.h>
158158
#include <wolfssl/openssl/aes.h>
159159
#include <wolfssl/openssl/des.h>
160+
#include <wolfssl/openssl/modes.h>
161+
#include <wolfssl/openssl/rc4.h>
160162
#endif
161163

162164
#if defined(NO_FILESYSTEM)

src/ssl_crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ size_t wolfSSL_HMAC_size(const WOLFSSL_HMAC_CTX* ctx)
20612061
* START OF CMAC API
20622062
******************************************************************************/
20632063

2064-
#ifdef OPENSSL_EXTRA
2064+
#if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
20652065
#if defined(WOLFSSL_CMAC) && defined(OPENSSL_EXTRA) && \
20662066
defined(WOLFSSL_AES_DIRECT)
20672067
/* Allocate a new CMAC context object.
@@ -2275,7 +2275,7 @@ int wolfSSL_CMAC_Final(WOLFSSL_CMAC_CTX* ctx, unsigned char* out, size_t* len)
22752275
return ret;
22762276
}
22772277
#endif /* WOLFSSL_CMAC && OPENSSL_EXTRA && WOLFSSL_AES_DIRECT */
2278-
#endif /* OPENSSL_EXTRA */
2278+
#endif /* OPENSSL_EXTRA && !WOLFCRYPT_ONLY */
22792279

22802280
/*******************************************************************************
22812281
* END OF CMAC API

0 commit comments

Comments
 (0)