Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 2795:536bb833fdeb
[gaim-migrate @ 2808]
i hate solaris
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 26 Nov 2001 23:18:36 +0000 |
parents | 318f846120e2 |
children | 9b3c7d2a6e9a |
comparison
equal
deleted
inserted
replaced
2794:2d3f47783a22 | 2795:536bb833fdeb |
---|---|
35 #include <stdio.h> | 35 #include <stdio.h> |
36 #include <time.h> | 36 #include <time.h> |
37 #include <sys/socket.h> | 37 #include <sys/socket.h> |
38 #include <sys/stat.h> | 38 #include <sys/stat.h> |
39 #include <ctype.h> | 39 #include <ctype.h> |
40 #if HAVE_CRYPT_H | |
41 #include <crypt.h> | |
42 #endif | |
43 #include "multi.h" | 40 #include "multi.h" |
44 #include "prpl.h" | 41 #include "prpl.h" |
45 #include "gaim.h" | 42 #include "gaim.h" |
46 #include "proxy.h" | 43 #include "proxy.h" |
44 | |
45 extern char *yahoo_crypt(char *, char *); | |
47 | 46 |
48 #include "pixmaps/status-away.xpm" | 47 #include "pixmaps/status-away.xpm" |
49 #include "pixmaps/status-here.xpm" | 48 #include "pixmaps/status-here.xpm" |
50 #include "pixmaps/status-idle.xpm" | 49 #include "pixmaps/status-idle.xpm" |
51 | 50 |
780 | 779 |
781 pkt = yahoo_packet_new(YAHOO_SERVICE_LOGON, YAHOO_STATUS_AVAILABLE, 0); | 780 pkt = yahoo_packet_new(YAHOO_SERVICE_LOGON, YAHOO_STATUS_AVAILABLE, 0); |
782 | 781 |
783 yahoo_packet_hash(pkt, 0, gc->username); | 782 yahoo_packet_hash(pkt, 0, gc->username); |
784 yahoo_packet_hash(pkt, 1, gc->username); | 783 yahoo_packet_hash(pkt, 1, gc->username); |
785 yahoo_packet_hash(pkt, 6, crypt(gc->password, "$1$_2S43d5f$")); | 784 yahoo_packet_hash(pkt, 6, yahoo_crypt(gc->password, "$1$_2S43d5f$")); |
786 | 785 |
787 yahoo_send_packet(yd, pkt); | 786 yahoo_send_packet(yd, pkt); |
788 | 787 |
789 yahoo_packet_free(pkt); | 788 yahoo_packet_free(pkt); |
790 | 789 |