Skip to content

Commit 325d76d

Browse files
check for sig oid error along with sig confirm error
1 parent 46587b6 commit 325d76d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wh_server_cert.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,10 +746,10 @@ int wh_Server_HandleCertRequest(whServerContext* server, uint16_t magic,
746746
(void)WH_SERVER_NVM_UNLOCK(server);
747747
} /* WH_SERVER_NVM_LOCK() */
748748

749-
/* Signature confirmation error is not an error for the server, so
749+
/* Signature verification error is not an error for the server, so
750750
* propagate this error to the client in the response, otherwise
751751
* return the error code from the verify action */
752-
if (rc == ASN_SIG_CONFIRM_E) {
752+
if (rc == ASN_SIG_CONFIRM_E || rc == ASN_SIG_OID_E) {
753753
resp.rc = WH_ERROR_CERT_VERIFY;
754754
rc = WH_ERROR_OK;
755755
}
@@ -794,10 +794,10 @@ int wh_Server_HandleCertRequest(whServerContext* server, uint16_t magic,
794794
(void)WH_SERVER_NVM_UNLOCK(server);
795795
} /* WH_SERVER_NVM_LOCK() */
796796

797-
/* Signature confirmation error is not an error for the server,
797+
/* Signature verification error is not an error for the server,
798798
* so propagate this error to the client in the response,
799799
* otherwise return the error code from the verify action */
800-
if (rc == ASN_SIG_CONFIRM_E) {
800+
if (rc == ASN_SIG_CONFIRM_E || rc == ASN_SIG_OID_E) {
801801
resp.rc = WH_ERROR_CERT_VERIFY;
802802
rc = WH_ERROR_OK;
803803
}

0 commit comments

Comments
 (0)