Searched refs:nstatefile (Results 1 – 1 of 1) sorted by relevance
| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | sshkey-xmss.c | 572 char *statefile = NULL, *ostatefile = NULL, *nstatefile = NULL; in sshkey_xmss_update_state() local 598 asprintf(&nstatefile, "%s.nstate", filename) == -1) { in sshkey_xmss_update_state() 602 unlink(nstatefile); in sshkey_xmss_update_state() 615 if ((fd = open(nstatefile, O_CREAT|O_WRONLY|O_EXCL, 0600)) == -1) { in sshkey_xmss_update_state() 617 PRINT("open new state file: %s", nstatefile); in sshkey_xmss_update_state() 623 PRINT("write new state file hdr: %s", nstatefile); in sshkey_xmss_update_state() 630 PRINT("write new state file data: %s", nstatefile); in sshkey_xmss_update_state() 636 PRINT("sync new state file: %s", nstatefile); in sshkey_xmss_update_state() 642 PRINT("close new state file: %s", nstatefile); in sshkey_xmss_update_state() 653 if (rename(nstatefile, statefile) == -1) { in sshkey_xmss_update_state() [all …]
|