Lines Matching refs:cred

184 	struct tlsv1_credentials *cred;  in tls_connection_set_params()  local
189 cred = tlsv1_cred_alloc(); in tls_connection_set_params()
190 if (cred == NULL) in tls_connection_set_params()
195 tlsv1_cred_free(cred); in tls_connection_set_params()
201 tlsv1_cred_free(cred); in tls_connection_set_params()
207 tlsv1_cred_free(cred); in tls_connection_set_params()
213 tlsv1_cred_free(cred); in tls_connection_set_params()
219 tlsv1_cred_free(cred); in tls_connection_set_params()
223 if (tlsv1_set_ca_cert(cred, params->ca_cert, in tls_connection_set_params()
228 tlsv1_cred_free(cred); in tls_connection_set_params()
232 if (tlsv1_set_cert(cred, params->client_cert, in tls_connection_set_params()
237 tlsv1_cred_free(cred); in tls_connection_set_params()
241 if (tlsv1_set_private_key(cred, params->private_key, in tls_connection_set_params()
246 tlsv1_cred_free(cred); in tls_connection_set_params()
250 if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob, in tls_connection_set_params()
253 tlsv1_cred_free(cred); in tls_connection_set_params()
257 if (tlsv1_client_set_cred(conn->client, cred) < 0) { in tls_connection_set_params()
258 tlsv1_cred_free(cred); in tls_connection_set_params()
277 struct tlsv1_credentials *cred; in tls_global_set_params() local
283 global->server_cred = cred = tlsv1_cred_alloc(); in tls_global_set_params()
284 if (cred == NULL) in tls_global_set_params()
287 if (tlsv1_set_ca_cert(cred, params->ca_cert, params->ca_cert_blob, in tls_global_set_params()
294 if (tlsv1_set_cert(cred, params->client_cert, params->client_cert_blob, in tls_global_set_params()
301 if (tlsv1_set_private_key(cred, params->private_key, in tls_global_set_params()
309 if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob, in tls_global_set_params()