Skip to content

Commit

Permalink
fix pr test
Browse files Browse the repository at this point in the history
  • Loading branch information
miyazakh committed Oct 31, 2024
1 parent 58eb339 commit 68cb00c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/x509_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)
if (!issuer->isCa) {
/* error depth is curren depth + 1 */
SetupStoreCtxError_ex(ctx, X509_V_ERR_INVALID_CA,
(ctx->chain) ? (ctx->chain->num + 1) : 1);
(ctx->chain) ? (int)(ctx->chain->num + 1) : 1);
if (ctx->store->verify_cb) {
ret = ctx->store->verify_cb(0, ctx);
if (ret != WOLFSSL_SUCCESS) {
Expand Down Expand Up @@ -450,7 +450,6 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)

/* Cert verified, finish building the chain */
wolfSSL_sk_X509_push(ctx->chain, ctx->current_cert);

issuer = NULL;
#ifdef WOLFSSL_SIGNER_DER_CERT
x509GetIssuerFromCM(&issuer, ctx->store->cm, ctx->current_cert);
Expand Down

0 comments on commit 68cb00c

Please sign in to comment.