Pass context to kdc_log.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2664 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-01 14:47:43 +00:00
parent e26572056e
commit 584eb44cb9
5 changed files with 104 additions and 84 deletions

View File

@@ -71,15 +71,15 @@ main(int argc, char **argv)
EncryptionKey key;
f = fopen(keyfile, "r");
if(f == NULL){
kdc_log(0, "Failed to open master key file %s",
kdc_log(context, 0, "Failed to open master key file %s",
keyfile);
exit(1);
}
len = fread(buf, 1, sizeof(buf), f);
fclose(f);
if(decode_EncryptionKey(buf, len, &key, &len)){
kdc_log(0, "Failed to parse contents of master key file %s",
keyfile);
kdc_log(context, 0,
"Failed to parse contents of master key file %s", keyfile);
exit(1);
}
set_master_key(&key);