Blame cifs_spnego.h

Packit 5f9837
/*
Packit 5f9837
 *   fs/cifs/cifs_spnego.h -- SPNEGO upcall management for CIFS
Packit 5f9837
 *
Packit 5f9837
 *   Copyright (c) 2007 Red Hat, Inc.
Packit 5f9837
 *   Author(s): Jeff Layton (jlayton@redhat.com)
Packit 5f9837
 *              Steve French (sfrench@us.ibm.com)
Packit 5f9837
 *
Packit 5f9837
 *   This library is free software; you can redistribute it and/or modify
Packit 5f9837
 *   it under the terms of the GNU Lesser General Public License as published
Packit 5f9837
 *   by the Free Software Foundation; either version 2.1 of the License, or
Packit 5f9837
 *   (at your option) any later version.
Packit 5f9837
 *
Packit 5f9837
 *   This library 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
Packit 5f9837
 *   the GNU Lesser General Public License for more details.
Packit 5f9837
 *
Packit 5f9837
 *   You should have received a copy of the GNU Lesser General Public License
Packit 5f9837
 *   along with this library; if not, write to the Free Software
Packit 5f9837
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Packit 5f9837
 */
Packit 5f9837
Packit 5f9837
#ifndef _CIFS_SPNEGO_H
Packit 5f9837
#define _CIFS_SPNEGO_H
Packit 5f9837
Packit 5f9837
#define CIFS_SPNEGO_UPCALL_VERSION 2
Packit 5f9837
Packit 5f9837
/*
Packit 5f9837
 * The version field should always be set to CIFS_SPNEGO_UPCALL_VERSION.
Packit 5f9837
 * The flags field is for future use. The request-key callout should set
Packit 5f9837
 * sesskey_len and secblob_len, and then concatenate the SessKey+SecBlob
Packit 5f9837
 * and stuff it in the data field.
Packit 5f9837
 */
Packit 5f9837
struct cifs_spnego_msg {
Packit 5f9837
	uint32_t version;
Packit 5f9837
	uint32_t flags;
Packit 5f9837
	uint32_t sesskey_len;
Packit 5f9837
	uint32_t secblob_len;
Packit 5f9837
	uint8_t data[1];
Packit 5f9837
};
Packit 5f9837
Packit 5f9837
#ifdef __KERNEL__
Packit 5f9837
extern struct key_type cifs_spnego_key_type;
Packit 5f9837
#endif				/* KERNEL */
Packit 5f9837
Packit 5f9837
#endif				/* _CIFS_SPNEGO_H */