linux/fs/smb/client/cifs_spnego.c

// SPDX-License-Identifier: LGPL-2.1
/*
 *   SPNEGO upcall management for CIFS
 *
 *   Copyright (c) 2007 Red Hat, Inc.
 *   Author(s): Jeff Layton ([email protected])
 *
 */

#include <linux/list.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <keys/user-type.h>
#include <linux/key-type.h>
#include <linux/keyctl.h>
#include <linux/inet.h>
#include "cifsglob.h"
#include "cifs_spnego.h"
#include "cifs_debug.h"
#include "cifsproto.h"
static const struct cred *spnego_cred;

/* create a new cifs key */
static int
cifs_spnego_key_instantiate(struct key *key, struct key_preparsed_payload *prep)
{}

static void
cifs_spnego_key_destroy(struct key *key)
{}


/*
 * keytype for CIFS spnego keys
 */
struct key_type cifs_spnego_key_type =;

/* length of longest version string e.g.  strlen("ver=0xFF") */
#define MAX_VER_STR_LEN

/* length of longest security mechanism name, eg in future could have
 * strlen(";sec=ntlmsspi") */
#define MAX_MECH_STR_LEN

/* strlen of ";host=" */
#define HOST_KEY_LEN

/* strlen of ";ip4=" or ";ip6=" */
#define IP_KEY_LEN

/* strlen of ";uid=0x" */
#define UID_KEY_LEN

/* strlen of ";creduid=0x" */
#define CREDUID_KEY_LEN

/* strlen of ";user=" */
#define USER_KEY_LEN

/* strlen of ";pid=0x" */
#define PID_KEY_LEN

/* get a key struct with a SPNEGO security blob, suitable for session setup */
struct key *
cifs_get_spnego_key(struct cifs_ses *sesInfo,
		    struct TCP_Server_Info *server)
{}

int
init_cifs_spnego(void)
{}

void
exit_cifs_spnego(void)
{}