Skip to content

Commit b9c5133

Browse files
committed
Fix for trying to use a custom wolfTPM CSR sigType. The csr->req.sigType was being initialized to CTC_SHA256wRSA, and not allowing override.
1 parent 79105f9 commit b9c5133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tpm2_wrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6247,7 +6247,7 @@ static int CSR_KeySetup(WOLFTPM2_DEV* dev, WOLFTPM2_CSR* csr, WOLFTPM2_KEY* key,
62476247
csr->req.sigType = CTC_SHA256wECDSA;
62486248
}
62496249
}
6250-
else if (csr->req.sigType == 0) {
6250+
else if (sigType != 0) {
62516251
csr->req.sigType = sigType;
62526252
}
62536253
}

0 commit comments

Comments
 (0)