ISC DHCP  4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
ldap_casa.h
Go to the documentation of this file.
1 /* ldap_casa.h
2 
3  Definition for CASA modules... */
4 
5 /* Copyright (c) 2006 Novell, Inc.
6 
7  * All rights reserved.
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  * 1.Redistributions of source code must retain the above copyright notice,
11  * this list of conditions and the following disclaimer.
12  * 2.Redistributions in binary form must reproduce the above copyright notice,
13  * this list of conditions and the following disclaimer in the documentation
14  * and/or other materials provided with the distribution.
15  * 3.Neither the name of ISC, ISC DHCP, nor the names of its contributors
16  * may be used to endorse or promote products derived from this software
17  * without specific prior written permission.
18 
19  * THIS SOFTWARE IS PROVIDED BY INTERNET SYSTEMS CONSORTIUM AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ISC OR CONTRIBUTORS BE LIABLE
23  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30 
31  * This file was written by S Kalyanasundaram <skalyanasundaram@novell.com>
32  */
33 
34 /*
35  * Copyright (C) 2004-2022 Internet Systems Consortium, Inc. ("ISC")
36  * Copyright (c) 1995-2003 by Internet Software Consortium
37  *
38  * Permission to use, copy, modify, and distribute this software for any
39  * purpose with or without fee is hereby granted, provided that the above
40  * copyright notice and this permission notice appear in all copies.
41  *
42  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
43  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
44  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
45  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
48  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49  *
50  * Internet Systems Consortium, Inc.
51  * PO Box 360
52  * Newmarket, NH 03857 USA
53  * <info@isc.org>
54  * https://www.isc.org/
55  */
56 
57 #if defined(LDAP_CASA_AUTH)
58 #ifndef __LDAP_CASA_H__
59 #define __LDAP_CASA_H__
60 
61 #include <micasa_mgmd.h>
62 
63 #define MICASA_LIB "libmicasa.so.1"
64 
65 SSCS_TYPEDEF_LIBCALL(int, CASA_GetCredential_T)
66 (
67  uint32_t ssFlags,
68  SSCS_SECRET_ID_T *appSecretID,
69  SSCS_SECRET_ID_T *sharedSecretID,
70  uint32_t *credentialType,
71  void *credential,
72  SSCS_EXT_T *ext
73 );
74 SSCS_TYPEDEF_LIBCALL(int, CASA_SetCredential_T)
75 (
76  uint32_t ssFlags,
77  SSCS_SECRET_ID_T *appSecretID,
78  SSCS_SECRET_ID_T *sharedSecretID,
79  uint32_t credentialType,
80  void *credential,
81  SSCS_EXT_T *ext
82 );
83 
84 SSCS_TYPEDEF_LIBCALL(int, CASA_RemoveCredential_T)
85 (
86  uint32_t ssFlags,
87  SSCS_SECRET_ID_T *appSecretID,
88  SSCS_SECRET_ID_T *sharedSecretID,
89  SSCS_EXT_T *ext
90 );
91 static CASA_GetCredential_T p_miCASAGetCredential = NULL;
92 static CASA_SetCredential_T p_miCASASetCredential = NULL;
93 static CASA_RemoveCredential_T p_miCASARemoveCredential = NULL;
94 static void *casaIDK = NULL;
95 
96 int load_casa(void);
97 static void release_casa(void);
98 int load_uname_pwd_from_miCASA(char **, char **);
99 
100 #endif /* __LDAP_CASA_H__ */
101 #endif /* LDAP_CASA_AUTH */