Home
last modified time | relevance | path

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

/freebsd/crypto/openssh/
H A Dsshkey-xmss.c575 char *statefile = NULL, *ostatefile = NULL, *nstatefile = NULL; in sshkey_xmss_update_state() local
601 asprintf(&nstatefile, "%s.nstate", filename) == -1) { in sshkey_xmss_update_state()
605 unlink(nstatefile); in sshkey_xmss_update_state()
618 if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) { in sshkey_xmss_update_state()
620 PRINT("open new state file: %s", nstatefile); in sshkey_xmss_update_state()
626 PRINT("write new state file hdr: %s", nstatefile); in sshkey_xmss_update_state()
633 PRINT("write new state file data: %s", nstatefile); in sshkey_xmss_update_state()
639 PRINT("sync new state file: %s", nstatefile); in sshkey_xmss_update_state()
645 PRINT("close new state file: %s", nstatefile); in sshkey_xmss_update_state()
656 if (rename(nstatefile, statefile) == -1) { in sshkey_xmss_update_state()
[all …]