Lines Matching refs:credentials
20 static struct tls_credential credentials[CONFIG_TLS_MAX_CREDENTIALS_NUMBER]; variable
27 (void)memset(credentials, 0, sizeof(credentials)); in credentials_init()
39 for (i = 0; i < ARRAY_SIZE(credentials); i++) { in unused_credential_get()
40 if (credentials[i].type == TLS_CREDENTIAL_NONE) { in unused_credential_get()
41 return &credentials[i]; in unused_credential_get()
53 for (i = 0; i < ARRAY_SIZE(credentials); i++) { in credential_get()
54 if (credentials[i].type == type && credentials[i].tag == tag) { in credential_get()
55 return &credentials[i]; in credential_get()
68 iter = credentials; in credential_next_get()
73 for (i = iter - credentials; i < ARRAY_SIZE(credentials); i++) { in credential_next_get()
74 if (credentials[i].type != TLS_CREDENTIAL_NONE && in credential_next_get()
75 credentials[i].tag == tag) { in credential_next_get()
76 return &credentials[i]; in credential_next_get()
89 for (i = 0; i < ARRAY_SIZE(credentials); i++) { in credential_next_tag_get()
91 if (credentials[i].type == TLS_CREDENTIAL_NONE) { in credential_next_tag_get()
96 if (credentials[i].tag <= iter && iter != TLS_SEC_TAG_NONE) { in credential_next_tag_get()
101 if (lowest == TLS_SEC_TAG_NONE || credentials[i].tag < lowest) { in credential_next_tag_get()
102 lowest = credentials[i].tag; in credential_next_tag_get()