mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
41
.github/workflows/curl.yml
vendored
Normal file
41
.github/workflows/curl.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: curl Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: autogen
|
||||||
|
run: ./autogen.sh
|
||||||
|
- name: configure
|
||||||
|
run: ./configure --enable-all
|
||||||
|
- name: make
|
||||||
|
run: make
|
||||||
|
- name: install
|
||||||
|
run: sudo make install
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
repository: curl/curl
|
||||||
|
path: curl
|
||||||
|
- name: Install test dependency
|
||||||
|
working-directory: ./curl
|
||||||
|
run: sudo apt-get install nghttp2
|
||||||
|
- name: curl buildconf
|
||||||
|
working-directory: ./curl
|
||||||
|
run: ./buildconf
|
||||||
|
- name: curl configure
|
||||||
|
working-directory: ./curl
|
||||||
|
run: ./configure --with-wolfssl
|
||||||
|
- name: curl make
|
||||||
|
working-directory: ./curl
|
||||||
|
run: make
|
||||||
|
- name: curl unit tests
|
||||||
|
working-directory: ./curl
|
||||||
|
run: make test
|
||||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -32,6 +32,8 @@ jobs:
|
|||||||
uses: ./.github/workflows/zephyr.yml
|
uses: ./.github/workflows/zephyr.yml
|
||||||
hitch:
|
hitch:
|
||||||
uses: ./.github/workflows/hitch.yml
|
uses: ./.github/workflows/hitch.yml
|
||||||
|
curl:
|
||||||
|
uses: ./.github/workflows/curl.yml
|
||||||
# TODO: Currently this test fails. Enable it once it becomes passing.
|
# TODO: Currently this test fails. Enable it once it becomes passing.
|
||||||
# haproxy:
|
# haproxy:
|
||||||
# uses: ./.github/workflows/haproxy.yml
|
# uses: ./.github/workflows/haproxy.yml
|
||||||
|
@@ -1726,7 +1726,8 @@ AC_ARG_ENABLE([error-queue-per-thread],
|
|||||||
|
|
||||||
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
|
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
|
||||||
then
|
then
|
||||||
AS_IF([test "$thread_ls_on" = "no"],
|
AS_IF([test "$thread_ls_on" = "no" ||
|
||||||
|
test "$ENABLED_SINGLETHREADED" = "yes"],
|
||||||
[ENABLED_ERRORQUEUEPERTHREAD=no],
|
[ENABLED_ERRORQUEUEPERTHREAD=no],
|
||||||
[ENABLED_ERRORQUEUEPERTHREAD=yes])
|
[ENABLED_ERRORQUEUEPERTHREAD=yes])
|
||||||
fi
|
fi
|
||||||
|
@@ -1137,7 +1137,7 @@ WOLFSSL_OCSP_ONEREQ* wolfSSL_OCSP_request_add0_id(OcspRequest *req,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (req->cid != NULL)
|
if (req->cid != NULL)
|
||||||
wolfSSL_OCSP_CERTID_free(req->cid);
|
wolfSSL_OCSP_CERTID_free((WOLFSSL_OCSP_CERTID*)req->cid);
|
||||||
/* Keep to free */
|
/* Keep to free */
|
||||||
req->cid = (void*)cid;
|
req->cid = (void*)cid;
|
||||||
|
|
||||||
|
@@ -1447,7 +1447,8 @@ static int test_wolfSSL_CTX_load_verify_locations(void)
|
|||||||
/* Get cert cache size */
|
/* Get cert cache size */
|
||||||
ExpectIntGT(cacheSz = wolfSSL_CTX_get_cert_cache_memsize(ctx), 0);
|
ExpectIntGT(cacheSz = wolfSSL_CTX_get_cert_cache_memsize(ctx), 0);
|
||||||
|
|
||||||
ExpectNotNull(cache = XMALLOC(cacheSz, NULL, DYNAMIC_TYPE_TMP_BUFFER));
|
ExpectNotNull(cache = (byte*)XMALLOC(cacheSz, NULL,
|
||||||
|
DYNAMIC_TYPE_TMP_BUFFER));
|
||||||
|
|
||||||
ExpectIntEQ(wolfSSL_CTX_memsave_cert_cache(NULL, NULL, -1, NULL),
|
ExpectIntEQ(wolfSSL_CTX_memsave_cert_cache(NULL, NULL, -1, NULL),
|
||||||
BAD_FUNC_ARG);
|
BAD_FUNC_ARG);
|
||||||
@@ -34728,7 +34729,8 @@ static int test_wolfSSL_Tls13_Key_Logging_test(void)
|
|||||||
#endif /* OPENSSL_EXTRA && HAVE_SECRET_CALLBACK && WOLFSSL_TLS13 */
|
#endif /* OPENSSL_EXTRA && HAVE_SECRET_CALLBACK && WOLFSSL_TLS13 */
|
||||||
return EXPECT_RESULT();
|
return EXPECT_RESULT();
|
||||||
}
|
}
|
||||||
#if defined(WOLFSSL_TLS13) && defined(HAVE_ECH)
|
#if defined(WOLFSSL_TLS13) && defined(HAVE_ECH) && \
|
||||||
|
defined(HAVE_IO_TESTS_DEPENDENCIES)
|
||||||
static int test_wolfSSL_Tls13_ECH_params(void)
|
static int test_wolfSSL_Tls13_ECH_params(void)
|
||||||
{
|
{
|
||||||
EXPECT_DECLS;
|
EXPECT_DECLS;
|
||||||
|
@@ -35,9 +35,6 @@
|
|||||||
typedef sword32 wc_test_ret_t;
|
typedef sword32 wc_test_ret_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
|
||||||
#ifdef HAVE_STACK_SIZE
|
#ifdef HAVE_STACK_SIZE
|
||||||
|
@@ -28,10 +28,8 @@
|
|||||||
#ifndef wolfSSL_TEST_H
|
#ifndef wolfSSL_TEST_H
|
||||||
#define wolfSSL_TEST_H
|
#define wolfSSL_TEST_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||||
|
|
||||||
#ifdef FUSION_RTOS
|
#ifdef FUSION_RTOS
|
||||||
#include <fclstdio.h>
|
#include <fclstdio.h>
|
||||||
|
@@ -31,9 +31,6 @@ decouple library dependencies with standard string, memory and so on.
|
|||||||
#ifndef WOLF_CRYPT_TYPES_H
|
#ifndef WOLF_CRYPT_TYPES_H
|
||||||
#define WOLF_CRYPT_TYPES_H
|
#define WOLF_CRYPT_TYPES_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user