Mercurial > pidgin
diff src/protocols/msn/msn-utils.c @ 19824:a8d00b8dae40
[gaim-migrate @ 17040]
send OIM middle version.
Now can send to server,
but need to encode the friend name to MIME format
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
| author | Ma Yuan <mayuan2006@gmail.com> |
|---|---|
| date | Sat, 26 Aug 2006 08:07:08 +0000 |
| parents | b22d13f55232 |
| children | e45fae8209c3 |
line wrap: on
line diff
--- a/src/protocols/msn/msn-utils.c Sat Aug 26 03:25:00 2006 +0000 +++ b/src/protocols/msn/msn-utils.c Sat Aug 26 08:07:08 2006 +0000 @@ -26,6 +26,23 @@ #include "time.h" //#include <openssl/md5.h> +/************************************************************************** + * Util + **************************************************************************/ +char * +rand_guid() +{ + return g_strdup_printf("%4X%4X-%4X-%4X-%4X-%4X%4X%4X", + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111, + rand() % 0xAAFF + 0x1111); +} + void msn_parse_format(const char *mime, char **pre_ret, char **post_ret) {
