Home
last modified time | relevance | path

Searched refs:keyf (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/ntp/sntp/
H A Dcrypto.c213 FILE *keyf = fopen(keyfile, "r"); in auth_init() local
222 if (keyf == NULL) { in auth_init()
227 if (feof(keyf)) { in auth_init()
230 fclose(keyf); in auth_init()
234 while (!feof(keyf)) { in auth_init()
239 if (NULL == fgets(kbuf, sizeof(kbuf), keyf)) in auth_init()
297 fclose(keyf); in auth_init()
/freebsd/contrib/libfido2/tools/
H A Dlargeblob.c165 load_key(const char *keyf, const char *cred_id64, const char *rp_id, in load_key() argument
174 if (keyf != NULL) { in load_key()
177 fp = open_read(keyf); in load_key()
179 warnx("%s: base64_read %s", __func__, keyf); in load_key()
197 blob_set(const char *path, const char *keyf, const char *rp_id, in blob_set() argument
210 load_key(keyf, cred_id64, rp_id, path, dev, &pin, &key) < 0) in blob_set()
237 blob_get(const char *path, const char *keyf, const char *rp_id, in blob_get() argument
249 if (load_key(keyf, cred_id64, rp_id, path, dev, &pin, &key) < 0) in blob_get()
272 blob_delete(const char *path, const char *keyf, const char *rp_id, in blob_delete() argument
283 if (load_key(keyf, cred_id64, rp_id, path, dev, &pin, &key) < 0) in blob_delete()
/freebsd/contrib/sendmail/src/
H A Dqueue.c7027 SM_FILE_T *keyf; local
7035 keyf = safefopen(keypath, O_WRONLY|O_TRUNC, FileMode, sff);
7036 if (keyf == NULL)
7048 fd = keyf->f_file;
7059 ok = sm_io_fprintf(keyf, SM_TIME_DEFAULT, "%ld\n", key) !=
7061 ok = (sm_io_close(keyf, SM_TIME_DEFAULT) != SM_IO_EOF) && ok;
7084 SM_FILE_T *keyf; local
7091 keyf = safefopen(keypath, O_RDONLY, FileMode, sff);
7092 if (keyf == NULL)
7099 r = sm_io_fscanf(keyf, SM_TIME_DEFAULT, "%ld", &n);
[all …]