diff options
Diffstat (limited to 'src/lib/krb5/os')
44 files changed, 107 insertions, 224 deletions
diff --git a/src/lib/krb5/os/accessor.c b/src/lib/krb5/os/accessor.c index a0cdce6b48..532cd38d01 100644 --- a/src/lib/krb5/os/accessor.c +++ b/src/lib/krb5/os/accessor.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/accessor.c */ /* - * lib/krb5/os/accessor.c - * * Copyright 1990, 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,7 +22,6 @@ * 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 "k5-int.h" diff --git a/src/lib/krb5/os/an_to_ln.c b/src/lib/krb5/os/an_to_ln.c index 8572cc0685..a5846c78bc 100644 --- a/src/lib/krb5/os/an_to_ln.c +++ b/src/lib/krb5/os/an_to_ln.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/an_to_ln.c */ /* - * lib/krb5/os/an_to_ln.c - * * Copyright 1990,1991,2007,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * krb5_aname_to_localname() */ /* diff --git a/src/lib/krb5/os/c_ustime.c b/src/lib/krb5/os/c_ustime.c index 1bfdac4af3..3dabe801bb 100644 --- a/src/lib/krb5/os/c_ustime.c +++ b/src/lib/krb5/os/c_ustime.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/c_ustime.c */ /* - * lib/crypto/os/c_ustime.c - * * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * krb5_mstimeofday for BSD 4.3 */ #include "k5-int.h" diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c index 0686e721af..c46013381f 100644 --- a/src/lib/krb5/os/ccdefname.c +++ b/src/lib/krb5/os/ccdefname.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/ccdefname.c - Return default credential cache name */ /* - * lib/krb5/os/ccdefname.c - * * Copyright 1990, 2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Return default cred. cache name. */ #define NEED_WINDOWS diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index 6ebe8dbbbd..5c383ecd40 100644 --- a/src/lib/krb5/os/changepw.c +++ b/src/lib/krb5/os/changepw.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/changepw.c */ /* - * lib/krb5/os/changepw.c - * * Copyright 1990,1999,2001,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,12 +22,13 @@ * 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. - * */ + /* * krb5_set_password - Implements set password per RFC 3244 * Added by Paul W. Nelson, Thursby Software Systems, Inc. - * Modified by Todd Stecher, Isilon Systems, to use krb1.4 socket infrastructure + * Modified by Todd Stecher, Isilon Systems, to use krb1.4 socket + * infrastructure */ #include "fake-addrinfo.h" diff --git a/src/lib/krb5/os/def_realm.c b/src/lib/krb5/os/def_realm.c index 878aa29067..f47e170a57 100644 --- a/src/lib/krb5/os/def_realm.c +++ b/src/lib/krb5/os/def_realm.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/def_realm.c */ /* - * lib/krb5/os/def_realm.c - * * Copyright 1990,1991,2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,8 +22,9 @@ * 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. - * - * + */ + +/* * krb5_get_default_realm(), krb5_set_default_realm(), * krb5_free_default_realm() functions. */ diff --git a/src/lib/krb5/os/dnsglue.c b/src/lib/krb5/os/dnsglue.c index 4742c0a12d..826e15952b 100644 --- a/src/lib/krb5/os/dnsglue.c +++ b/src/lib/krb5/os/dnsglue.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/dnsglue.c */ /* - * lib/krb5/os/dnsglue.c - * * Copyright 2004, 2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,8 +22,8 @@ * 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 "autoconf.h" #ifdef KRB5_DNS_LOOKUP diff --git a/src/lib/krb5/os/dnsglue.h b/src/lib/krb5/os/dnsglue.h index d8298862a5..e66de6ad84 100644 --- a/src/lib/krb5/os/dnsglue.h +++ b/src/lib/krb5/os/dnsglue.h @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/dnsglue.h */ /* - * lib/krb5/os/dnsglue.h - * * Copyright 2004 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,7 +22,9 @@ * 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. - * + */ + +/* * Glue layer for DNS resolver, to make parsing of replies easier * whether we are using BIND 4, 8, or 9. */ diff --git a/src/lib/krb5/os/dnssrv.c b/src/lib/krb5/os/dnssrv.c index 983f0be042..4332ac70d0 100644 --- a/src/lib/krb5/os/dnssrv.c +++ b/src/lib/krb5/os/dnssrv.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/dnssrv.c - Perform DNS SRV queries */ /* - * lib/krb5/os/dnssrv.c - * * Copyright 1990,2000,2001,2002,2003 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * do DNS SRV RR queries */ #include "autoconf.h" diff --git a/src/lib/krb5/os/free_krbhs.c b/src/lib/krb5/os/free_krbhs.c index ddbbc3bb77..58a6c438fd 100644 --- a/src/lib/krb5/os/free_krbhs.c +++ b/src/lib/krb5/os/free_krbhs.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/free_krbhs.c */ /* - * lib/krb5/os/free_krbhs.c - * * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,17 +22,11 @@ * 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. - * - * - * krb5_free_krbhst() function */ #include "k5-int.h" -/* - Frees the storage taken by a host list returned by krb5_get_krbhst. -*/ - +/* Free the storage taken by a host list returned by krb5_get_krbhst. */ krb5_error_code krb5_free_krbhst(krb5_context context, char *const *hostlist) { diff --git a/src/lib/krb5/os/full_ipadr.c b/src/lib/krb5/os/full_ipadr.c index 213e4262b8..0863caba58 100644 --- a/src/lib/krb5/os/full_ipadr.c +++ b/src/lib/krb5/os/full_ipadr.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/full_ipadr.c - Generate full address from IP addr and port */ /* - * lib/krb5/os/full_ipadr.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Take an IP addr & port and generate a full IP address. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/gen_port.c b/src/lib/krb5/os/gen_port.c index a887408a71..f51d12f68c 100644 --- a/src/lib/krb5/os/gen_port.c +++ b/src/lib/krb5/os/gen_port.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/gen_port.c - Generate full address from IP address and port */ /* - * lib/krb5/os/gen_port.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Take an IP addr & port and generate a full IP address. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/gen_rname.c b/src/lib/krb5/os/gen_rname.c index 1d87c2bf08..9dae04355d 100644 --- a/src/lib/krb5/os/gen_rname.c +++ b/src/lib/krb5/os/gen_rname.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/gen_rname.c */ /* - * lib/krb5/os/gen_rname.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,10 @@ * 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. - * - * - * take a port-style address and unique string, and return + */ + +/* + * Take a port-style address and unique string, and return * a replay cache tag string. */ diff --git a/src/lib/krb5/os/genaddrs.c b/src/lib/krb5/os/genaddrs.c index d9028e4fb7..b31c0bca67 100644 --- a/src/lib/krb5/os/genaddrs.c +++ b/src/lib/krb5/os/genaddrs.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/genaddrs.c */ /* - * lib/krb5/os/genaddrs.c - * * Copyright 1995 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Take an IP addr & port and generate a full IP address. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/get_krbhst.c b/src/lib/krb5/os/get_krbhst.c index fe287780c5..7db973aa21 100644 --- a/src/lib/krb5/os/get_krbhst.c +++ b/src/lib/krb5/os/get_krbhst.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/get_krbhst.c */ /* - * lib/krb5/os/get_krbhst.c - * * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * krb5_get_krbhst() function. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/hostaddr.c b/src/lib/krb5/os/hostaddr.c index 2f4c387dbb..ccab1d0e4a 100644 --- a/src/lib/krb5/os/hostaddr.c +++ b/src/lib/krb5/os/hostaddr.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/hostaddr.c - Return list of krb5 addresses for a hostname */ /* - * lib/krb5/os/hostaddr.c - * * Copyright 1990,1991,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * This routine returns a list of krb5 addresses given a hostname. - * */ #include "k5-int.h" @@ -33,7 +29,8 @@ #include "fake-addrinfo.h" krb5_error_code -krb5_os_hostaddr(krb5_context context, const char *name, krb5_address ***ret_addrs) +krb5_os_hostaddr(krb5_context context, const char *name, + krb5_address ***ret_addrs) { krb5_error_code retval; krb5_address **addrs; diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c index 168c1846a1..33e13e1c59 100644 --- a/src/lib/krb5/os/hst_realm.c +++ b/src/lib/krb5/os/hst_realm.c @@ -1,9 +1,8 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/hst_realm.c */ /* - * lib/krb5/os/hst_realm.c - * - * Copyright 1990,1991,2002,2008,2009 by the Massachusetts Institute of Technology. - * All Rights Reserved. + * Copyright 1990,1991,2002,2008,2009 by the Massachusetts Institute of + * Technology. All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. @@ -23,8 +22,13 @@ * 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. - * - * + */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* * krb5_get_host_realm() * krb5_get_fallback_host_realm() * krb5int_clean_hostname() @@ -432,11 +436,6 @@ krb5int_clean_hostname(krb5_context context, } /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* * Walk through the components of a domain. At each stage determine * if a KDC can be located for that domain. Return a realm * corresponding to the upper-cased domain name for which a KDC was diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c index 7f2110f8e4..c4eb17fc37 100644 --- a/src/lib/krb5/os/init_os_ctx.c +++ b/src/lib/krb5/os/init_os_ctx.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/init_os_ctx.c */ /* - * lib/krb5/os/init_ctx.c - * * Copyright 1994, 2007, 2008, 2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,8 +22,6 @@ * 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. - * - * krb5_init_contex() */ #define NEED_WINDOWS diff --git a/src/lib/krb5/os/krbfileio.c b/src/lib/krb5/os/krbfileio.c index 99703aa357..6dce8ca9af 100644 --- a/src/lib/krb5/os/krbfileio.c +++ b/src/lib/krb5/os/krbfileio.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/krbfileio.c */ /* - * lib/krb5/os/krbfileio.c - * * Copyright (c) Hewlett-Packard Company 1991 * Released to the Massachusetts Institute of Technology for inclusion * in the Kerberos source code distribution. diff --git a/src/lib/krb5/os/ktdefname.c b/src/lib/krb5/os/ktdefname.c index ce28e30d15..afc344e4d9 100644 --- a/src/lib/krb5/os/ktdefname.c +++ b/src/lib/krb5/os/ktdefname.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/ktdefname.c - Return default keytab name */ /* - * lib/krb5/os/ktdefname.c - * * Copyright 1990 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Return default keytab file name. */ #define NEED_WINDOWS diff --git a/src/lib/krb5/os/kuserok.c b/src/lib/krb5/os/kuserok.c index e1619f3946..51471ae7ce 100644 --- a/src/lib/krb5/os/kuserok.c +++ b/src/lib/krb5/os/kuserok.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/kuserok.c */ /* - * lib/krb5/os/kuserok.c - * * Copyright 1990,1993,2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * krb5_kuserok() */ #include "k5-int.h" diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index 61d01a97bd..08f628a55e 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -1,9 +1,8 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/localaddr.c */ /* - * lib/krb5/os/localaddr.c - * - * Copyright 1990,1991,2000,2001,2002,2004,2007,2008 by the Massachusetts Institute of Technology. - * All Rights Reserved. + * Copyright 1990,1991,2000,2001,2002,2004,2007,2008 by the Massachusetts + * Institute of Technology. All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. @@ -23,8 +22,9 @@ * 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. - * - * + */ + +/* * Return the protocol addresses supported by this host. * Exports from this file: * krb5int_foreach_localaddr (does callbacks) diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index b395375fc7..4c5977ab05 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -1,9 +1,8 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/locate_kdc.c - Get addresses for realm KDCs and other servers */ /* - * lib/krb5/os/locate_kdc.c - * - * Copyright 1990,2000,2001,2002,2003,2004,2006,2008 Massachusetts Institute of Technology. - * All Rights Reserved. + * Copyright 1990,2000,2001,2002,2003,2004,2006,2008 Massachusetts Institute of + * Technology. All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. @@ -23,9 +22,6 @@ * 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. - * - * - * Get server hostnames or addresses for KDC. */ #include "fake-addrinfo.h" diff --git a/src/lib/krb5/os/lock_file.c b/src/lib/krb5/os/lock_file.c index 6565470c05..224e58fbf5 100644 --- a/src/lib/krb5/os/lock_file.c +++ b/src/lib/krb5/os/lock_file.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/lock_file.c */ /* - * lib/krb5/os/lock_file.c - * * Copyright 1990, 1998 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * libos: krb5_lock_file routine */ #include "k5-int.h" diff --git a/src/lib/krb5/os/mk_faddr.c b/src/lib/krb5/os/mk_faddr.c index 26fb99c843..7e125cfcf7 100644 --- a/src/lib/krb5/os/mk_faddr.c +++ b/src/lib/krb5/os/mk_faddr.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/mk_faddr.c - Generate full address from IP addr and port */ /* - * lib/krb5/os/full_ipadr.c - * * Copyright 1995, 2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Take an IP addr & port and generate a full IP address. */ #include "k5-int.h" @@ -39,7 +35,8 @@ #endif krb5_error_code -krb5_make_fulladdr(krb5_context context, krb5_address *kaddr, krb5_address *kport, krb5_address *raddr) +krb5_make_fulladdr(krb5_context context, krb5_address *kaddr, + krb5_address *kport, krb5_address *raddr) { register krb5_octet * marshal; krb5_int32 tmp32; diff --git a/src/lib/krb5/os/net_read.c b/src/lib/krb5/os/net_read.c index fe84192d10..7e5e95412a 100644 --- a/src/lib/krb5/os/net_read.c +++ b/src/lib/krb5/os/net_read.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/net_read.c */ /* - * lib/krb5/os/net_read.c - * * Copyright 1987, 1988, 1990 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,7 +22,6 @@ * 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 "k5-int.h" diff --git a/src/lib/krb5/os/net_write.c b/src/lib/krb5/os/net_write.c index d4bcc148f2..929072653e 100644 --- a/src/lib/krb5/os/net_write.c +++ b/src/lib/krb5/os/net_write.c @@ -1,9 +1,8 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/net_write.c */ /* - * lib/krb5/os/net_write.c - * - * Copyright 1987, 1988, 1990, 2009 by the Massachusetts Institute of Technology. - * All Rights Reserved. + * Copyright 1987, 1988, 1990, 2009 by the Massachusetts Institute of + * Technology. All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. @@ -23,7 +22,6 @@ * 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 "k5-int.h" diff --git a/src/lib/krb5/os/os-proto.h b/src/lib/krb5/os/os-proto.h index 2fb353ea01..a86ad87cb6 100644 --- a/src/lib/krb5/os/os-proto.h +++ b/src/lib/krb5/os/os-proto.h @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/os-proto.h */ /* - * lib/krb5/os/os-proto.h - * * Copyright 1990,1991,2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,7 +22,9 @@ * 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. - * + */ + +/* * * LIBOS internal function prototypes. */ diff --git a/src/lib/krb5/os/osconfig.c b/src/lib/krb5/os/osconfig.c index d04e95ba72..93eafeda06 100644 --- a/src/lib/krb5/os/osconfig.c +++ b/src/lib/krb5/os/osconfig.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/osconfig.c */ /* - * lib/krb5/os/osconfig.c - * * Copyright 1990 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,8 +22,9 @@ * 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. - * - * + */ + +/* * Definition of default configuration parameters. * * ***** WARNING ***** diff --git a/src/lib/krb5/os/port2ip.c b/src/lib/krb5/os/port2ip.c index d4184db112..905d60f193 100644 --- a/src/lib/krb5/os/port2ip.c +++ b/src/lib/krb5/os/port2ip.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/port2ip.c - Split full address into IP address and port */ /* - * lib/krb5/os/port2ip.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Take an ADDRPORT address and split into IP addr & port. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/read_msg.c b/src/lib/krb5/os/read_msg.c index 815f7ad893..2da310d09a 100644 --- a/src/lib/krb5/os/read_msg.c +++ b/src/lib/krb5/os/read_msg.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/read_msg.c */ /* - * lib/krb5/os/read_msg.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Write a message to the network */ #include "k5-int.h" diff --git a/src/lib/krb5/os/read_pwd.c b/src/lib/krb5/os/read_pwd.c index df93c65465..f26896d5fa 100644 --- a/src/lib/krb5/os/read_pwd.c +++ b/src/lib/krb5/os/read_pwd.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/read_pwd.c */ /* - * lib/krb5/os/read_pwd.c - * * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * libos: krb5_read_password for BSD 4.3 */ #include "k5-int.h" diff --git a/src/lib/krb5/os/realm_dom.c b/src/lib/krb5/os/realm_dom.c index 8f25caf448..08e35d49aa 100644 --- a/src/lib/krb5/os/realm_dom.c +++ b/src/lib/krb5/os/realm_dom.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/realm_dom.c */ /* - * lib/krb5/os/realm_dom.c - * * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,12 +22,8 @@ * 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. - * - * - * krb5_get_realm_domain() */ - /* * Determines the proper domain name for a realm. This is mainly so that * a krb4 principal can be converted properly into a krb5 principal. diff --git a/src/lib/krb5/os/realm_iter.c b/src/lib/krb5/os/realm_iter.c index cfc9e390eb..2fb1f039ee 100644 --- a/src/lib/krb5/os/realm_iter.c +++ b/src/lib/krb5/os/realm_iter.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/realm_iter.c */ /* - * lib/krb5/os/realm_init.c - * * Copyright 1998 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,8 +22,6 @@ * 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. - * - * krb5_realm_iterate() */ #include "k5-int.h" diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index 5e059a59e9..058b6d1ed8 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/sendto_kdc.c */ /* - * lib/krb5/os/sendto_kdc.c - * * Copyright 1990,1991,2001,2002,2004,2005,2007,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,12 +22,11 @@ * 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. - * - * - * Send packet to KDC for realm; wait for response, retransmitting - * as necessary. */ +/* Send packet to KDC for realm; wait for response, retransmitting + * as necessary. */ + #include "fake-addrinfo.h" #include "k5-int.h" diff --git a/src/lib/krb5/os/sn2princ.c b/src/lib/krb5/os/sn2princ.c index 9645fef376..b5a2d26112 100644 --- a/src/lib/krb5/os/sn2princ.c +++ b/src/lib/krb5/os/sn2princ.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/sn2princ.c */ /* - * lib/krb5/os/sn2princ.c - * * Copyright 1991,2002 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,12 +22,11 @@ * 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. - * - * - * Convert a hostname and service name to a principal in the "standard" - * form. */ +/* Convert a hostname and service name to a principal in the "standard" + * form. */ + #include "k5-int.h" #include "os-proto.h" #include "fake-addrinfo.h" diff --git a/src/lib/krb5/os/t_kuserok.c b/src/lib/krb5/os/t_kuserok.c index a16c4f5961..eabbfc75e4 100644 --- a/src/lib/krb5/os/t_kuserok.c +++ b/src/lib/krb5/os/t_kuserok.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/t_kuserok.c - Test harness for krb5_kuserok */ /* - * lib/krb5/os/t_kuserok.c - * * Copyright (C) 2010 by the Massachusetts Institute of Technology. * All rights reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * Simple test harness for krb5_kuserok. */ #include <krb5.h> diff --git a/src/lib/krb5/os/thread_safe.c b/src/lib/krb5/os/thread_safe.c index acd88ce85e..5ac7341ce0 100644 --- a/src/lib/krb5/os/thread_safe.c +++ b/src/lib/krb5/os/thread_safe.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/thread_safe.c */ /* - * lib/krb5/os/thread_safec - * * Copyright 2005 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * krb5_is_thread_safe() function. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/timeofday.c b/src/lib/krb5/os/timeofday.c index 7c4534e423..b22d92a1a7 100644 --- a/src/lib/krb5/os/timeofday.c +++ b/src/lib/krb5/os/timeofday.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/timeofday.c */ /* - * lib/krb5/os/timeofday.c - * * Copyright 1990, 2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,12 +22,8 @@ * 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. - * - * - * libos: krb5_timeofday function for BSD 4.3 */ - #include "k5-int.h" #include <time.h> diff --git a/src/lib/krb5/os/toffset.c b/src/lib/krb5/os/toffset.c index a9faec537b..456193a41a 100644 --- a/src/lib/krb5/os/toffset.c +++ b/src/lib/krb5/os/toffset.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/toffset.c - Manipulate time offset fields in os context */ /* - * lib/krb5/os/toffset.c - * * Copyright 1995, 2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,8 +22,6 @@ * 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. - * - * These routines manipulates the time offset fields in the os context. */ #include "k5-int.h" diff --git a/src/lib/krb5/os/trace.c b/src/lib/krb5/os/trace.c index 6624363f39..83df52eb7f 100644 --- a/src/lib/krb5/os/trace.c +++ b/src/lib/krb5/os/trace.c @@ -1,7 +1,6 @@ /* -*- mode: c; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/trace.c - k5trace implementation */ /* - * lib/krb5/krb/trace.c - * * Copyright 2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,11 +22,10 @@ * 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. - * - * k5trace implementation */ -/* k5trace is defined in k5-int.h as a macro or static inline function, +/* + * k5trace is defined in k5-int.h as a macro or static inline function, * and is called like so: * * void k5trace(krb5_context context, const char *fmt, ...) diff --git a/src/lib/krb5/os/unlck_file.c b/src/lib/krb5/os/unlck_file.c index 37233a3371..7d69fc78f4 100644 --- a/src/lib/krb5/os/unlck_file.c +++ b/src/lib/krb5/os/unlck_file.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/unlck_file.c */ /* - * lib/krb5/os/unlck_file.c - * * Copyright 1990 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,9 +22,6 @@ * 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. - * - * - * libos: krb5_lock_file routine */ #include "k5-int.h" diff --git a/src/lib/krb5/os/ustime.c b/src/lib/krb5/os/ustime.c index 34c2fa0892..be94a82185 100644 --- a/src/lib/krb5/os/ustime.c +++ b/src/lib/krb5/os/ustime.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/ustime.c */ /* - * lib/krb5/os/ustime.c - * * Copyright 1990,1991,2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,7 +22,9 @@ * 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. - * + */ + +/* * krb5_crypto_us_timeofday() does all of the real work; however, we * handle the time offset adjustment here, since this is context * specific, and the crypto version of this call doesn't have access diff --git a/src/lib/krb5/os/write_msg.c b/src/lib/krb5/os/write_msg.c index 6a57b1e0cb..b745f3fad0 100644 --- a/src/lib/krb5/os/write_msg.c +++ b/src/lib/krb5/os/write_msg.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* lib/krb5/os/write_msg.c - convenience sendauh/recvauth functions */ /* - * lib/krb5/os/write_msg.c - * * Copyright 1991, 2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,22 +22,22 @@ * 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. - * - * - * convenience sendauth/recvauth functions */ #include "k5-int.h" #include <errno.h> #include "os-proto.h" -/* Try to write a series of messages with as few write(v) system calls - as possible, to avoid Nagle/DelayedAck problems. Cheating here a - little -- I know the only cases we have at the moment will send one - or two messages in a call. Sending more will work, but not as - efficiently. */ +/* + * Try to write a series of messages with as few write(v) system calls + * as possible, to avoid Nagle/DelayedAck problems. Cheating here a + * little -- I know the only cases we have at the moment will send one + * or two messages in a call. Sending more will work, but not as + * efficiently. + */ krb5_error_code -krb5int_write_messages(krb5_context context, krb5_pointer fdp, krb5_data *outbuf, int nbufs) +krb5int_write_messages(krb5_context context, krb5_pointer fdp, + krb5_data *outbuf, int nbufs) { int fd = *( (int *) fdp); |