Skip to content

Commit c862879

Browse files
author
Lealem Amedie
committed
Prepare for v0.1.5 Release
1 parent 25c3b12 commit c862879

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# wolfCLU v0.1.5 (Dec 22, 2023)
2+
- Fix memory type typo in clu_rsa.c
3+
- Add missing void arg to functions in clu_funcs.c
4+
15
# wolfCLU v0.1.4 (Nov 21, 2023)
26
- Removed erroneous file generation on ecc keygen
37
- Added options -req, -signkey, -extfile, -extensions and -md for x509 command

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.4], [http://www.wolfssl.com])
13+
AC_INIT([wolfclu], [0.1.5], [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_x509_sign.c

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -599,25 +599,23 @@ int wolfCLU_CertSign(WOLFCLU_CERT_SIGN* csign, WOLFSSL_X509* x509)
599599
}
600600

601601
/* set extensions */
602-
if (csign->ext != NULL) {
602+
if (ret == WOLFCLU_SUCCESS && csign->ext != NULL) {
603603
wolfCLU_setExtensions(x509, csign->config, csign->ext);
604604
}
605605

606606
/* sign the certificate */
607-
if (csign->keyType == RSAk || csign->keyType == ECDSAk) {
608-
if (ret == WOLFCLU_SUCCESS) {
609-
if (wolfSSL_X509_check_private_key(csign->ca, csign->caKey.pkey) !=
610-
WOLFSSL_SUCCESS) {
611-
wolfCLU_LogError("Private key does not match with CA");
612-
ret = WOLFCLU_FATAL_ERROR;
613-
}
607+
if (ret == WOLFCLU_SUCCESS &&
608+
(csign->keyType == RSAk || csign->keyType == ECDSAk)) {
609+
if (wolfSSL_X509_check_private_key(csign->ca, csign->caKey.pkey) !=
610+
WOLFSSL_SUCCESS) {
611+
wolfCLU_LogError("Private key does not match with CA");
612+
ret = WOLFCLU_FATAL_ERROR;
614613
}
615614

616-
if (ret == WOLFCLU_SUCCESS) {
617-
if (wolfSSL_X509_sign(x509, csign->caKey.pkey, md) <= 0) {
618-
wolfCLU_LogError("Error signing certificate");
619-
ret = WOLFCLU_FATAL_ERROR;
620-
}
615+
if (ret == WOLFCLU_SUCCESS &&
616+
wolfSSL_X509_sign(x509, csign->caKey.pkey, md) <= 0) {
617+
wolfCLU_LogError("Error signing certificate");
618+
ret = WOLFCLU_FATAL_ERROR;
621619
}
622620
} /* @TODO else case here could get the tbs buffer or just the der of the
623621
* x509 struct and use a different method for signing and creating the

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.4"
30-
#define CLUWOLFSSL_VERSION_HEX 0x00001004
29+
#define CLUWOLFSSL_VERSION_STRING "0.1.5"
30+
#define CLUWOLFSSL_VERSION_HEX 0x00001005
3131

3232
#ifdef __cplusplus
3333
}

0 commit comments

Comments
 (0)