ntlm.h

Go to the documentation of this file.
00001 
00005 /* purple
00006  *
00007  * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
00008  *
00009  * ntlm structs are taken from NTLM description on
00010  * http://www.innovation.ch/java/ntlm.html
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00025  */
00026 
00027 #ifndef _PURPLE_NTLM_H
00028 #define _PURPLE_NTLM_H
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00042 gchar *purple_ntlm_gen_type1(const gchar *hostname, const gchar *domain);
00043 
00053 guint8 *purple_ntlm_parse_type2(const gchar *type2, guint32 *flags);
00054 
00067 gchar *purple_ntlm_gen_type3(const gchar *username, const gchar *passw, const gchar *hostname, const gchar *domain, const guint8 *nonce, guint32 *flags);
00068 
00069 #ifdef __cplusplus
00070 }
00071 #endif
00072 
00073 #endif /* _PURPLE_NTLM_H */