Lines Matching defs:cert2
609 proc_parser_ta_cmp(const struct cert *cert1, const struct cert *cert2)
613 if (cert2 == NULL)
628 if (cert1->notbefore < cert2->notbefore)
630 if (cert1->notbefore > cert2->notbefore)
633 if (cert1->notafter > cert2->notafter)
635 if (cert1->notafter < cert2->notafter)
646 return X509_cmp(cert1->x509, cert2->x509) != 0;
657 struct cert *cert1 = NULL, *cert2 = NULL;
667 cert2 = cert_parse_pre(file2, der, der_len);
669 cert2 = ta_parse(file2, cert2, pkey, pkeysz);
680 if ((cmp = proc_parser_ta_cmp(cert1, cert2)) > 0) {
681 cert_free(cert2);
690 if (cmp < 0 && cert1 != NULL && cert2 != NULL)
695 if (cert2 != 0) {
696 cert2->talid = entp->talid;
697 auth_insert(file2, &auths, cert2, NULL);
700 *out_cert = cert2;