comparison libpurple/protocols/jabber/auth.c @ 21921:cf17e6871edc

Daniel pointed out that this should be digest, not &digest, because auth_hmac_md5 takes a guchar* rather than a guchar**
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 22 Dec 2007 15:45:13 +0000
parents 2e899bbbf14c
children d7f1231cc21a
comparison
equal deleted inserted replaced
21920:76d025660d9e 21921:cf17e6871edc
689 guchar digest[16]; 689 guchar digest[16];
690 char h[17], *p; 690 char h[17], *p;
691 int i; 691 int i;
692 692
693 challenge = xmlnode_get_attrib(xmlnode_get_child(query, "crammd5"), "challenge"); 693 challenge = xmlnode_get_attrib(xmlnode_get_child(query, "crammd5"), "challenge");
694 auth_hmac_md5(challenge, strlen(challenge), pw, strlen(pw), &digest); 694 auth_hmac_md5(challenge, strlen(challenge), pw, strlen(pw), digest);
695 695
696 /* Create the response query */ 696 /* Create the response query */
697 iq = jabber_iq_new_query(js, JABBER_IQ_SET, "jabber:iq:auth"); 697 iq = jabber_iq_new_query(js, JABBER_IQ_SET, "jabber:iq:auth");
698 query = xmlnode_get_child(iq->node, "query"); 698 query = xmlnode_get_child(iq->node, "query");
699 699