*/
static crl_reason_t parse_crl_reasonCode(chunk_t object)
{
- crl_reason_t reason = REASON_UNSPECIFIED;
+ crl_reason_t reason = CRL_UNSPECIFIED;
if (*object.ptr == ASN1_ENUMERATED
&& asn1_length(&object) == 1)
revokedCert_t *revokedCert = malloc_thing(revokedCert_t);
revokedCert->userCertificate = userCertificate;
revokedCert->revocationDate = asn1_parse_time(object, level);
- revokedCert->revocationReason = REASON_UNSPECIFIED;
+ revokedCert->revocationReason = CRL_UNSPECIFIED;
revokedCert->next = crl->revokedCertificates;
crl->revokedCertificates = revokedCert;
}
revokedCert_t *revokedCert = crl->revokedCertificates;
*revocationDate = UNDEFINED_TIME;
- *revocationReason = REASON_UNSPECIFIED;
+ *revocationReason = CRL_UNSPECIFIED;
DBG(DBG_CONTROL,
DBG_dump_chunk("serial number:", serial)
generalName_t *crluri = (ca == NULL)? NULL : ca->crluri;
*revocationDate = UNDEFINED_TIME;
- *revocationReason = REASON_UNSPECIFIED;
+ *revocationReason = CRL_UNSPECIFIED;
lock_crl_list("verify_by_crl");
crl = get_x509crl(cert->issuer, cert->authKeySerialNumber, cert->authKeyID);
#include "constants.h"
+#include <credentials/certificates/crl.h>
+
/* access structure for a revoked serial number */
typedef struct revokedCert revokedCert_t;
{ NULL, 0 } , /* serial_number */
CERT_UNDEFINED , /* status */
UNDEFINED_TIME , /* revocationTime */
- REASON_UNSPECIFIED, /* revocationReason */
+ CRL_UNSPECIFIED , /* revocationReason */
UNDEFINED_TIME , /* this_update */
UNDEFINED_TIME /* next_update */
};
time_t nextUpdate = 0;
*revocationDate = UNDEFINED_TIME;
- *revocationReason = REASON_UNSPECIFIED;
+ *revocationReason = CRL_UNSPECIFIED;
/* is an ocsp location defined? */
if (!build_ocsp_location(cert, &location))
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;
#include "constants.h"
+#include <credentials/certificates/crl.h>
+
/* constants */
#define OCSP_BASIC_RESPONSE_VERSION 1
{
time_t nextUpdate = *until;
time_t revocationDate = UNDEFINED_TIME;
- crl_reason_t revocationReason = REASON_UNSPECIFIED;
+ crl_reason_t revocationReason = CRL_UNSPECIFIED;
/* first check certificate revocation using ocsp */
cert_status_t status = verify_by_ocsp(cert, &nextUpdate