1*10023SGordon.Ross@Sun.COM /* 2*10023SGordon.Ross@Sun.COM * CDDL HEADER START 3*10023SGordon.Ross@Sun.COM * 4*10023SGordon.Ross@Sun.COM * The contents of this file are subject to the terms of the 5*10023SGordon.Ross@Sun.COM * Common Development and Distribution License (the "License"). 6*10023SGordon.Ross@Sun.COM * You may not use this file except in compliance with the License. 7*10023SGordon.Ross@Sun.COM * 8*10023SGordon.Ross@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*10023SGordon.Ross@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*10023SGordon.Ross@Sun.COM * See the License for the specific language governing permissions 11*10023SGordon.Ross@Sun.COM * and limitations under the License. 12*10023SGordon.Ross@Sun.COM * 13*10023SGordon.Ross@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*10023SGordon.Ross@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*10023SGordon.Ross@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*10023SGordon.Ross@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*10023SGordon.Ross@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*10023SGordon.Ross@Sun.COM * 19*10023SGordon.Ross@Sun.COM * CDDL HEADER END 20*10023SGordon.Ross@Sun.COM */ 21*10023SGordon.Ross@Sun.COM 22*10023SGordon.Ross@Sun.COM /* 23*10023SGordon.Ross@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*10023SGordon.Ross@Sun.COM * Use is subject to license terms. 25*10023SGordon.Ross@Sun.COM */ 26*10023SGordon.Ross@Sun.COM 27*10023SGordon.Ross@Sun.COM #ifndef _NTLMSSP_H 28*10023SGordon.Ross@Sun.COM #define _NTLMSSP_H 29*10023SGordon.Ross@Sun.COM 30*10023SGordon.Ross@Sun.COM /* 31*10023SGordon.Ross@Sun.COM * NT LanMan Security Support Package (NTLMSSP) 32*10023SGordon.Ross@Sun.COM * Negotiation flags, etc. 33*10023SGordon.Ross@Sun.COM * 34*10023SGordon.Ross@Sun.COM * Reference: [MS-NLMP] NT LAN Manager (NTLM) 35*10023SGordon.Ross@Sun.COM * Authentication Protocol Specification 36*10023SGordon.Ross@Sun.COM * http://msdn.microsoft.com/en-us/library/cc236621(PROT.10).aspx 37*10023SGordon.Ross@Sun.COM */ 38*10023SGordon.Ross@Sun.COM 39*10023SGordon.Ross@Sun.COM /* 40*10023SGordon.Ross@Sun.COM * NTLMSSP Negotiate Flags 41*10023SGordon.Ross@Sun.COM * [MS-NLMP] sec. 2.2.2.5 42*10023SGordon.Ross@Sun.COM */ 43*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_UNICODE 0x00000001 44*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_OEM 0x00000002 45*10023SGordon.Ross@Sun.COM #define NTLMSSP_REQUEST_TARGET 0x00000004 46*10023SGordon.Ross@Sun.COM /* reserved 0x00000008 */ 47*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_SIGN 0x00000010 48*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_SEAL 0x00000020 49*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_DATAGRAM 0x00000040 50*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_LM_KEY 0x00000080 51*10023SGordon.Ross@Sun.COM /* reserved 0x00000100 */ 52*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_NTLM 0x00000200 53*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_NT_ONLY 0x00000400 54*10023SGordon.Ross@Sun.COM /* old anonymous_session (ignored by servers) 0x00000800 */ 55*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED 0x00001000 56*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED 0x00002000 57*10023SGordon.Ross@Sun.COM /* reserved 0x00004000 */ 58*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_ALWAYS_SIGN 0x00008000 59*10023SGordon.Ross@Sun.COM #define NTLMSSP_TARGET_TYPE_DOMAIN 0x00010000 60*10023SGordon.Ross@Sun.COM #define NTLMSSP_TARGET_TYPE_SERVER 0x00020000 61*10023SGordon.Ross@Sun.COM #define NTLMSSP_TARGET_TYPE_SHARE 0x00040000 62*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY 0x00080000 63*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_IDENTIFY 0x00100000 64*10023SGordon.Ross@Sun.COM /* reserved 0x00200000 */ 65*10023SGordon.Ross@Sun.COM #define NTLMSSP_REQUEST_NON_NT_SESSION_KEY 0x00400000 66*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_TARGET_INFO 0x00800000 67*10023SGordon.Ross@Sun.COM /* reserved 0x01000000 */ 68*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_VERSION 0x02000000 69*10023SGordon.Ross@Sun.COM /* reserved 0x04000000 */ 70*10023SGordon.Ross@Sun.COM /* reserved 0x08000000 */ 71*10023SGordon.Ross@Sun.COM /* reserved 0x10000000 */ 72*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_128 0x20000000 73*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_KEY_EXCH 0x40000000 74*10023SGordon.Ross@Sun.COM #define NTLMSSP_NEGOTIATE_56 0x80000000 75*10023SGordon.Ross@Sun.COM 76*10023SGordon.Ross@Sun.COM #endif /* _NTLMSSP_H */ 77