Skip to content

Commit 74fb17e

Browse files
authored
Merge pull request #122 from JacobBarthelmeh/release
Release version 0.1.2
2 parents efe562c + 6ffe3be commit 74fb17e

File tree

5 files changed

+26
-15
lines changed

5 files changed

+26
-15
lines changed

ChangeLog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# wolfCLU v0.1.2 (Mar 31, 2023)
2+
### Fixes and Enhancements
3+
- Fix for DH use with FIPS build and cross compile warning
4+
- Fix for configure cross compile QA warning with Yocto builds
5+
- Fix for macro guards on Shake
6+
- Improve VS build to generate .exe for all platforms
7+
- Fix for linking to wolfSSL library built with --enable-ipv6
8+
19
# wolfCLU v0.1.0 (Sep 12, 2022)
210
### Fixes and Enhancements
311
- Fix for buffer issue with s_client

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#requires user to have AutoConf version 2.63 or greater.
1111
AC_PREREQ([2.63])
1212

13-
AC_INIT([wolfclu], [0.1.0], [http://www.wolfssl.com])
13+
AC_INIT([wolfclu], [0.1.2], [http://www.wolfssl.com])
1414

1515
#a helpful directory to keep clutter out of root
1616
AC_CONFIG_AUX_DIR([build-aux])

src/x509/clu_config.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ static int wolfCLU_setAttributes(WOLFSSL_X509* x509, WOLFSSL_CONF* conf,
3434
const char* current;
3535
int currentSz;
3636

37-
currentSz = 0;
3837
current = wolfSSL_NCONF_get_string(conf, sect, "challengePassword");
3938
if (current != NULL) {
4039
currentSz = (int)XSTRLEN(current);

src/x509/clu_x509_sign.c

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -574,21 +574,25 @@ int wolfCLU_CertSign(WOLFCLU_CERT_SIGN* csign, WOLFSSL_X509* x509)
574574
}
575575
}
576576
else {
577-
int defaultSerialSz = 20;
578577
WOLFSSL_BIGNUM* bn;
578+
int numBits;
579579

580-
bn = wolfSSL_BN_new();
581-
if (wolfSSL_BN_rand(bn, (defaultSerialSz*WOLFSSL_BIT_SIZE), 0, 0)
580+
do {
581+
bn = wolfSSL_BN_new();
582+
if (wolfSSL_BN_rand(bn, (CTC_GEN_SERIAL_SZ*WOLFSSL_BIT_SIZE),
583+
WOLFSSL_BN_RAND_TOP_ANY, WOLFSSL_BN_RAND_BOTTOM_ODD)
582584
!= WOLFSSL_SUCCESS) {
583-
wolfCLU_LogError("Creating a random serail number fail");
584-
ret = WOLFCLU_FATAL_ERROR;
585-
}
586-
587-
/* make positive */
588-
wolfSSL_BN_clear_bit(bn, (defaultSerialSz*WOLFSSL_BIT_SIZE)-1);
585+
wolfCLU_LogError("Creating a random serial number fail");
586+
ret = WOLFCLU_FATAL_ERROR;
587+
}
589588

590-
s = wolfSSL_BN_to_ASN1_INTEGER(bn, NULL);
591-
wolfSSL_BN_free(bn);
589+
/* work around BN_to_ASN1_INTEGER check */
590+
numBits = wolfSSL_BN_num_bits(bn);
591+
if ((numBits % 8) != 7) {
592+
s = wolfSSL_BN_to_ASN1_INTEGER(bn, NULL);
593+
}
594+
wolfSSL_BN_free(bn);
595+
} while ((numBits % 8) == 7);
592596
}
593597
wolfSSL_X509_set_serialNumber(x509, s);
594598
wolfSSL_ASN1_INTEGER_free(s);

wolfclu/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
extern "C" {
2727
#endif
2828

29-
#define CLUWOLFSSL_VERSION_STRING "0.1.0"
30-
#define CLUWOLFSSL_VERSION_HEX 0x00001000
29+
#define CLUWOLFSSL_VERSION_STRING "0.1.2"
30+
#define CLUWOLFSSL_VERSION_HEX 0x00001002
3131

3232
#ifdef __cplusplus
3333
}

0 commit comments

Comments
 (0)