diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-15 08:51:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-15 08:51:43 +0000 |
commit | d11d4a6de1a3ec00021bc7772a64821032b33250 (patch) | |
tree | da6aa5d36ea6bcad426ab60e8c94648c33ec84c9 /protocols/Gadu-Gadu/src/libgadu/events.c | |
parent | c68165979e5741aa201a9ac951e37fee4ca362cc (diff) |
- custom sha1 engine removed from GG;
- minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5700 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/libgadu/events.c')
-rw-r--r-- | protocols/Gadu-Gadu/src/libgadu/events.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/libgadu/events.c b/protocols/Gadu-Gadu/src/libgadu/events.c index a730e9d620..af421f93ff 100644 --- a/protocols/Gadu-Gadu/src/libgadu/events.c +++ b/protocols/Gadu-Gadu/src/libgadu/events.c @@ -2617,12 +2617,8 @@ struct gg_event *gg_watch_fd(struct gg_session *sess) case GG_LOGIN_HASH_SHA1: { char tmp[41]; - int i; - gg_login_hash_sha1((char*) password, w->key, login_hash); - for (i = 0; i < 40; i += 2) - snprintf(tmp + i, sizeof(tmp) - i, "%02x", login_hash[i / 2]); - + bin2hex(login_hash, 20, tmp); gg_debug_session(sess, GG_DEBUG_DUMP, "// gg_watch_fd() challenge %.4x --> SHA1 hash: %s\n", w->key, tmp); break; |