1 /*****************************************************************************
2  *  Written by Chris Dunlap <cdunlap@llnl.gov>.
3  *  Copyright (C) 2007-2020 Lawrence Livermore National Security, LLC.
4  *  Copyright (C) 2002-2007 The Regents of the University of California.
5  *  UCRL-CODE-155910.
6  *
7  *  This file is part of the MUNGE Uid 'N' Gid Emporium (MUNGE).
8  *  For details, see <https://dun.github.io/munge/>.
9  *
10  *  MUNGE is free software: you can redistribute it and/or modify it under
11  *  the terms of the GNU General Public License as published by the Free
12  *  Software Foundation, either version 3 of the License, or (at your option)
13  *  any later version.  Additionally for the MUNGE library (libmunge), you
14  *  can redistribute it and/or modify it under the terms of the GNU Lesser
15  *  General Public License as published by the Free Software Foundation,
16  *  either version 3 of the License, or (at your option) any later version.
17  *
18  *  MUNGE is distributed in the hope that it will be useful, but WITHOUT
19  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21  *  and GNU Lesser General Public License for more details.
22  *
23  *  You should have received a copy of the GNU General Public License
24  *  and GNU Lesser General Public License along with MUNGE.  If not, see
25  *  <http://www.gnu.org/licenses/>.
26  *****************************************************************************/
27 
28 
29 #if HAVE_CONFIG_H
30 #  include "config.h"
31 #endif /* HAVE_CONFIG_H */
32 
33 #include <stdio.h>
34 #include "license.h"
35 
36 
37 /*  The license string was broken into an array of strings in order to keep
38  *    below the 509-character limit that ISO C90 compilers are required to
39  *    support (detected when compiling with -pedantic).
40  */
41 static const char *license_text[] = { \
42     "Welcome to the MUNGE Uid 'N' Gid Emporium (MUNGE).",
43     "https://dun.github.io/munge/",
44     "",
45     "Written by Chris Dunlap <cdunlap@llnl.gov>.",
46     "Copyright (C) 2007-2020 Lawrence Livermore National Security, LLC.",
47     "Copyright (C) 2002-2007 The Regents of the University of California.",
48     "",
49     "MUNGE is free software: you can redistribute it and/or modify it under",
50     "the terms of the GNU General Public License as published by the Free",
51     "Software Foundation, either version 3 of the License,"
52         " or (at your option)",
53     "any later version.",
54     "",
55     "Additionally for the MUNGE library (libmunge), you can redistribute",
56     "it and/or modify it under the terms of the GNU Lesser General Public",
57     "License as published by the Free Software Foundation, either version 3",
58     "of the License, or (at your option) any later version.",
59     "",
60     "MUNGE is distributed in the hope that it will be useful, but WITHOUT",
61     "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or",
62     "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License",
63     "and GNU Lesser General Public License for more details.",
64     "",
65     NULL
66 };
67 
68 
69 void
display_license(void)70 display_license (void)
71 {
72     const char **pp;
73 
74     for (pp = license_text; *pp != NULL; pp++) {
75         printf ("%s\n", *pp);
76     }
77     return;
78 }
79