Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * The ASB.1/BER parsing code is derived from ip_nat_snmp_basic.c which was in
0004  * turn derived from the gxsnmp package by Gregory McLean & Jochen Friedrich
0005  *
0006  * Copyright (c) 2000 RP Internet (www.rpi.net.au).
0007  * Copyright (C) 2018 Samsung Electronics Co., Ltd.
0008  */
0009 
0010 #ifndef __ASN1_H__
0011 #define __ASN1_H__
0012 
0013 int ksmbd_decode_negTokenInit(unsigned char *security_blob, int length,
0014                   struct ksmbd_conn *conn);
0015 int ksmbd_decode_negTokenTarg(unsigned char *security_blob, int length,
0016                   struct ksmbd_conn *conn);
0017 int build_spnego_ntlmssp_neg_blob(unsigned char **pbuffer, u16 *buflen,
0018                   char *ntlm_blob, int ntlm_blob_len);
0019 int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer, u16 *buflen,
0020                    int neg_result);
0021 #endif /* __ASN1_H__ */