]> git.ipfire.org Git - thirdparty/dhcp.git/blame - includes/ldap_casa.h
copy rights update
[thirdparty/dhcp.git] / includes / ldap_casa.h
CommitLineData
cf6bc0da 1/* ldap_casa.h
f6b8f48d 2
cf6bc0da
DH
3 Definition for CASA modules... */
4
5/* Copyright (c) 2006 Novell, Inc.
6
7 * All rights reserved.
f6b8f48d
TM
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.
cf6bc0da 18
f6b8f48d 19 * THIS SOFTWARE IS PROVIDED BY INTERNET SYSTEMS CONSORTIUM AND CONTRIBUTORS
cf6bc0da 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
f6b8f48d
TM
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
cf6bc0da
DH
29 * POSSIBILITY OF SUCH DAMAGE.
30
31 * This file was written by S Kalyanasundaram <skalyanasundaram@novell.com>
32 */
33
34/*
49a7fb58 35 * Copyright (C) 2004-2022 Internet Systems Consortium, Inc. ("ISC")
cf6bc0da
DH
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.
429a56d7
TM
51 * PO Box 360
52 * Newmarket, NH 03857 USA
cf6bc0da
DH
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>
cf6bc0da
DH
62
63#define MICASA_LIB "libmicasa.so.1"
64
65SSCS_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,
f6b8f48d 72 SSCS_EXT_T *ext
cf6bc0da
DH
73);
74SSCS_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
84SSCS_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);
91static CASA_GetCredential_T p_miCASAGetCredential = NULL;
92static CASA_SetCredential_T p_miCASASetCredential = NULL;
93static CASA_RemoveCredential_T p_miCASARemoveCredential = NULL;
94static void *casaIDK = NULL;
95
96int load_casa(void);
97static void release_casa(void);
98int load_uname_pwd_from_miCASA(char **, char **);
99
100#endif /* __LDAP_CASA_H__ */
101#endif /* LDAP_CASA_AUTH */