Namjae Jeon | e2f3448 | 2021-03-16 10:49:09 +0900 | [diff] [blame] | 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 | |
Namjae Jeon | 070fb21 | 2021-05-26 17:57:12 +0900 | [diff] [blame] | 13 | int ksmbd_decode_negTokenInit(unsigned char *security_blob, int length, |
Namjae Jeon | e2f3448 | 2021-03-16 10:49:09 +0900 | [diff] [blame] | 14 | struct ksmbd_conn *conn); |
Namjae Jeon | 070fb21 | 2021-05-26 17:57:12 +0900 | [diff] [blame] | 15 | int ksmbd_decode_negTokenTarg(unsigned char *security_blob, int length, |
Namjae Jeon | e2f3448 | 2021-03-16 10:49:09 +0900 | [diff] [blame] | 16 | struct ksmbd_conn *conn); |
Namjae Jeon | 070fb21 | 2021-05-26 17:57:12 +0900 | [diff] [blame] | 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, |
Namjae Jeon | e2f3448 | 2021-03-16 10:49:09 +0900 | [diff] [blame] | 20 | int neg_result); |
| 21 | #endif /* __ASN1_H__ */ |