Changeset 77bfd07 for protocols/jabber
- Timestamp:
- 2007-11-23T23:07:44Z (17 years ago)
- Branches:
- master
- Children:
- 3a80471
- Parents:
- df6d1da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
rdf6d1da r77bfd07 23 23 24 24 #include "jabber.h" 25 #include "sha1.h" 25 26 26 27 static xt_status jabber_parse_roster( struct im_connection *ic, struct xt_node *node, struct xt_node *orig ); … … 233 234 /* We can do digest authentication, it seems, and of 234 235 course we prefer that. */ 235 SHA_CTXsha;236 sha1_state_t sha; 236 237 char hash_hex[41]; 237 238 unsigned char hash[20]; 238 239 int i; 239 240 240 sha Init( &sha );241 sha Update( &sha, (unsigned char*) s, strlen( s ) );242 sha Update( &sha, (unsigned char*) ic->acc->pass, strlen( ic->acc->pass ) );243 sha Final( &sha, hash );241 sha1_init( &sha ); 242 sha1_append( &sha, (unsigned char*) s, strlen( s ) ); 243 sha1_append( &sha, (unsigned char*) ic->acc->pass, strlen( ic->acc->pass ) ); 244 sha1_finish( &sha, hash ); 244 245 245 246 for( i = 0; i < 20; i ++ )
Note: See TracChangeset
for help on using the changeset viewer.