curl: support --enable-curl=tiny option.

This commit is contained in:
jordan
2025-09-08 17:03:35 -05:00
parent bdc1f890c8
commit c60553da66
2 changed files with 10 additions and 2 deletions

View File

@@ -8185,6 +8185,14 @@ then
ENABLED_TICKET_NONCE_MALLOC="yes"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TICKET_NONCE_MALLOC"
fi
elif test "$ENABLED_CURL" = "tiny"
then
if test "x$ENABLED_OPENSSLEXTRA" = "xno"
then
ENABLED_OPENSSLEXTRA="x509small"
fi
AM_CFLAGS="$AM_CFLAGS -DHAVE_CURL"
fi
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \

View File

@@ -6529,7 +6529,7 @@ static const byte kTlsServerStr[SIZEOF_SENDER+1] = { 0x53, 0x52, 0x56, 0x52, 0x0
static const byte kTlsClientFinStr[FINISHED_LABEL_SZ + 1] = "client finished";
static const byte kTlsServerFinStr[FINISHED_LABEL_SZ + 1] = "server finished";
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL) || defined(HAVE_CURL)
typedef struct {
int name_len;
const char *name;
@@ -6539,7 +6539,7 @@ typedef struct {
extern const WOLF_EC_NIST_NAME kNistCurves[];
WOLFSSL_LOCAL int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx,
const char* names, byte curves_only);
#endif /* OPENSSL_EXTRA || WOLFSSL_WPAS_SMALL */
#endif /* OPENSSL_EXTRA || WOLFSSL_WPAS_SMALL || HAVE_CURL */
/* internal functions */
WOLFSSL_LOCAL int SendChangeCipher(WOLFSSL* ssl);