Lines Matching refs:cert
43 #include "cert.h"
1615 * Some peers (e.g. Cisco IOS) won't send their cert unless we
1664 u_int8_t *cert = 0, *new_cert = 0;
1685 if (!aca->handler->cert_obtain(id, id_len, aca->data, &cert,
1687 log_print("exchange_add_certs: could not obtain cert "
1688 "for a type %d cert request", aca->id);
1689 free(cert);
1692 new_cert = realloc(cert, ISAKMP_CERT_SZ + certlen);
1695 "failed", cert, ISAKMP_CERT_SZ + certlen);
1696 free(cert);
1699 cert = new_cert;
1700 memmove(cert + ISAKMP_CERT_DATA_OFF, cert, certlen);
1701 SET_ISAKMP_CERT_ENCODING(cert, aca->id);
1702 if (message_add_payload(msg, ISAKMP_PAYLOAD_CERT, cert,
1704 free(cert);
1708 * We need to reset cert here, as it is now controlled by
1711 * to fail early in cert_obtain before it writes to &cert.
1713 cert = NULL;