diff options
| author | Greg Hudson <ghudson@mit.edu> | 2011-03-09 21:46:07 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2011-03-09 21:46:07 +0000 |
| commit | 7da53e2942176c5ddfe007ba0a36f449e9fdb9fb (patch) | |
| tree | 4881536c48fdeb215e0cbaea18263365330ad9b0 /src/tests | |
| parent | fe012b454a193c1f81ab8011ecd620750e5869f0 (diff) | |
| download | krb5-7da53e2942176c5ddfe007ba0a36f449e9fdb9fb.tar.gz krb5-7da53e2942176c5ddfe007ba0a36f449e9fdb9fb.tar.xz krb5-7da53e2942176c5ddfe007ba0a36f449e9fdb9fb.zip | |
Adjust most C source files to match the new standards for copyright
and license comments.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24695 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests')
36 files changed, 395 insertions, 69 deletions
diff --git a/src/tests/asn.1/debug.h b/src/tests/asn.1/debug.h index c538c36d2a..1202016489 100644 --- a/src/tests/asn.1/debug.h +++ b/src/tests/asn.1/debug.h @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/debug.h */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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. + */ + #ifndef __DEBUG_H__ #define __DEBUG_H__ diff --git a/src/tests/asn.1/krb5_decode_leak.c b/src/tests/asn.1/krb5_decode_leak.c index ac7f5bfc89..a9cd55d2c2 100644 --- a/src/tests/asn.1/krb5_decode_leak.c +++ b/src/tests/asn.1/krb5_decode_leak.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/krb5_decode_leak.c */ +/* + * Copyright (C) 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 program is intended to help detect memory leaks in the ASN.1 * decoder functions by exercising their failure paths. The setup diff --git a/src/tests/asn.1/krb5_decode_test.c b/src/tests/asn.1/krb5_decode_test.c index b3480a63d0..32de38e164 100644 --- a/src/tests/asn.1/krb5_decode_test.c +++ b/src/tests/asn.1/krb5_decode_test.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/krb5_decode_test.c */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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" #include "ktest.h" #include "com_err.h" diff --git a/src/tests/asn.1/krb5_encode_test.c b/src/tests/asn.1/krb5_encode_test.c index 784d203294..ef505833b0 100644 --- a/src/tests/asn.1/krb5_encode_test.c +++ b/src/tests/asn.1/krb5_encode_test.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/krb5_encode_test.c */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 <stdio.h> #include "k5-int.h" #include "com_err.h" diff --git a/src/tests/asn.1/ktest.c b/src/tests/asn.1/ktest.c index 0746d81b8b..90a7c1c4d9 100644 --- a/src/tests/asn.1/ktest.c +++ b/src/tests/asn.1/ktest.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/ktest.c */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 "ktest.h" #include "utility.h" #include <stdlib.h> diff --git a/src/tests/asn.1/ktest.h b/src/tests/asn.1/ktest.h index c4059a7bba..99f44c6e3b 100644 --- a/src/tests/asn.1/ktest.h +++ b/src/tests/asn.1/ktest.h @@ -1,3 +1,28 @@ +/* tests/asn.1/ktest.h */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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. + */ + #ifndef __KTEST_H__ #define __KTEST_H__ diff --git a/src/tests/asn.1/ktest_equal.c b/src/tests/asn.1/ktest_equal.c index 0a92804468..a1a95d445d 100644 --- a/src/tests/asn.1/ktest_equal.c +++ b/src/tests/asn.1/ktest_equal.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/ktest_equal.c */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 <stdlib.h> #include <stdio.h> #include "ktest_equal.h" diff --git a/src/tests/asn.1/ktest_equal.h b/src/tests/asn.1/ktest_equal.h index 4b55e23333..8d4a6e810b 100644 --- a/src/tests/asn.1/ktest_equal.h +++ b/src/tests/asn.1/ktest_equal.h @@ -1,3 +1,28 @@ +/* tests/asn.1/ktest_equal.h */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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. + */ + #ifndef __KTEST_EQUAL_H__ #define __KTEST_EQUAL_H__ diff --git a/src/tests/asn.1/t_trval.c b/src/tests/asn.1/t_trval.c index 204f60fa19..57d8253880 100644 --- a/src/tests/asn.1/t_trval.c +++ b/src/tests/asn.1/t_trval.c @@ -29,7 +29,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. - * */ /* Split out from "#ifdef STANDALONE" code previously in trval.c, so diff --git a/src/tests/asn.1/trval.c b/src/tests/asn.1/trval.c index b61bc3ccb1..780d60c7df 100644 --- a/src/tests/asn.1/trval.c +++ b/src/tests/asn.1/trval.c @@ -8,7 +8,8 @@ * Trusted Information Systems makes no representation about the * suitability of this software for any purpose. It is provided * "as is" without express or implied warranty. - * + */ +/* * Copyright (C) 1994 Massachusetts Institute of Technology * * Export of this software from the United States of America may @@ -29,7 +30,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. - * */ /***************************************************************************** diff --git a/src/tests/asn.1/utility.c b/src/tests/asn.1/utility.c index b3d3639c84..8f852d8d82 100644 --- a/src/tests/asn.1/utility.c +++ b/src/tests/asn.1/utility.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/asn.1/utility.c */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 "utility.h" #include "krb5.h" #include <stdlib.h> diff --git a/src/tests/asn.1/utility.h b/src/tests/asn.1/utility.h index 12d7a996a9..93a66afa59 100644 --- a/src/tests/asn.1/utility.h +++ b/src/tests/asn.1/utility.h @@ -1,3 +1,28 @@ +/* tests/asn.1/utility.h */ +/* + * Copyright (C) 1994 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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. + */ + #ifndef __UTILITY_H__ #define __UTILITY_H__ diff --git a/src/tests/create/kdb5_mkdums.c b/src/tests/create/kdb5_mkdums.c index f451307d71..bc2fe5992c 100644 --- a/src/tests/create/kdb5_mkdums.c +++ b/src/tests/create/kdb5_mkdums.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/create/kdb5_mkdums.c */ /* - * tests/create/kdb5_mkdums.c - * * Copyright 1990,1991 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. - * + */ + +/* * * Edit a KDC database. */ diff --git a/src/tests/dejagnu/t_inetd.c b/src/tests/dejagnu/t_inetd.c index 72d51fd7f6..5e9a0b1b23 100644 --- a/src/tests/dejagnu/t_inetd.c +++ b/src/tests/dejagnu/t_inetd.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/dejagnu/t_inetd.c */ /* - * tests/dejagnu/t_inetd.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -23,15 +22,15 @@ * 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. - * - * + */ + +/* * A simple program to simulate starting a process from inetd. * * Unlike a proper inetd situation, environment variables are passed * to the client. * * usage: t_inetd port program argv0 ... - * */ #include "autoconf.h" diff --git a/src/tests/dump.c b/src/tests/dump.c index ba74f885fb..b8e52b98c6 100644 --- a/src/tests/dump.c +++ b/src/tests/dump.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/dump.c */ /* - * tests/dump.c - * * Copyright 1990 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. - * - * - * Dump out a krb5_data to stderr (for debugging purposes). */ +/* Dump a krb5_data to stderr (for debugging purposes). */ + #include <stdio.h> #include "krb5.h" diff --git a/src/tests/gssapi/t_accname.c b/src/tests/gssapi/t_accname.c index ab6bc83bd5..9912ecfe10 100644 --- a/src/tests/gssapi/t_accname.c +++ b/src/tests/gssapi/t_accname.c @@ -21,7 +21,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 <stdio.h> diff --git a/src/tests/gssapi/t_gssexts.c b/src/tests/gssapi/t_gssexts.c index 4ca260881e..7992cdfdd1 100644 --- a/src/tests/gssapi/t_gssexts.c +++ b/src/tests/gssapi/t_gssexts.c @@ -21,7 +21,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 <stdio.h> diff --git a/src/tests/gssapi/t_namingexts.c b/src/tests/gssapi/t_namingexts.c index a75be958e5..86d276e22c 100644 --- a/src/tests/gssapi/t_namingexts.c +++ b/src/tests/gssapi/t_namingexts.c @@ -21,7 +21,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 <stdio.h> diff --git a/src/tests/gssapi/t_s4u.c b/src/tests/gssapi/t_s4u.c index 2e2304429f..4108946dd3 100644 --- a/src/tests/gssapi/t_s4u.c +++ b/src/tests/gssapi/t_s4u.c @@ -21,7 +21,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 <stdio.h> diff --git a/src/tests/gssapi/t_saslname.c b/src/tests/gssapi/t_saslname.c index 40384f7dc4..4794c8f96b 100644 --- a/src/tests/gssapi/t_saslname.c +++ b/src/tests/gssapi/t_saslname.c @@ -21,7 +21,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 <stdio.h> diff --git a/src/tests/hammer/kdc5_hammer.c b/src/tests/hammer/kdc5_hammer.c index 97e0382690..5869e969b2 100644 --- a/src/tests/hammer/kdc5_hammer.c +++ b/src/tests/hammer/kdc5_hammer.c @@ -1,6 +1,5 @@ +/* tests/hammer/kdc5_hammer.c */ /* - * tests/hammer/kdc5_hammer.c - * * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * @@ -22,9 +21,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. - * - * - * Initialize a credentials cache. */ #include <stdio.h> diff --git a/src/tests/hammer/pp.c b/src/tests/hammer/pp.c index 7fb925565d..5da1fac071 100644 --- a/src/tests/hammer/pp.c +++ b/src/tests/hammer/pp.c @@ -1,13 +1,11 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/hammer/pp.c */ /* - * tests/hammer/pp.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * * For copying and distribution information, please see the file * <krb5/copyright.h>. - * */ #include "krb5.h" diff --git a/src/tests/misc/test_getpw.c b/src/tests/misc/test_getpw.c index 6264821945..6031e15035 100644 --- a/src/tests/misc/test_getpw.c +++ b/src/tests/misc/test_getpw.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/misc/test_getpw.c */ +/* + * Copyright (C) 2005 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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" #include "k5-platform.h" #include <stdio.h> diff --git a/src/tests/misc/test_getsockname.c b/src/tests/misc/test_getsockname.c index dfd5682427..285ea60d27 100644 --- a/src/tests/misc/test_getsockname.c +++ b/src/tests/misc/test_getsockname.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/misc/test_getsockname.c */ +/* + * Copyright (C) 1995 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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. + */ + /* * test_getsockname.c * diff --git a/src/tests/mkeystash_compat/bigendian.c b/src/tests/mkeystash_compat/bigendian.c index 7c649bd38c..8d4b79fa34 100644 --- a/src/tests/mkeystash_compat/bigendian.c +++ b/src/tests/mkeystash_compat/bigendian.c @@ -1,4 +1,10 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/mkeystash_compat/bigendian.c */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + #include <stdio.h> /* diff --git a/src/tests/resolve/addrinfo-test.c b/src/tests/resolve/addrinfo-test.c index 5b4c5e83d9..d53b48a68a 100644 --- a/src/tests/resolve/addrinfo-test.c +++ b/src/tests/resolve/addrinfo-test.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/resolve/addrinfo-test.c */ /* - * test/resolve/addrinfo-test.c - * * Copyright 2004 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. - * - * + */ + +/* * A simple program to test the functionality of the getaddrinfo function. * * Usage: @@ -34,7 +34,6 @@ * which (at least with a non-null "port") means a socket address * is desired that can be used with connect() or bind() (depending * on whether "-P" is given). - * */ #include <stdio.h> diff --git a/src/tests/resolve/resolve.c b/src/tests/resolve/resolve.c index 282fba7411..69f0e177de 100644 --- a/src/tests/resolve/resolve.c +++ b/src/tests/resolve/resolve.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/resolve/resolve.c */ /* - * test/resolve/resolve.c - * * Copyright 1995 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. - * - * + */ + +/* * A simple program to test the functionality of the resolver library. * It simply will try to get the IP address of the host, and then look * up the name from the address. If the resulting name does not contain the diff --git a/src/tests/shlib/t_loader.c b/src/tests/shlib/t_loader.c index 6bdbebd3bc..439b724c31 100644 --- a/src/tests/shlib/t_loader.c +++ b/src/tests/shlib/t_loader.c @@ -1,5 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ -/* foo */ +/* tests/shlib/t_loader.c */ +/* + * Copyright (C) 2005 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 <stdio.h> #include <string.h> #include <assert.h> diff --git a/src/tests/test1.c b/src/tests/test1.c index 53b0d7c70f..aed656ebe3 100644 --- a/src/tests/test1.c +++ b/src/tests/test1.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/test1.c - Regression tests for krb5 library */ /* - * tests/test1.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. - * - * - * Regression tests for the kerberos library. */ #include "krb5.h" diff --git a/src/tests/threads/gss-perf.c b/src/tests/threads/gss-perf.c index 7b4b738528..f3630c2f8b 100644 --- a/src/tests/threads/gss-perf.c +++ b/src/tests/threads/gss-perf.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/threads/gss-perf.c */ /* - * test/threads/gss-perf.c - * * Copyright (C) 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. - * - * + */ + +/* * GSSAPI performance testing * initially contributed by Ken Raeburn */ diff --git a/src/tests/threads/init_ctx.c b/src/tests/threads/init_ctx.c index 162906019e..92c0ef6f1e 100644 --- a/src/tests/threads/init_ctx.c +++ b/src/tests/threads/init_ctx.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/threads/init_ctx.c */ /* - * test/threads/init_ctx.c - * * Copyright (C) 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 context creation performance testing * initially contributed by Ken Raeburn */ diff --git a/src/tests/threads/prof1.c b/src/tests/threads/prof1.c index fba54e90a9..3d9597844b 100644 --- a/src/tests/threads/prof1.c +++ b/src/tests/threads/prof1.c @@ -1,4 +1,29 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/threads/prof1.c */ +/* + * Copyright (C) 2004 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. + * 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. Furthermore if you modify this software you must label + * your software as modified software and not distribute it in such a + * fashion that it might be confused with the original M.I.T. software. + * 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 <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/src/tests/threads/profread.c b/src/tests/threads/profread.c index 2367b5a1d1..a9ce3d6b2b 100644 --- a/src/tests/threads/profread.c +++ b/src/tests/threads/profread.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/threads/profread.c */ /* - * test/threads/profread.c - * * Copyright (C) 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 profile data retrieval performance testing * initially contributed by Ken Raeburn */ diff --git a/src/tests/threads/t_rcache.c b/src/tests/threads/t_rcache.c index d0607edfc9..e543f13ed3 100644 --- a/src/tests/threads/t_rcache.c +++ b/src/tests/threads/t_rcache.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/threads/t_rcache.c */ /* - * test/threads/t_rcache.c - * * Copyright (C) 2006 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. - * - * - * */ - #include <stdio.h> #include <com_err.h> diff --git a/src/tests/verify/kdb5_verify.c b/src/tests/verify/kdb5_verify.c index a19a5aa9f4..429419975b 100644 --- a/src/tests/verify/kdb5_verify.c +++ b/src/tests/verify/kdb5_verify.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/verify/kdb5_verify.c */ /* - * tests/verify/kdb5_verify.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. - * - * - * Edit a KDC database. */ #include "k5-int.h" diff --git a/src/tests/verify/pkey.c b/src/tests/verify/pkey.c index 5f159ce0fd..9ed575c4a1 100644 --- a/src/tests/verify/pkey.c +++ b/src/tests/verify/pkey.c @@ -1,7 +1,6 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* tests/verify/pkey.c */ /* - * tests/verify/pkey.c - * * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * |
