Deleted Added
full compact
openpam_dump_policy.c (256281) openpam_dump_policy.c (271947)
1/*-
2 * Copyright (c) 2011 Dag-Erling Sm��rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2011 Dag-Erling Sm��rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id: openpam_dump_policy.c 648 2013-03-05 17:54:27Z des $
29 * $Id: openpam_dump_policy.c 798 2014-06-10 21:28:14Z des $
30 */
31
32#ifdef HAVE_CONFIG_H
33# include "config.h"
34#endif
35
36#include <ctype.h>
37#include <stdio.h>

--- 21 unchanged lines hidden (view full) ---

59openpam_facility_index_name(pam_facility_t fclt)
60{
61 const char *facility = pam_facility_name[fclt];
62 char *name, *p;
63
64 if (asprintf(&name, "PAM_%s", facility) == -1)
65 return (NULL);
66 for (p = name + 4; *p; ++p)
30 */
31
32#ifdef HAVE_CONFIG_H
33# include "config.h"
34#endif
35
36#include <ctype.h>
37#include <stdio.h>

--- 21 unchanged lines hidden (view full) ---

59openpam_facility_index_name(pam_facility_t fclt)
60{
61 const char *facility = pam_facility_name[fclt];
62 char *name, *p;
63
64 if (asprintf(&name, "PAM_%s", facility) == -1)
65 return (NULL);
66 for (p = name + 4; *p; ++p)
67 *p = toupper(*p);
67 *p = toupper((unsigned char)*p);
68 return (name);
69}
70
71int
72openpam_dump_chain(const char *name, pam_chain_t *chain)
73{
74 char *modname, **opt, *p;
75 int i;

--- 127 unchanged lines hidden ---
68 return (name);
69}
70
71int
72openpam_dump_chain(const char *name, pam_chain_t *chain)
73{
74 char *modname, **opt, *p;
75 int i;

--- 127 unchanged lines hidden ---