Lines Matching full:trust
27 * @file veta.c - add to trust anchors
42 * @brief add trust anchors from a file
48 trust_file_add(const char *trust) in trust_file_add() argument
53 xcs = read_certificates(trust, &num); in trust_file_add()
58 else if (load_key_file(trust)) { in trust_file_add()
66 * @brief add trust anchors from a directory
71 trust_dir_add(const char *trust) in trust_dir_add() argument
80 if (!(dh = opendir(trust))) in trust_dir_add()
85 sz = snprintf(fbuf, sizeof(fbuf), "%s/%s", trust, de->d_name); in trust_dir_add()
97 * @brief add trust anchors
100 ve_trust_add(const char *trust) in ve_trust_add() argument
104 if (stat(trust, &st) < 0) in ve_trust_add()
107 return (trust_dir_add(trust)); in ve_trust_add()
108 return (trust_file_add(trust)); in ve_trust_add()