Merge tag 'objtool-core-2023-04-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / fs / ksmbd / asn1.h
CommitLineData
e2f34481
NJ
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * The ASB.1/BER parsing code is derived from ip_nat_snmp_basic.c which was in
4 * turn derived from the gxsnmp package by Gregory McLean & Jochen Friedrich
5 *
6 * Copyright (c) 2000 RP Internet (www.rpi.net.au).
7 * Copyright (C) 2018 Samsung Electronics Co., Ltd.
8 */
9
10#ifndef __ASN1_H__
11#define __ASN1_H__
12
070fb21e 13int ksmbd_decode_negTokenInit(unsigned char *security_blob, int length,
e2f34481 14 struct ksmbd_conn *conn);
070fb21e 15int ksmbd_decode_negTokenTarg(unsigned char *security_blob, int length,
e2f34481 16 struct ksmbd_conn *conn);
070fb21e
NJ
17int build_spnego_ntlmssp_neg_blob(unsigned char **pbuffer, u16 *buflen,
18 char *ntlm_blob, int ntlm_blob_len);
19int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer, u16 *buflen,
e2f34481
NJ
20 int neg_result);
21#endif /* __ASN1_H__ */