diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1997-12-01 08:22:45 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1997-12-01 08:22:45 +0000 |
commit | f6e46f595ed674e3916ac1aad5385f03589cbc19 (patch) | |
tree | 4404b42681cfcb48275d1ec17c7a0da2bbd31a39 /kerberosIV/kdb/print_princ.c | |
parent | 3bcbf38101d656808bda3c5494982b40108eabb0 (diff) |
Another upgrade to kth-krb4-0.9.7
Diffstat (limited to 'kerberosIV/kdb/print_princ.c')
-rw-r--r-- | kerberosIV/kdb/print_princ.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kerberosIV/kdb/print_princ.c b/kerberosIV/kdb/print_princ.c index d846f4bcd9f..6ba635d5b79 100644 --- a/kerberosIV/kdb/print_princ.c +++ b/kerberosIV/kdb/print_princ.c @@ -1,30 +1,30 @@ -/* $Id: print_princ.c,v 1.1 1995/12/14 06:52:36 tholo Exp $ */ - -/*- - * Copyright (C) 1989 by the Massachusetts Institute of Technology - * - * Export of this software from the United States of America is assumed - * to require a specific license from the United States Government. - * It is the responsibility of any person or organization contemplating - * export to obtain such a license before exporting. - * - * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and - * distribute this software and its documentation for any purpose and - * without fee is hereby granted, provided that the above copyright - * notice appear in all copies and that both that copyright notice and - * this permission notice appear in supporting documentation, and that - * the name of M.I.T. not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. M.I.T. makes no representations about the suitability of - * this software for any purpose. It is provided "as is" without express - * or implied warranty. - */ +/* $KTH: print_princ.c,v 1.5 1997/05/07 01:37:13 assar Exp $ */ + +/* + Copyright (C) 1989 by the Massachusetts Institute of Technology + + Export of this software from the United States of America is assumed + to require a specific license from the United States Government. + It is the responsibility of any person or organization contemplating + export to obtain such a license before exporting. + +WITHIN THAT CONSTRAINT, permission to use, copy, modify, and +distribute this software and its documentation for any purpose and +without fee is hereby granted, provided that the above copyright +notice appear in all copies and that both that copyright notice and +this permission notice appear in supporting documentation, and that +the name of M.I.T. not be used in advertising or publicity pertaining +to distribution of the software without specific, written prior +permission. M.I.T. makes no representations about the suitability of +this software for any purpose. It is provided "as is" without express +or implied warranty. + + */ #include "kdb_locl.h" void -krb_print_principal(a_n) - Principal *a_n; +krb_print_principal(Principal *a_n) { struct tm *time_p; @@ -34,7 +34,7 @@ krb_print_principal(a_n) fprintf(stderr, "\n%s %s expires %4d-%2d-%2d %2d:%2d, max_life %d*5 = %d min attr 0x%02x", a_n->name, a_n->instance, - time_p->tm_year > 1900 ? time_p->tm_year : time_p->tm_year + 1900, + time_p->tm_year + 1900, time_p->tm_mon + 1, time_p->tm_mday, time_p->tm_hour, time_p->tm_min, a_n->max_life, 5 * a_n->max_life, a_n->attributes); |