Lines Matching defs:cred
160 struct tlsv1_credentials *cred;
165 cred = tlsv1_cred_alloc();
166 if (cred == NULL)
169 if (tlsv1_set_ca_cert(cred, params->ca_cert,
174 tlsv1_cred_free(cred);
178 if (tlsv1_set_cert(cred, params->client_cert,
183 tlsv1_cred_free(cred);
187 if (tlsv1_set_private_key(cred, params->private_key,
192 tlsv1_cred_free(cred);
196 if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob,
199 tlsv1_cred_free(cred);
203 if (tlsv1_client_set_cred(conn->client, cred) < 0) {
204 tlsv1_cred_free(cred);
223 struct tlsv1_credentials *cred;
229 global->server_cred = cred = tlsv1_cred_alloc();
230 if (cred == NULL)
233 if (tlsv1_set_ca_cert(cred, params->ca_cert, params->ca_cert_blob,
240 if (tlsv1_set_cert(cred, params->client_cert, params->client_cert_blob,
247 if (tlsv1_set_private_key(cred, params->private_key,
255 if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob,