+Thu Nov 7 15:45:16 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * test.c (main):
+ * krb524d.c (main):
+ * k524init.c (main):
+ * getcred.c (main): Check the error return from
+ krb5_init_context(), and print an error message if
+ necessary.
+
Wed Jul 24 02:18:02 1996 Sam Hartman <hartmans@mit.edu>
* test.c (krb4_print_ticket): s/KRB4_INT4/krb5_ui_4 so we work
CREDENTIALS v4creds;
int i, ret;
krb5_context context;
+ krb5_error_code retval;
- krb5_init_context(&context);
- krb524_init_ets(context);
+ retval = krb5_init_context(&context);
+ if (retval) {
+ com_err(argv[0], retval, "while initializing krb5");
+ exit(1);
+ }
if (ret = krb5_parse_name(argv[1], &client)) {
com_err("getcred", ret, "parsing client name");
int nodelete = 0;
int lose = 0;
krb5_context context;
+ krb5_error_code retval;
- krb5_init_context(&context);
+ retval = krb5_init_context(&context);
+ if (retval) {
+ com_err(argv[0], retval, "while initializing krb5");
+ exit(1);
+ }
while(((option = getopt(argc, argv, "p:n")) != EOF)) {
switch(option) {
int ret, s;
fd_set rfds;
krb5_context context;
+ krb5_error_code retval;
- krb5_init_context(&context);
- krb524_init_ets(context);
+ retval = krb5_init_context(&context);
+ if (retval) {
+ com_err(argv[0], retval, "while initializing krb5");
+ exit(1);
+ }
whoami = ((whoami = strrchr(argv[0], '/')) ? whoami + 1 : argv[0]);
int ret;
use_master = 0;
- if (ret = kadm5_init(whoami, NULL, KADM5_ADMIN_SERVICE, params,
- KADM5_STRUCT_VERSION, KADM5_API_VERSION_2,
- &handle)) {
+ if ((ret = kadm5_init(whoami, NULL, KADM5_ADMIN_SERVICE, params,
+ KADM5_STRUCT_VERSION, KADM5_API_VERSION_2,
+ &handle))) {
com_err(whoami, ret, "initializing kadm5 library");
cleanup_and_exit(1, context);
}
krb5_error_code ret;
kadm5_principal_ent_rec server;
- if (ret = kadm5_get_principal(handle, service, &server,
- KADM5_KEY_DATA))
+ if ((ret = kadm5_get_principal(handle, service, &server,
+ KADM5_KEY_DATA)))
return ret;
/*
int i, ret, local;
char *remote;
krb5_context context;
+ krb5_error_code retval;
krb524_debug = 1;
- krb5_init_context(&context);
+ retval = krb5_init_context(&context);
+ if (retval) {
+ com_err(argv[0], retval, "while initializing krb5");
+ exit(1);
+ }
krb524_init_ets(context);