Skip to content

Commit e2f3448

Browse files
namjaejeonSteve French
authored andcommitted
cifsd: add server-side procedures for SMB3
This adds smb3 engine, NTLM/NTLMv2/Kerberos authentication, oplock/lease cache mechanism for cifsd. Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Hyunchul Lee <[email protected]> Acked-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 0626e66 commit e2f3448

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+24537
-0
lines changed

fs/cifsd/asn1.c

Lines changed: 702 additions & 0 deletions
Large diffs are not rendered by default.

fs/cifsd/asn1.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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,
14+
int length,
15+
struct ksmbd_conn *conn);
16+
17+
int ksmbd_decode_negTokenTarg(unsigned char *security_blob,
18+
int length,
19+
struct ksmbd_conn *conn);
20+
21+
int build_spnego_ntlmssp_neg_blob(unsigned char **pbuffer,
22+
u16 *buflen,
23+
char *ntlm_blob,
24+
int ntlm_blob_len);
25+
26+
int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer,
27+
u16 *buflen,
28+
int neg_result);
29+
#endif /* __ASN1_H__ */

0 commit comments

Comments
 (0)