Skip to content

Commit c60553d

Browse files
committed
curl: support --enable-curl=tiny option.
1 parent bdc1f89 commit c60553d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8185,6 +8185,14 @@ then
81858185
ENABLED_TICKET_NONCE_MALLOC="yes"
81868186
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TICKET_NONCE_MALLOC"
81878187
fi
8188+
elif test "$ENABLED_CURL" = "tiny"
8189+
then
8190+
if test "x$ENABLED_OPENSSLEXTRA" = "xno"
8191+
then
8192+
ENABLED_OPENSSLEXTRA="x509small"
8193+
fi
8194+
8195+
AM_CFLAGS="$AM_CFLAGS -DHAVE_CURL"
81888196
fi
81898197
81908198
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \

wolfssl/internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6529,7 +6529,7 @@ static const byte kTlsServerStr[SIZEOF_SENDER+1] = { 0x53, 0x52, 0x56, 0x52, 0x0
65296529
static const byte kTlsClientFinStr[FINISHED_LABEL_SZ + 1] = "client finished";
65306530
static const byte kTlsServerFinStr[FINISHED_LABEL_SZ + 1] = "server finished";
65316531

6532-
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
6532+
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL) || defined(HAVE_CURL)
65336533
typedef struct {
65346534
int name_len;
65356535
const char *name;
@@ -6539,7 +6539,7 @@ typedef struct {
65396539
extern const WOLF_EC_NIST_NAME kNistCurves[];
65406540
WOLFSSL_LOCAL int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx,
65416541
const char* names, byte curves_only);
6542-
#endif /* OPENSSL_EXTRA || WOLFSSL_WPAS_SMALL */
6542+
#endif /* OPENSSL_EXTRA || WOLFSSL_WPAS_SMALL || HAVE_CURL */
65436543

65446544
/* internal functions */
65456545
WOLFSSL_LOCAL int SendChangeCipher(WOLFSSL* ssl);

0 commit comments

Comments
 (0)