Blame spnego.h

Packit 5f9837
/* 
Packit 5f9837
   Unix SMB/CIFS implementation.
Packit 5f9837
   simple kerberos5/SPNEGO routines
Packit 5f9837
   Copyright (C) Andrew Tridgell 2001
Packit 5f9837
   Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
Packit 5f9837
   Copyright (C) Luke Howard     2003
Packit 5f9837
   
Packit 5f9837
   This program is free software; you can redistribute it and/or modify
Packit 5f9837
   it under the terms of the GNU General Public License as published by
Packit 5f9837
   the Free Software Foundation; either version 3 of the License, or
Packit 5f9837
   (at your option) any later version.
Packit 5f9837
   
Packit 5f9837
   This program is distributed in the hope that it will be useful,
Packit 5f9837
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5f9837
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 5f9837
   GNU General Public License for more details.
Packit 5f9837
   
Packit 5f9837
   You should have received a copy of the GNU General Public License
Packit 5f9837
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 5f9837
*/
Packit 5f9837
Packit 5f9837
#ifndef  _SPNEGO_H
Packit 5f9837
#define  _SPNEGO_H
Packit 5f9837
Packit 5f9837
/* needed OID's */
Packit 5f9837
#define OID_SPNEGO "1.3.6.1.5.5.2"
Packit 5f9837
#define OID_NTLMSSP "1.3.6.1.4.1.311.2.2.10"
Packit 5f9837
#define OID_KERBEROS5_OLD "1.2.840.48018.1.2.2"
Packit 5f9837
#define OID_KERBEROS5 "1.2.840.113554.1.2.2"
Packit 5f9837
Packit 5f9837
/* not really SPNEGO but GSSAPI (RFC 1964) */
Packit 5f9837
#define TOK_ID_KRB_AP_REQ	(unsigned char *)"\x01\x00"
Packit 5f9837
#define TOK_ID_KRB_AP_REP	(unsigned char *)"\x02\x00"
Packit 5f9837
#define TOK_ID_KRB_ERROR	(unsigned char *)"\x03\x00"
Packit 5f9837
#define TOK_ID_GSS_GETMIC	(unsigned char *)"\x01\x01"
Packit 5f9837
#define TOK_ID_GSS_WRAP		(unsigned char *)"\x02\x01"
Packit 5f9837
Packit 5f9837
extern DATA_BLOB gen_negTokenInit(const char *OID, DATA_BLOB blob);
Packit 5f9837
extern DATA_BLOB spnego_gen_krb5_wrap(const DATA_BLOB ticket, const uint8_t tok_id[2]);
Packit 5f9837
Packit 5f9837
#endif /* _SPNEGO_H */