Skip to content

Commit 14ce8ce

Browse files
committed
Jenkins fixes
1 parent 589bdba commit 14ce8ce

5 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37860,7 +37860,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
3786037860
#endif
3786137861
if (sess == NULL) {
3786237862
ret = TlsSessionCacheGetAndRdLock(id, &sess, &freeCtx->row,
37863-
ssl->options.side);
37863+
(byte)ssl->options.side);
3786437864
if (ret != 0)
3786537865
sess = NULL;
3786637866
}

src/x509.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11678,8 +11678,9 @@ int wolfSSL_i2d_X509_NAME(WOLFSSL_X509_NAME* name, unsigned char** out)
1167811678
"-----BEGIN X509 CRL-----")) {
1167911679
/* We have a crl */
1168011680
WOLFSSL_MSG("Parsing crl");
11681-
if((PemToDer((const unsigned char*) header, footerEnd - header,
11682-
CRL_TYPE, &der, NULL, NULL, NULL)) < 0) {
11681+
if((PemToDer((const unsigned char*) header,
11682+
(long)(footerEnd - header), CRL_TYPE, &der, NULL, NULL,
11683+
NULL)) < 0) {
1168311684
WOLFSSL_MSG("PemToDer error");
1168411685
goto err;
1168511686
}

wolfcrypt/test/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
16791679
#if defined(USE_CERT_BUFFERS_2048) && \
16801680
defined(HAVE_PKCS12) && \
16811681
!defined(NO_ASN) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \
1682-
!defined(NO_CERTS)
1682+
!defined(NO_CERTS) && !defined(NO_DES3)
16831683
if ( (ret = pkcs12_test()) != 0)
16841684
TEST_FAIL("PKCS12 test failed!\n", ret);
16851685
else
@@ -24870,7 +24870,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pwdbased_test(void)
2487024870
#if defined(USE_CERT_BUFFERS_2048) && \
2487124871
defined(HAVE_PKCS12) && \
2487224872
!defined(NO_ASN) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \
24873-
!defined(NO_CERTS)
24873+
!defined(NO_CERTS) && !defined(NO_DES3)
2487424874
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pkcs12_test(void)
2487524875
{
2487624876
wc_test_ret_t ret = 0;

wolfssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <wolfssl/wolfcrypt/logging.h>
3838
#include <wolfssl/wolfcrypt/memory.h>
3939
#include <wolfssl/wolfcrypt/types.h>
40+
#include <wolfssl/wolfcrypt/pkcs12.h>
4041

4142
/* For the types */
4243
#include <wolfssl/openssl/compat_types.h>
@@ -2973,7 +2974,6 @@ WOLFSSL_API int wolfSSL_connect_cert(WOLFSSL* ssl);
29732974

29742975

29752976
/* PKCS12 compatibility */
2976-
typedef struct WC_PKCS12 WC_PKCS12;
29772977
WOLFSSL_API WC_PKCS12* wolfSSL_d2i_PKCS12_bio(WOLFSSL_BIO* bio,
29782978
WC_PKCS12** pkcs12);
29792979
WOLFSSL_API int wolfSSL_i2d_PKCS12_bio(WOLFSSL_BIO *bio, WC_PKCS12 *pkcs12);

wolfssl/wolfcrypt/pkcs12.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
extern "C" {
3030
#endif
3131

32-
#ifndef WOLFSSL_TYPES_DEFINED /* do not redeclare from ssl.h */
33-
typedef struct WC_PKCS12 WC_PKCS12;
34-
#endif
32+
typedef struct WC_PKCS12 WC_PKCS12;
3533

3634
typedef struct WC_DerCertList { /* dereferenced in ssl.c */
3735
byte* buffer;

0 commit comments

Comments
 (0)