Mercurial > pidgin.yaz
diff plugins/ciphertest.c @ 12389:e024601d45c7
[gaim-migrate @ 14695]
How about we allow callers to pass in the entity body, rather than forcing them to hash it themselves?
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 07 Dec 2005 11:01:49 +0000 |
parents | 4e045668b9d0 |
children | 5f8cfa774141 |
line wrap: on
line diff
--- a/plugins/ciphertest.c Wed Dec 07 10:38:52 2005 +0000 +++ b/plugins/ciphertest.c Wed Dec 07 11:01:49 2005 +0000 @@ -184,12 +184,11 @@ const gchar *realm = "testrealm@host.com"; const gchar *password = "Circle Of Life"; const gchar *algorithm = "md5"; - const gchar nonce_count[] = "00000001"; + const gchar *nonce_count = "00000001"; const gchar *method = "GET"; const gchar *qop = "auth"; const gchar *digest_uri = "/dir/index.html"; - const gchar *hashed_entity = ""; - size_t hashed_entity_len = 0; + const gchar *entity = NULL; gchar *session_key; @@ -212,9 +211,8 @@ gaim_debug_info("cipher-test", "\tsession_key: Wanted: %s\n", "939e7578ed9e3c518a452acee763bce9"); response = gaim_cipher_http_digest_calculate_response( - algorithm, method, digest_uri, qop, - hashed_entity, hashed_entity_len, nonce, - nonce_count, client_nonce, session_key); + algorithm, method, digest_uri, qop, entity, + nonce, nonce_count, client_nonce, session_key); g_free(session_key);