release 0.92.3
[cntlm.git] / ntlm.h
blobb0afdba3e03c0bad3edf3202b396179b0dad2cd9
1 /*
2 * These are NTLM authentication routines for the main module of CNTLM
4 * CNTLM is free software; you can redistribute it and/or modify it under the
5 * terms of the GNU General Public License as published by the Free Software
6 * Foundation; either version 2 of the License, or (at your option) any later
7 * version.
9 * CNTLM is distributed in the hope that it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12 * details.
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
16 * St, Fifth Floor, Boston, MA 02110-1301, USA.
18 * Copyright (c) 2007 David Kubicek
22 #ifndef _NTLM_H
23 #define _NTLM_H
25 #include "xcrypt.h"
26 #include "auth.h"
28 #define NTLM_BUFSIZE 1024
29 #define NTLM_CHALLENGE_MIN 24
31 extern char *ntlm_hash_lm_password(char *password);
32 extern char *ntlm_hash_nt_password(char *password);
33 extern char *ntlm2_hash_password(char *username, char *domain, char *password);
34 extern int ntlm_request(char **dst, struct auth_s *creds);
35 extern int ntlm_response(char **dst, char *challenge, int challen, struct auth_s *creds);
37 #endif /* _NTLM_H */