main.c
/* use the parent (id) to walk the tree to the root and
   build a stack of CRLs */
use the parent (id) to walk the tree to the root and
build a stack of CRLs
use the parent ( id ) to walk the tree to the root and build a stack of CRLs
static void
build_crls(const struct auth *a, struct crl_tree *crlt,
    STACK_OF(X509_CRL) **crls)
{
	struct crl	find, *found;
	if ((*crls = sk_X509_CRL_new_null()) == NULL)
		errx(1, "sk_X509_CRL_new_null");
	if (a == NULL)
		return;
	find.aki = a->cert->ski;
	found = RB_FIND(crl_tree, crlt, &find);
	if (found && !sk_X509_CRL_push(*crls, found->x509_crl))
		err(1, "sk_X509_CRL_push");
}
static void build_crls ( const struct auth * a , struct crl_tree * crlt , STACK_OF ( X509_CRL ) * * crls ) { struct crl find , * found ; if ( ( * crls = sk_X509_CRL_new_null ( ) ) == NULL ) errx ( 1 , " " ) ; if ( a == NULL ) return ; find . aki = a -> cert -> ski ; found = RB_FIND ( crl_tree , crlt , & find ) ; if ( found && ! sk_X509_CRL_push ( * crls , found -> x509_crl ) ) err ( 1 , " " ) ; }
use the parent (id) to walk the tree to the root and
build a stack of CRLs
use the parent ( id ) to walk the tree to the root and build a stack of CRLs