2 * Copyright (C) 1998-2000 Luke Howard. All rights reserved.
6 * General GSS-API SASL (not LDAP specific) stuff.
19 #include <gssapi/gssapi_generic.h>
22 #include <netinet/in.h>
25 #define OM_uint32 ULONG
27 #define GSSAPI_SASL_NAME "GSSAPI"
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
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
42 /* Token for security negotiation (after GSS-API nego) */
43 typedef struct gsssasl_security_negotiation_desc {
44 /* Section 7.2.3 of RFC 2222 */
46 /* Section 7.2.[12] of RFC 2222 */
48 /* Section 7.2.1 of RFC 2222 */
50 } gsssasl_security_negotiation_desc, *gsssasl_security_negotiation_t;
52 typedef int gsssasl_server_negotiation_desc, *gsssasl_server_negotiation_t;
54 #endif /* _GSSSASL_H_ */