/*1* fs/cifs/cifs_spnego.h -- SPNEGO upcall management for CIFS2*3* Copyright (c) 2007 Red Hat, Inc.4* Author(s): Jeff Layton ([email protected])5* Steve French ([email protected])6*7* This library is free software; you can redistribute it and/or modify8* it under the terms of the GNU Lesser General Public License as published9* by the Free Software Foundation; either version 2.1 of the License, or10* (at your option) any later version.11*12* This library is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See15* the GNU Lesser General Public License for more details.16*17* You should have received a copy of the GNU Lesser General Public License18* along with this library; if not, write to the Free Software19* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20*/2122#ifndef _CIFS_SPNEGO_H23#define _CIFS_SPNEGO_H2425#define CIFS_SPNEGO_UPCALL_VERSION 22627/*28* The version field should always be set to CIFS_SPNEGO_UPCALL_VERSION.29* The flags field is for future use. The request-key callout should set30* sesskey_len and secblob_len, and then concatenate the SessKey+SecBlob31* and stuff it in the data field.32*/33struct cifs_spnego_msg {34uint32_t version;35uint32_t flags;36uint32_t sesskey_len;37uint32_t secblob_len;38uint8_t data[1];39};4041#ifdef __KERNEL__42extern struct key_type cifs_spnego_key_type;43extern struct key *cifs_get_spnego_key(struct cifs_ses *sesInfo);44#endif /* KERNEL */4546#endif /* _CIFS_SPNEGO_H */474849