]> andersk Git - moira.git/blob - incremental/ldap/gsssasl.h
New incremental code, existing side by side by winad.incr for now.
[moira.git] / incremental / ldap / gsssasl.h
1 /*
2  * Copyright (C) 1998-2000 Luke Howard. All rights reserved.
3  * CONFIDENTIAL
4  * $Id$
5  *
6  * General GSS-API SASL (not LDAP specific) stuff.
7  */
8
9 #ifndef _GSSSASL_H_
10 #define _GSSSASL_H_
11
12 #ifdef _WIN32
13 #include <windows.h>
14 #endif
15
16 #ifdef HEIMDAL
17 #include <gssapi.h>
18 #else
19 #include <gssapi/gssapi_generic.h>
20 #endif
21 #ifndef _WIN32
22 #include <netinet/in.h>
23 #endif
24
25 #define OM_uint32 ULONG
26
27 #define GSSAPI_SASL_NAME                  "GSSAPI"
28
29 /* GSS_Accept_Context */
30 #define GSSSASL_NEGOTIATE_CONTEXT         0x01
31 /* Section 7.2.2 of RFC 2222 */
32 #define GSSSASL_SEND_SECURITY_OPTIONS     0x02
33 /* Section 7.2.1 of RFC 2222 */
34 #define GSSSASL_RECEIVE_SECURITY_OPTIONS  0x03
35 #define GSSSASL_COMPLETED                 0x04
36
37 /* Section 7.3 of RFC 2222 */
38 #define GSSSASL_NO_SECURITY_LAYER         0x01
39 #define GSSSASL_INTEGRITY_PROTECTION      0x02
40 #define GSSSASL_PRIVACY_PROTECTION        0x04
41
42 /* Token for security negotiation (after GSS-API nego) */
43 typedef struct gsssasl_security_negotiation_desc {
44     /* Section 7.2.3 of RFC 2222 */
45     int security_layer:8;
46     /* Section 7.2.[12] of RFC 2222 */
47     int token_size:24;
48     /* Section 7.2.1 of RFC 2222 */
49     char identity[1];
50 } gsssasl_security_negotiation_desc, *gsssasl_security_negotiation_t;
51
52 typedef int gsssasl_server_negotiation_desc, *gsssasl_server_negotiation_t;
53
54 #endif                          /* _GSSSASL_H_ */
This page took 0.042867 seconds and 5 git commands to generate.