forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
0626e66
commit e2f3448
Showing
41 changed files
with
24,537 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* | ||
* The ASB.1/BER parsing code is derived from ip_nat_snmp_basic.c which was in | ||
* turn derived from the gxsnmp package by Gregory McLean & Jochen Friedrich | ||
* | ||
* Copyright (c) 2000 RP Internet (www.rpi.net.au). | ||
* Copyright (C) 2018 Samsung Electronics Co., Ltd. | ||
*/ | ||
|
||
#ifndef __ASN1_H__ | ||
#define __ASN1_H__ | ||
|
||
int ksmbd_decode_negTokenInit(unsigned char *security_blob, | ||
int length, | ||
struct ksmbd_conn *conn); | ||
|
||
int ksmbd_decode_negTokenTarg(unsigned char *security_blob, | ||
int length, | ||
struct ksmbd_conn *conn); | ||
|
||
int build_spnego_ntlmssp_neg_blob(unsigned char **pbuffer, | ||
u16 *buflen, | ||
char *ntlm_blob, | ||
int ntlm_blob_len); | ||
|
||
int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer, | ||
u16 *buflen, | ||
int neg_result); | ||
#endif /* __ASN1_H__ */ |
Oops, something went wrong.