main.c
/*
 * Parse a certificate revocation list
 * This simply parses the CRL content itself, optionally validating it
 * within the digest if it comes from a manifest, then adds it to the
 * store of CRLs.
 */
Parse a certificate revocation list
This simply parses the CRL content itself, optionally validating it
within the digest if it comes from a manifest, then adds it to the
store of CRLs.
Parse a certificate revocation list This simply parses the CRL content itself optionally validating it within the digest if it comes from a manifest then adds it to the store of CRLs .
static void
proc_parser_crl(struct entity *entp, X509_STORE *store,
    X509_STORE_CTX *ctx, struct crl_tree *crlt)
{
	X509_CRL		*x509_crl;
	struct crl		*crl;
	const unsigned char	*dgst;
	char			*t;
	dgst = entp->has_dgst ? entp->dgst : NULL;
	if ((x509_crl = crl_parse(entp->uri, dgst)) != NULL) {
		if ((crl = malloc(sizeof(*crl))) == NULL)
			err(1, NULL);
		if ((t = strdup(entp->uri)) == NULL)
			err(1, NULL);
		if ((crl->aki = x509_crl_get_aki(x509_crl)) == NULL)
			errx(1, "x509_crl_get_aki failed");
		crl->x509_crl = x509_crl;
		if (RB_INSERT(crl_tree, crlt, crl) != NULL) {
			warnx("%s: duplicate AKI %s", entp->uri, crl->aki);
			free_crl(crl);
		}
	}
}
static void proc_parser_crl ( struct entity * entp , X509_STORE * store , X509_STORE_CTX * ctx , struct crl_tree * crlt ) { X509_CRL * x509_crl ; struct crl * crl ; const unsigned char * dgst ; char * t ; dgst = entp -> has_dgst ? entp -> dgst : NULL ; if ( ( x509_crl = crl_parse ( entp -> uri , dgst ) ) != NULL ) { if ( ( crl = malloc ( sizeof ( * crl ) ) ) == NULL ) err ( 1 , NULL ) ; if ( ( t = strdup ( entp -> uri ) ) == NULL ) err ( 1 , NULL ) ; if ( ( crl -> aki = x509_crl_get_aki ( x509_crl ) ) == NULL ) errx ( 1 , " " ) ; crl -> x509_crl = x509_crl ; if ( RB_INSERT ( crl_tree , crlt , crl ) != NULL ) { warnx ( " " , entp -> uri , crl -> aki ) ; free_crl ( crl ) ; } } }
Parse a certificate revocation list
 This simply parses the CRL content itself, optionally validating it
 within the digest if it comes from a manifest, then adds it to the
 store of CRLs.
Parse a certificate revocation list This simply parses the CRL content itself optionally validating it within the digest if it comes from a manifest then adds it to the store of CRLs .