• Home
  • Raw
  • Download

Lines Matching refs:cred

206 	struct tlsv1_credentials *cred;  in tls_connection_set_params()  local
217 cred = tlsv1_cred_alloc(); in tls_connection_set_params()
218 if (cred == NULL) in tls_connection_set_params()
223 tlsv1_cred_free(cred); in tls_connection_set_params()
229 tlsv1_cred_free(cred); in tls_connection_set_params()
235 tlsv1_cred_free(cred); in tls_connection_set_params()
241 tlsv1_cred_free(cred); in tls_connection_set_params()
247 tlsv1_cred_free(cred); in tls_connection_set_params()
253 tlsv1_cred_free(cred); in tls_connection_set_params()
257 if (tlsv1_set_ca_cert(cred, params->ca_cert, in tls_connection_set_params()
262 tlsv1_cred_free(cred); in tls_connection_set_params()
266 if (tlsv1_set_cert(cred, params->client_cert, in tls_connection_set_params()
271 tlsv1_cred_free(cred); in tls_connection_set_params()
275 if (tlsv1_set_private_key(cred, params->private_key, in tls_connection_set_params()
280 tlsv1_cred_free(cred); in tls_connection_set_params()
284 if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob, in tls_connection_set_params()
287 tlsv1_cred_free(cred); in tls_connection_set_params()
291 if (tlsv1_client_set_cred(conn->client, cred) < 0) { in tls_connection_set_params()
292 tlsv1_cred_free(cred); in tls_connection_set_params()
310 struct tlsv1_credentials *cred; in tls_global_set_params() local
319 global->server_cred = cred = tlsv1_cred_alloc(); in tls_global_set_params()
320 if (cred == NULL) in tls_global_set_params()
323 if (tlsv1_set_ca_cert(cred, params->ca_cert, params->ca_cert_blob, in tls_global_set_params()
330 if (tlsv1_set_cert(cred, params->client_cert, params->client_cert_blob, in tls_global_set_params()
337 if (tlsv1_set_private_key(cred, params->private_key, in tls_global_set_params()
345 if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob, in tls_global_set_params()
352 cred->ocsp_stapling_response = in tls_global_set_params()
355 cred->ocsp_stapling_response_multi = in tls_global_set_params()