Fix for wc_SignCert reponse code checking in CSR example.

pull/79/head
David Garske 2018-01-23 15:21:28 -08:00
parent cc6641c20d
commit da8042ad35
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ int main(void)
req.sigType = CTC_SHA256wECDSA;
ret = wc_SignCert(req.bodySz, req.sigType, der, sizeof(der), NULL, &key, &rng);
if (ret != 0) {
if (ret <= 0) {
printf("Sign Cert failed: %d\n", ret);
goto exit;
}