Skip to content

Commit b8119af

Browse files
authored
Merge pull request #6594 from lealem47/curl
Fix for curl build
2 parents d6a6cbb + f30364a commit b8119af

8 files changed

Lines changed: 51 additions & 13 deletions

File tree

.github/workflows/curl.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: curl Test
2+
3+
on:
4+
push:
5+
workflow_call:
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: autogen
15+
run: ./autogen.sh
16+
- name: configure
17+
run: ./configure --enable-all
18+
- name: make
19+
run: make
20+
- name: install
21+
run: sudo make install
22+
- uses: actions/checkout@master
23+
with:
24+
repository: curl/curl
25+
path: curl
26+
- name: Install test dependency
27+
working-directory: ./curl
28+
run: sudo apt-get install nghttp2
29+
- name: curl buildconf
30+
working-directory: ./curl
31+
run: ./buildconf
32+
- name: curl configure
33+
working-directory: ./curl
34+
run: ./configure --with-wolfssl
35+
- name: curl make
36+
working-directory: ./curl
37+
run: make
38+
- name: curl unit tests
39+
working-directory: ./curl
40+
run: make test
41+

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
uses: ./.github/workflows/zephyr.yml
3333
hitch:
3434
uses: ./.github/workflows/hitch.yml
35+
curl:
36+
uses: ./.github/workflows/curl.yml
3537
# TODO: Currently this test fails. Enable it once it becomes passing.
3638
# haproxy:
3739
# uses: ./.github/workflows/haproxy.yml

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,8 @@ AC_ARG_ENABLE([error-queue-per-thread],
17261726

17271727
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
17281728
then
1729-
AS_IF([test "$thread_ls_on" = "no"],
1729+
AS_IF([test "$thread_ls_on" = "no" ||
1730+
test "$ENABLED_SINGLETHREADED" = "yes"],
17301731
[ENABLED_ERRORQUEUEPERTHREAD=no],
17311732
[ENABLED_ERRORQUEUEPERTHREAD=yes])
17321733
fi

src/ocsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ WOLFSSL_OCSP_ONEREQ* wolfSSL_OCSP_request_add0_id(OcspRequest *req,
11371137
return NULL;
11381138

11391139
if (req->cid != NULL)
1140-
wolfSSL_OCSP_CERTID_free(req->cid);
1140+
wolfSSL_OCSP_CERTID_free((WOLFSSL_OCSP_CERTID*)req->cid);
11411141
/* Keep to free */
11421142
req->cid = (void*)cid;
11431143

tests/api.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,8 @@ static int test_wolfSSL_CTX_load_verify_locations(void)
14471447
/* Get cert cache size */
14481448
ExpectIntGT(cacheSz = wolfSSL_CTX_get_cert_cache_memsize(ctx), 0);
14491449

1450-
ExpectNotNull(cache = XMALLOC(cacheSz, NULL, DYNAMIC_TYPE_TMP_BUFFER));
1450+
ExpectNotNull(cache = (byte*)XMALLOC(cacheSz, NULL,
1451+
DYNAMIC_TYPE_TMP_BUFFER));
14511452

14521453
ExpectIntEQ(wolfSSL_CTX_memsave_cert_cache(NULL, NULL, -1, NULL),
14531454
BAD_FUNC_ARG);
@@ -34728,7 +34729,8 @@ static int test_wolfSSL_Tls13_Key_Logging_test(void)
3472834729
#endif /* OPENSSL_EXTRA && HAVE_SECRET_CALLBACK && WOLFSSL_TLS13 */
3472934730
return EXPECT_RESULT();
3473034731
}
34731-
#if defined(WOLFSSL_TLS13) && defined(HAVE_ECH)
34732+
#if defined(WOLFSSL_TLS13) && defined(HAVE_ECH) && \
34733+
defined(HAVE_IO_TESTS_DEPENDENCIES)
3473234734
static int test_wolfSSL_Tls13_ECH_params(void)
3473334735
{
3473434736
EXPECT_DECLS;

wolfcrypt/test/test.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
typedef sword32 wc_test_ret_t;
3636
#endif
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include <config.h>
40-
#endif
4138
#include <wolfssl/wolfcrypt/settings.h>
4239

4340
#ifdef HAVE_STACK_SIZE

wolfssl/test.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
#ifndef wolfSSL_TEST_H
2929
#define wolfSSL_TEST_H
3030

31-
#ifdef HAVE_CONFIG_H
32-
#include <config.h>
33-
#endif
3431
#include <wolfssl/wolfcrypt/settings.h>
32+
#include <wolfssl/wolfcrypt/wc_port.h>
3533

3634
#ifdef FUSION_RTOS
3735
#include <fclstdio.h>

wolfssl/wolfcrypt/types.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ decouple library dependencies with standard string, memory and so on.
3131
#ifndef WOLF_CRYPT_TYPES_H
3232
#define WOLF_CRYPT_TYPES_H
3333

34-
#ifdef HAVE_CONFIG_H
35-
#include <config.h>
36-
#endif
3734
#include <wolfssl/wolfcrypt/settings.h>
3835
#include <wolfssl/wolfcrypt/wc_port.h>
3936

0 commit comments

Comments
 (0)