ntlm.h
Go to the documentation of this file.
1 
5 /* purple
6  *
7  * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
8  *
9  * ntlm structs are taken from NTLM description on
10  * http://www.innovation.ch/java/ntlm.html
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25  */
26 
27 #ifndef _PURPLE_NTLM_H
28 #define _PURPLE_NTLM_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
42 gchar *purple_ntlm_gen_type1(const gchar *hostname, const gchar *domain);
43 
53 guint8 *purple_ntlm_parse_type2(const gchar *type2, guint32 *flags);
54 
67 gchar *purple_ntlm_gen_type3(const gchar *username, const gchar *passw, const gchar *hostname, const gchar *domain, const guint8 *nonce, guint32 *flags);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* _PURPLE_NTLM_H */
guint8 * purple_ntlm_parse_type2(const gchar *type2, guint32 *flags)
Parses the ntlm type 2 message.
gchar * purple_ntlm_gen_type3(const gchar *username, const gchar *passw, const gchar *hostname, const gchar *domain, const guint8 *nonce, guint32 *flags)
Generates a type3 message.
gchar * purple_ntlm_gen_type1(const gchar *hostname, const gchar *domain)
Generates the base64 encoded type 1 message needed for NTLM authentication.