Lines Matching refs:cert
62 cert_t *cert = NULL;
105 "not supported multiple CERT RR.\n");
114 "not supported CERT RR type %d.\n", res->ci_type);
118 /* create cert holder */
119 cert = oakley_newcert();
120 if (cert == NULL) {
122 "failed to get cert buffer.\n");
125 cert->pl = vmalloc(res->ci_certlen + 1);
126 if (cert->pl == NULL) {
128 "failed to get cert buffer.\n");
131 memcpy(cert->pl->v + 1, res->ci_cert, res->ci_certlen);
132 cert->pl->v[0] = type;
133 cert->cert.v = cert->pl->v + 1;
134 cert->cert.l = cert->pl->l - 1;
136 plog(LLV_DEBUG, LOCATION, NULL, "created CERT payload:\n");
137 plogdump(LLV_DEBUG, cert->pl->v, cert->pl->l);
143 return cert;
148 if (cert) {
149 oakley_delcert(cert);
150 cert = NULL;