xref: /openbmc/linux/fs/smb/server/asn1.h (revision ad4455c6)
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 
13 int ksmbd_decode_negTokenInit(unsigned char *security_blob, int length,
14 			      struct ksmbd_conn *conn);
15 int ksmbd_decode_negTokenTarg(unsigned char *security_blob, int length,
16 			      struct ksmbd_conn *conn);
17 int build_spnego_ntlmssp_neg_blob(unsigned char **pbuffer, u16 *buflen,
18 				  char *ntlm_blob, int ntlm_blob_len);
19 int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer, u16 *buflen,
20 				   int neg_result);
21 #endif /* __ASN1_H__ */
22