Skip to content

Commit 3edfcfe

Browse files
committed
Jenkins fixes
1 parent 9337cfb commit 3edfcfe

5 files changed

Lines changed: 22 additions & 14 deletions

File tree

doc/dox_comments/header_files/ssl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14931,8 +14931,8 @@ WOLFSSL_CIPHERSUITE_INFO wolfSSL_get_ciphersuite_info(byte first,
1493114931
\brief This returns information about the hash and signature algorithm
1493214932
directly from the raw ciphersuite bytes.
1493314933
14934-
\param [in] first First byte of the hash and signature algorith
14935-
\param [in] second Second byte of the hash and signature algorith
14934+
\param [in] first First byte of the hash and signature algorithm
14935+
\param [in] second Second byte of the hash and signature algorithm
1493614936
\param [out] hashAlgo The enum wc_HashType of the MAC algorithm
1493714937
\param [out] sigAlgo The enum Key_Sum of the authentication algorithm
1493814938
@@ -14954,4 +14954,4 @@ WOLFSSL_CIPHERSUITE_INFO wolfSSL_get_ciphersuite_info(byte first,
1495414954
\sa wolfSSL_get_ciphersuite_info
1495514955
*/
1495614956
void wolfSSL_get_sigalg_info(byte first, byte second,
14957-
enum wc_HashType* hashAlgo, enum Key_Sum* sigAlgo);
14957+
int* hashAlgo, int* sigAlgo);

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4236,7 +4236,7 @@ void InitSuites(Suites* suites, ProtocolVersion pv, int keySz, word16 haveRSA,
42364236
* hashalgo The hash algorithm.
42374237
* hsType The signature type.
42384238
*/
4239-
WC_INLINE void DecodeSigAlg(const byte* input, byte* hashAlgo, byte* hsType)
4239+
void DecodeSigAlg(const byte* input, byte* hashAlgo, byte* hsType)
42404240
{
42414241
*hsType = invalid_sa_algo;
42424242
switch (input[0]) {

src/ssl.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16338,8 +16338,14 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
1633816338
return info;
1633916339
}
1634016340

16341+
/**
16342+
* @param first First byte of the hash and signature algorithm
16343+
* @param second Second byte of the hash and signature algorithm
16344+
* @param hashAlgo The enum wc_HashType of the MAC algorithm
16345+
* @param sigAlgo The enum Key_Sum of the authentication algorithm
16346+
*/
1634116347
void wolfSSL_get_sigalg_info(byte first, byte second,
16342-
enum wc_HashType* hashAlgo, enum Key_Sum* sigAlgo)
16348+
int* hashAlgo, int* sigAlgo)
1634316349
{
1634416350
byte input[2];
1634516351
byte hashType;
@@ -16399,7 +16405,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
1639916405
case invalid_sa_algo:
1640016406
default:
1640116407
*hashAlgo = WC_HASH_TYPE_NONE;
16402-
*sigAlgo = (enum Key_Sum)0;
16408+
*sigAlgo = 0;
1640316409
return;
1640416410
}
1640516411

@@ -16439,7 +16445,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
1643916445
break;
1644016446
default:
1644116447
*hashAlgo = WC_HASH_TYPE_NONE;
16442-
*sigAlgo = (enum Key_Sum)0;
16448+
*sigAlgo = 0;
1644316449
return;
1644416450
}
1644516451
}

tests/api.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44865,8 +44865,8 @@ static int test_wolfSSL_cert_cb_dyn_ciphers_certCB(WOLFSSL* ssl, void* arg)
4486544865
haveECC = 0;
4486644866
}
4486744867
for (idx = 0; idx < hashSigAlgoSz; idx += 2) {
44868-
enum wc_HashType hashAlgo;
44869-
enum Key_Sum sigAlgo;
44868+
int hashAlgo;
44869+
int sigAlgo;
4487044870

4487144871
wolfSSL_get_sigalg_info(hashSigAlgo[idx+0], hashSigAlgo[idx+1],
4487244872
&hashAlgo, &sigAlgo);
@@ -45078,8 +45078,8 @@ static int test_wolfSSL_sigalg_info(void)
4507845078

4507945079
InitSuitesHashSigAlgo_ex2(hashSigAlgo, allSigAlgs, 1, 0xFFFFFFFF, &len);
4508045080
for (idx = 0; idx < len; idx += 2) {
45081-
enum wc_HashType hashAlgo;
45082-
enum Key_Sum sigAlgo;
45081+
int hashAlgo;
45082+
int sigAlgo;
4508345083

4508445084
wolfSSL_get_sigalg_info(hashSigAlgo[idx+0], hashSigAlgo[idx+1],
4508545085
&hashAlgo, &sigAlgo);
@@ -45091,8 +45091,8 @@ static int test_wolfSSL_sigalg_info(void)
4509145091
InitSuitesHashSigAlgo_ex2(hashSigAlgo, allSigAlgs | SIG_ANON, 1,
4509245092
0xFFFFFFFF, &len);
4509345093
for (idx = 0; idx < len; idx += 2) {
45094-
enum wc_HashType hashAlgo;
45095-
enum Key_Sum sigAlgo;
45094+
int hashAlgo;
45095+
int sigAlgo;
4509645096

4509745097
wolfSSL_get_sigalg_info(hashSigAlgo[idx+0], hashSigAlgo[idx+1],
4509845098
&hashAlgo, &sigAlgo);

wolfssl/ssl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,9 @@ WOLFSSL_API int wolfSSL_sk_push_node(WOLFSSL_STACK** stack, WOLFSSL_STACK* in);
15311531
WOLFSSL_API WOLFSSL_STACK* wolfSSL_sk_get_node(WOLFSSL_STACK* sk, int idx);
15321532
WOLFSSL_API int wolfSSL_sk_push(WOLFSSL_STACK *st, const void *data);
15331533

1534+
#if defined(HAVE_OCSP) || defined(HAVE_CRL)
15341535
#include "wolfssl/wolfcrypt/asn.h"
1536+
#endif
15351537

15361538
#if defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA) || defined(WOLFSSL_QT)
15371539
WOLFSSL_API int wolfSSL_sk_ACCESS_DESCRIPTION_push(
@@ -2131,7 +2133,7 @@ typedef struct WOLFSSL_CIPHERSUITE_INFO {
21312133
WOLFSSL_API WOLFSSL_CIPHERSUITE_INFO wolfSSL_get_ciphersuite_info(byte first,
21322134
byte second);
21332135
WOLFSSL_API void wolfSSL_get_sigalg_info(byte first,
2134-
byte second, enum wc_HashType* hashAlgo, enum Key_Sum* sigAlgo);
2136+
byte second, int* hashAlgo, int* sigAlgo);
21352137
WOLFSSL_LOCAL int CertSetupCbWrapper(WOLFSSL* ssl);
21362138

21372139
WOLFSSL_API void* wolfSSL_X509_STORE_CTX_get_ex_data(

0 commit comments

Comments
 (0)