secdb.h (499fd60129a966ad9d9e752e65f591c3a6a1c697) | secdb.h (7b0bedd42192a2f6bcd6fc4b637d23892303a962) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
23 * Use is subject to license terms. 24 */ 25 26#ifndef _SECDB_H 27#define _SECDB_H 28 | 23 * Use is subject to license terms. 24 */ 25 26#ifndef _SECDB_H 27#define _SECDB_H 28 |
29#pragma ident "%Z%%M% %I% %E% SMI" 30 | |
31#ifdef __cplusplus 32extern "C" { 33#endif 34 35 36#define DEFAULT_POLICY "solaris" 37#define SUSER_POLICY "suser" /* fallback: old policy */ 38 --- 30 unchanged lines hidden (view full) --- 69} kv_t; /* A key-value pair */ 70 71typedef struct kva_s { 72 int length; /* array length */ 73 kv_t *data; /* array of key value pairs */ 74} kva_t; /* Key-value array */ 75 76 | 29#ifdef __cplusplus 30extern "C" { 31#endif 32 33 34#define DEFAULT_POLICY "solaris" 35#define SUSER_POLICY "suser" /* fallback: old policy */ 36 --- 30 unchanged lines hidden (view full) --- 67} kv_t; /* A key-value pair */ 68 69typedef struct kva_s { 70 int length; /* array length */ 71 kv_t *data; /* array of key value pairs */ 72} kva_t; /* Key-value array */ 73 74 |
77#ifdef __STDC__ | |
78extern char *kva_match(kva_t *, char *); | 75extern char *kva_match(kva_t *, char *); |
79 | |
80extern int _auth_match(const char *, const char *); 81extern char *_argv_to_csl(char **strings); 82extern char **_csl_to_argv(char *csl); 83extern char *_do_unescape(char *src); 84extern void _free_argv(char **p_argv); 85extern int _insert2kva(kva_t *, char *, char *); 86extern int _kva2str(kva_t *, char *, int, char *, char *); 87extern kva_t *_kva_dup(kva_t *); 88extern void _kva_free(kva_t *); 89extern kva_t *_new_kva(int size); 90extern kva_t *_str2kva(char *, char *, char *); 91extern int _get_user_defs(const char *, char **, char **); 92extern void _free_user_defs(char *, char *); 93 | 76extern int _auth_match(const char *, const char *); 77extern char *_argv_to_csl(char **strings); 78extern char **_csl_to_argv(char *csl); 79extern char *_do_unescape(char *src); 80extern void _free_argv(char **p_argv); 81extern int _insert2kva(kva_t *, char *, char *); 82extern int _kva2str(kva_t *, char *, int, char *, char *); 83extern kva_t *_kva_dup(kva_t *); 84extern void _kva_free(kva_t *); 85extern kva_t *_new_kva(int size); 86extern kva_t *_str2kva(char *, char *, char *); 87extern int _get_user_defs(const char *, char **, char **); 88extern void _free_user_defs(char *, char *); 89 |
94#else /* not __STDC__ */ 95 96extern char *kva_match(); 97 98extern int _auth_match(); 99extern char *_argv_to_csl(); 100extern char **_csl_to_argv(); 101extern char *_do_unescape(); 102extern void _free_argv(); 103extern int _insert2kva(); 104extern int _kva2str(); 105extern kva_t *_kva_dup(); 106extern void _kva_free(kva_t *); 107extern kva_t *_new_kva(); 108extern int _str2kva(); 109extern int _get_user_defs(); 110extern void _free_user_defs(); 111#endif /* __STDC__ */ 112 | |
113#ifdef __cplusplus 114} 115#endif 116 117#endif /* _SECDB_H */ | 90#ifdef __cplusplus 91} 92#endif 93 94#endif /* _SECDB_H */ |