Blame cifs_spnego.h

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