Lines Matching refs:cred
1075 struct tls_credential *cred) in tls_set_credential() argument
1077 switch (cred->type) { in tls_set_credential()
1079 return tls_add_ca_certificate(tls, cred); in tls_set_credential()
1082 return tls_add_own_cert(tls, cred); in tls_set_credential()
1085 return tls_set_private_key(tls, cred); in tls_set_credential()
1091 credential_get(cred->tag, TLS_CREDENTIAL_PSK_ID); in tls_set_credential()
1096 return tls_set_psk(tls, cred, psk_id); in tls_set_credential()
1114 struct tls_credential *cred; in tls_mbedtls_set_credentials() local
1123 cred = NULL; in tls_mbedtls_set_credentials()
1126 while ((cred = credential_next_get(tag, cred)) != NULL) { in tls_mbedtls_set_credentials()
1129 err = tls_set_credential(tls, cred); in tls_mbedtls_set_credentials()
1134 if (cred->type == TLS_CREDENTIAL_CA_CERTIFICATE) { in tls_mbedtls_set_credentials()
1136 } else if (cred->type == TLS_CREDENTIAL_SERVER_CERTIFICATE) { in tls_mbedtls_set_credentials()