comparison libpurple/protocols/msn/msnutils.h @ 31292:47b6eda87723

propagate from branch 'im.pidgin.pidgin' (head 07d0765c444a097af45c2650f54323afb900a07b) to branch 'im.pidgin.soc.2010.msn-tlc' (head f3998422a4724ab424e4e2328f58fc0504856557)
author masca@cpw.pidgin.im
date Mon, 19 Jul 2010 21:11:32 +0000
parents 0201164946a3
children dc996aa83f49
comparison
equal deleted inserted replaced
30698:e874875a74a7 31292:47b6eda87723
52 * 52 *
53 * @return The new message. 53 * @return The new message.
54 */ 54 */
55 void msn_import_html(const char *html, char **attributes, char **message); 55 void msn_import_html(const char *html, char **attributes, char **message);
56 56
57 /**
58 * Parses a socket string.
59 *
60 * @param str A host:port string.
61 * @param ret_host Return string value of the host.
62 * @param ret_port Return integer value of the port.
63 */
57 void msn_parse_socket(const char *str, char **ret_host, int *ret_port); 64 void msn_parse_socket(const char *str, char **ret_host, int *ret_port);
65
66 /**
67 * Verify if the email is a vaild passport.
68 *
69 * @param passport The email
70 *
71 * @return True if it is a valid passport, else FALSE
72 */
73 gboolean msn_email_is_valid(const char *passport);
74
75 /**
76 * Handle MSN Challenge Computation
77 * This algorithm references
78 * http://imfreedom.org/wiki/index.php/MSN:NS/Challenges
79 *
80 * @param input Challenge input.
81 * @param output Callenge output.
82 */
58 void msn_handle_chl(char *input, char *output); 83 void msn_handle_chl(char *input, char *output);
59 84
60 #endif /* MSN_UTILS_H */ 85 #endif /* MSN_UTILS_H */