OpenVAS Scanner 23.23.1
ntlmssp.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
11
12#ifndef NASL_NTLMSSP_H
13#define NASL_NTLMSSP_H
14#include "byteorder.h"
15#include "hmacmd5.h"
16#include "md5.h"
17#include "proto.h"
18#include "smb_crypt.h"
19
20#ifndef uchar
21#define uchar unsigned char
22#endif
23
24#ifndef uint8
25#define uint8 uint8_t
26#endif
27
28void
29ntlmssp_genauth_ntlmv2 (char *user, char *domain, char *address_list,
30 int address_list_len, char *challenge_data,
31 uint8_t *lm_response, uint8_t *nt_response,
32 uint8_t *session_key, unsigned char *ntlmv2_hash);
33void
34ntlmssp_genauth_ntlm2 (char *password, uint8_t pass_len, uint8_t *lm_response,
35 uint8_t *nt_response, uint8_t *session_key,
36 char *challenge_data, unsigned char *nt_hash);
37
38void
39ntlmssp_genauth_ntlm (char *password, uint8_t pass_len, uint8_t *lm_response,
40 uint8_t *nt_response, uint8_t *session_key,
41 char *challenge_data, unsigned char *nt_hash,
42 int neg_flags);
43uint8_t *
44ntlmssp_genauth_keyexchg (uint8_t *session_key, char *challenge_data,
45 unsigned char *nt_hash, uint8_t *new_sess_key);
46
47#endif
Unix SMB/CIFS implementation. SMB Byte handling.
Unix SMB/CIFS implementation. HMAC MD5 code for use in NTLMv2.
void ntlmssp_genauth_ntlm(char *password, uint8_t pass_len, uint8_t *lm_response, uint8_t *nt_response, uint8_t *session_key, char *challenge_data, unsigned char *nt_hash, int neg_flags)
Definition ntlmssp.c:61
void ntlmssp_genauth_ntlm2(char *password, uint8_t pass_len, uint8_t *lm_response, uint8_t *nt_response, uint8_t *session_key, char *challenge_data, unsigned char *nt_hash)
Definition ntlmssp.c:30
void ntlmssp_genauth_ntlmv2(char *user, char *domain, char *address_list, int address_list_len, char *challenge_data, uint8_t *lm_response, uint8_t *nt_response, uint8_t *session_key, unsigned char *ntlmv2_hash)
Definition ntlmssp.c:19
uint8_t * ntlmssp_genauth_keyexchg(uint8_t *session_key, char *challenge_data, unsigned char *nt_hash, uint8_t *new_sess_key)
Definition ntlmssp.c:85
Unix SMB/Netbios implementation. Version 1.9.