OpenVAS Scanner  22.7.9
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 
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 
28 void
29 ntlmssp_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);
33 void
34 ntlmssp_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 
38 void
39 ntlmssp_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);
43 uint8_t *
44 ntlmssp_genauth_keyexchg (uint8_t *session_key, char *challenge_data,
45  unsigned char *nt_hash, uint8_t *new_sess_key);
46 
47 #endif
ntlmssp_genauth_ntlmv2
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
byteorder.h
Unix SMB/CIFS implementation. SMB Byte handling.
proto.h
ntlmssp_genauth_ntlm
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
ntlmssp_genauth_keyexchg
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
hmacmd5.h
Unix SMB/CIFS implementation. HMAC MD5 code for use in NTLMv2.
ntlmssp_genauth_ntlm2
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
md5.h
smb_crypt.h
Unix SMB/Netbios implementation. Version 1.9.