Lines Matching defs:keyfile
69 const char *keyfile, *keydef;
79 %s [-a] [-b bits] [-c keyfile] [-k keyname] [-p port] [-r randomfile] \
81 -a: generate just the key clause and write it to keyfile (%s)\n\
83 -c keyfile: specify an alternate key file (requires -a)\n\
88 -t chrootdir: write a keyfile in chrootdir as well (requires -a)\n\
89 -u user: set the keyfile owner to \"user\" (requires -a)\n",
96 * Write an rndc.key file to 'keyfile'. If 'user' is non-NULL,
101 write_key_file(const char *keyfile, const char *user,
106 fd = safe_create(keyfile);
108 fatal( "unable to create \"%s\"\n", keyfile);
119 fatal("write to %s failed\n", keyfile);
121 fatal("fclose(%s) failed\n", keyfile);
122 fprintf(stderr, "wrote key file \"%s\"\n", keyfile);
154 keydef = keyfile = RNDC_KEYFILE;
182 keyfile = isc_commandline_argument;
289 write_key_file(keyfile, chrootdir == NULL ? user : NULL,
294 len = strlen(chrootdir) + strlen(keyfile) + 2;
299 (*keyfile != '/') ? "/" : "", keyfile);