11375
+ ��膩��鰹申鐃順�渇��膩��� 1 /**
+ ��膩��鰹申鐃順�渇��膩��� 2 * @file ntlm.h
+ ��膩��鰹申鐃順�渇��膩��� 3 *
+ ��膩��鰹申鐃順�渇��膩��� 4 * gaim
+ ��膩��鰹申鐃順�渇��膩��� 5 *
+ ��膩��鰹申鐃順�渇��膩��� 6 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
+ ��膩��鰹申鐃順�渇��膩��� 7 *
+ ��膩��鰹申鐃順�渇��膩��� 8 * ntlm structs are taken from NTLM description on
+ ��膩��鰹申鐃順�渇��膩��� 9 * http://www.innovation.ch/java/ntlm.html
+ ��膩��鰹申鐃順�渇��膩��� 10 *
+ ��膩��鰹申鐃順�渇��膩��� 11 * This program is free software; you can redistribute it and/or modify
+ ��膩��鰹申鐃順�渇��膩��� 12 * it under the terms of the GNU General Public License as published by
+ ��膩��鰹申鐃順�渇��膩��� 13 * the Free Software Foundation; either version 2 of the License, or
+ ��膩��鰹申鐃順�渇��膩��� 14 * (at your option) any later version.
+ ��膩��鰹申鐃順�渇��膩��� 15 *
+ ��膩��鰹申鐃順�渇��膩��� 16 * This program is distributed in the hope that it will be useful,
+ ��膩��鰹申鐃順�渇��膩��� 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ��膩��鰹申鐃順�渇��膩��� 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ ��膩��鰹申鐃順�渇��膩��� 19 * GNU General Public License for more details.
+ ��膩��鰹申鐃順�渇��膩��� 20 *
+ ��膩��鰹申鐃順�渇��膩��� 21 * You should have received a copy of the GNU General Public License
+ ��膩��鰹申鐃順�渇��膩��� 22 * along with this program; if not, write to the Free Software
+ ��膩��鰹申鐃順�渇��膩��� 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ ��膩��鰹申鐃順�渇��膩��� 24 */
+ ��膩��鰹申鐃順�渇��膩��� 25
+ ��膩��鰹申鐃順�渇��膩��� 26 #ifndef _GAIM_NTLM_H
+ ��膩��鰹申鐃順�渇��膩��� 27 #define _GAIM_NTLM_H
+ ��膩��鰹申鐃順�渇��膩��� 28
+ ��膩��鰹申鐃順�渇��膩��� 29 /**
+ ��膩��鰹申鐃順�渇��膩��� 30 * Generates the base64 encoded type 1 message needed for NTLM authentication
+ ��膩��鰹申鐃順�渇��膩��� 31 *
+ ��膩��鰹申鐃順�渇��膩��� 32 * @param hostname Your hostname
+ ��膩��鰹申鐃順�渇��膩��� 33 * @param domain The domain to authenticate to
+ ��膩��鰹申鐃順�渇��膩��� 34 * @return base64 encoded string to send to the server. has to be freed with g_free
+ ��膩��鰹申鐃順�渇��膩��� 35 */
+ ��膩��鰹申鐃順�渇��膩��� 36 gchar *gaim_ntlm_gen_type1(gchar *hostname, gchar *domain);
+ ��膩��鰹申鐃順�渇��膩��� 37
+ ��膩��鰹申鐃順�渇��膩��� 38 /**
+ ��膩��鰹申鐃順�渇��膩��� 39 * Parses the ntlm type 2 message
+ ��膩��鰹申鐃順�渇��膩��� 40 *
+ ��膩��鰹申鐃順�渇��膩��� 41 * @param type2 String containing the base64 encoded type2 message
+ ��膩��鰹申鐃順�渇��膩��� 42 * @return The nonce for use in message type3
+ ��膩��鰹申鐃順�渇��膩��� 43 */
+ ��膩��鰹申鐃順�渇��膩��� 44 gchar *gaim_ntlm_parse_type2(gchar *type2);
+ ��膩��鰹申鐃順�渇��膩��� 45
+ ��膩��鰹申鐃順�渇��膩��� 46 /**
+ ��膩��鰹申鐃順�渇��膩��� 47 * Generates a type3 message
+ ��膩��鰹申鐃順�渇��膩��� 48 *
+ ��膩��鰹申鐃順�渇��膩��� 49 * @param username The username
+ ��膩��鰹申鐃順�渇��膩��� 50 * @param passw The password
+ ��膩��鰹申鐃順�渇��膩��� 51 * @param hostname The hostname
+ ��膩��鰹申鐃順�渇��膩��� 52 * @param domain The domain to authenticate against
+ ��膩��鰹申鐃順�渇��膩��� 53 * @param nonce The nonce returned by gaim_ntlm_parse_type2
+ ��膩��鰹申鐃順�渇��膩��� 54 * @return A base64 encoded type3 message
+ ��膩��鰹申鐃順�渇��膩��� 55 */
+ ��膩��鰹申鐃順�渇��膩��� 56 gchar *gaim_ntlm_gen_type3(gchar *username, gchar *passw, gchar *hostname, gchar *domain, gchar *nonce);
+ ��膩��鰹申鐃順�渇��膩��� 57
+ ��膩��鰹申鐃順�渇��膩��� 58 #endif /* _GAIM_NTLM_H */