mirror of https://github.com/wolfSSL/wolfTPM.git
F-11907 - Fail PKCS7 examples when the output file cannot be opened
parent
90baab8d4b
commit
4e073434bd
|
|
@ -221,6 +221,10 @@ static int PKCS7_SignVerifyEx(WOLFTPM2_DEV* dev, int tpmDevId,
|
|||
|
||||
XFCLOSE(pemFile);
|
||||
}
|
||||
else {
|
||||
printf("Failed to open %s for writing\n", outFile);
|
||||
rc = -1; goto exit;
|
||||
}
|
||||
#else
|
||||
(void)outFile;
|
||||
#endif
|
||||
|
|
@ -306,6 +310,10 @@ static int PKCS7_SignVerify(WOLFTPM2_DEV* dev, int tpmDevId,
|
|||
rc = -1; goto exit;
|
||||
}
|
||||
}
|
||||
else {
|
||||
printf("Failed to open %s for writing\n", outFile);
|
||||
rc = -1; goto exit;
|
||||
}
|
||||
#else
|
||||
(void)outFile;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue