use crl_reason_t definition from <credentials/certificates/crl.h>
This commit is contained in:
+3
-3
@@ -112,7 +112,7 @@ const single_response_t empty_single_response = {
|
||||
{ NULL, 0 } , /* serial_number */
|
||||
CERT_UNDEFINED , /* status */
|
||||
UNDEFINED_TIME , /* revocationTime */
|
||||
REASON_UNSPECIFIED, /* revocationReason */
|
||||
CRL_UNSPECIFIED , /* revocationReason */
|
||||
UNDEFINED_TIME , /* this_update */
|
||||
UNDEFINED_TIME /* next_update */
|
||||
};
|
||||
@@ -425,7 +425,7 @@ cert_status_t verify_by_ocsp(const x509cert_t *cert, time_t *until,
|
||||
time_t nextUpdate = 0;
|
||||
|
||||
*revocationDate = UNDEFINED_TIME;
|
||||
*revocationReason = REASON_UNSPECIFIED;
|
||||
*revocationReason = CRL_UNSPECIFIED;
|
||||
|
||||
/* is an ocsp location defined? */
|
||||
if (!build_ocsp_location(cert, &location))
|
||||
@@ -1292,7 +1292,7 @@ static bool parse_ocsp_single_response(chunk_t blob, int level0,
|
||||
break;
|
||||
case SINGLE_RESPONSE_CERT_STATUS_CRL_REASON:
|
||||
sres->revocationReason = (object.len == 1)
|
||||
? *object.ptr : REASON_UNSPECIFIED;
|
||||
? *object.ptr : CRL_UNSPECIFIED;
|
||||
break;
|
||||
case SINGLE_RESPONSE_CERT_STATUS_UNKNOWN:
|
||||
sres->status = CERT_UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user