@@ -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