Lines Matching refs:privkey_file
50 int OpenKey(char const* privkey_file, char const* gpubkey_file, in OpenKey() argument
53 size_t file_size = GetFileSize(privkey_file); in OpenKey()
55 if (0 == file_size && !FileExists(privkey_file)) { in OpenKey()
56 log_error("cannot access '%s'", privkey_file); in OpenKey()
61 if (0 != ReadLoud(privkey_file, priv_key, sizeof(PrivKey))) { in OpenKey()
82 if (0 != ReadLoud(privkey_file, &cmp_key, sizeof(CompressedPrivKey))) { in OpenKey()
116 log_error("unexpected file size for '%s'", privkey_file); in OpenKey()
248 struct arg_file* privkey_file = arg_file0( in main() local
271 argtable[0] = privkey_file; in main()
292 privkey_file->filename[0] = PRIVKEY_DEFAULT; in main()
324 log_msg(" mprivkey : %s", privkey_file->filename[0]); in main()
331 retval = OpenKey(privkey_file->filename[0], gpubkey_file->filename[0], in main()