Lines Matching refs:cred
97 static int find_ref_slot(const void *const cred) in find_ref_slot() argument
102 if (cred_refs[i] == cred) { in find_ref_slot()
539 struct tls_credential *cred = NULL; in tls_cred_cmd_del() local
556 cred = credential_get(sectag, type); in tls_cred_cmd_del()
557 if (!cred) { in tls_cred_cmd_del()
564 ref_slot = find_ref_slot(cred->buf); in tls_cred_cmd_del()
567 memset((void *)cred_buf, 0, cred->len); in tls_cred_cmd_del()
569 cred->buf = NULL; in tls_cred_cmd_del()
728 struct tls_credential *cred; in tls_cred_cmd_list() local
760 cred = NULL; in tls_cred_cmd_list()
762 while ((cred = credential_next_get(sectag, cred)) != NULL) { in tls_cred_cmd_list()
764 if (type_filter != TLS_CREDENTIAL_NONE && cred->type != type_filter) { in tls_cred_cmd_list()
773 err = credential_digest(cred, cred_digest_buf, &digest_size); in tls_cred_cmd_list()
777 sectag, cred_type_name_compact(cred->type), in tls_cred_cmd_list()
811 SHELL_CMD_REGISTER(cred, &tls_cred_cmds, "TLS Credentials Commands", NULL);