Skip to content

Commit 0aefd52

Browse files
committed
Fix from review
1 parent 6515271 commit 0aefd52

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/x509/clu_x509_sign.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ int wolfCLU_GenChimeraCertSign(WOLFSSL_BIO *bioCaKey, WOLFSSL_BIO *bioAltCaKey,
343343

344344
/* open CA ecc private key */
345345
if (ret == WOLFCLU_SUCCESS) {
346-
ret = wolfSSL_BIO_get_fp(bioCaKey, &caKeyFp);
346+
ret = (int)wolfSSL_BIO_get_fp(bioCaKey, &caKeyFp);
347347
if (ret != WOLFCLU_SUCCESS) {
348348
wolfCLU_LogError("Error cannot get CA key fd");
349349
ret = WOLFCLU_FATAL_ERROR;
@@ -364,7 +364,7 @@ int wolfCLU_GenChimeraCertSign(WOLFSSL_BIO *bioCaKey, WOLFSSL_BIO *bioAltCaKey,
364364

365365
/* open server ecc private key */
366366
if (ret == WOLFCLU_SUCCESS && !isCA) {
367-
ret = wolfSSL_BIO_get_fp(bioSubjKey, &serverKeyFp);
367+
ret = (int)wolfSSL_BIO_get_fp(bioSubjKey, &serverKeyFp);
368368
if (ret != WOLFCLU_SUCCESS) {
369369
wolfCLU_LogError("Error cannot get server key fd");
370370
ret = WOLFCLU_FATAL_ERROR;
@@ -481,7 +481,7 @@ int wolfCLU_GenChimeraCertSign(WOLFSSL_BIO *bioCaKey, WOLFSSL_BIO *bioAltCaKey,
481481

482482
/* load alternative CA public key */
483483
if (ret == WOLFCLU_SUCCESS) {
484-
ret = wolfSSL_BIO_get_fp(bioAltSubjPubKey, &altCaPubKeyFp);
484+
ret = (int)wolfSSL_BIO_get_fp(bioAltSubjPubKey, &altCaPubKeyFp);
485485
if (ret != WOLFCLU_SUCCESS) {
486486
wolfCLU_LogError("Error get AltCAkey fd");
487487
ret = WOLFCLU_FATAL_ERROR;
@@ -530,7 +530,7 @@ int wolfCLU_GenChimeraCertSign(WOLFSSL_BIO *bioCaKey, WOLFSSL_BIO *bioAltCaKey,
530530
}
531531

532532
if (ret == WOLFCLU_SUCCESS) {
533-
ret = wolfSSL_BIO_get_fp(bioAltCaKey, &altCaKeyFp);
533+
ret = (int)wolfSSL_BIO_get_fp(bioAltCaKey, &altCaKeyFp);
534534
if (ret != WOLFCLU_SUCCESS) {
535535
wolfCLU_LogError("Error cannot get AltCA key fd");
536536
ret = WOLFCLU_FATAL_ERROR;

0 commit comments

Comments
 (0)