Mercurial > pidgin
comparison src/cipher.h @ 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 | 89ceef5203ac |
comparison
equal
deleted
inserted
replaced
| 12388:4e045668b9d0 | 12389:e024601d45c7 |
|---|---|
| 417 * | 417 * |
| 418 * @param algorithm The hash algorithm to use | 418 * @param algorithm The hash algorithm to use |
| 419 * @param method The HTTP method in use | 419 * @param method The HTTP method in use |
| 420 * @param digest_uri The URI from the initial request | 420 * @param digest_uri The URI from the initial request |
| 421 * @param qop The "quality of protection" | 421 * @param qop The "quality of protection" |
| 422 * @param hashed_entity The hashed entity body | 422 * @param entity The entity body |
| 423 * @param hashed_entity_len The length of the data in @a hashed_entity | |
| 424 * @param nonce The nonce provided by the server | 423 * @param nonce The nonce provided by the server |
| 425 * @param nonce_count The nonce count | 424 * @param nonce_count The nonce count |
| 426 * @param client_nonce The nonce provided by the client | 425 * @param client_nonce The nonce provided by the client |
| 427 * @param session_key The session key from gaim_cipher_http_digest_calculate_session_key() | 426 * @param session_key The session key from gaim_cipher_http_digest_calculate_session_key() |
| 428 * | 427 * |
| 429 * @return The hashed response, or @c NULL if an error occurred. | 428 * @return The hashed response, or @c NULL if an error occurred. |
| 430 */ | 429 */ |
| 431 gchar *gaim_cipher_http_digest_calculate_response( | 430 gchar *gaim_cipher_http_digest_calculate_response( |
| 432 const gchar *algorithm, const gchar *method, | 431 const gchar *algorithm, const gchar *method, |
| 433 const gchar *digest_uri, const gchar *qop, | 432 const gchar *digest_uri, const gchar *qop, |
| 434 const gchar *hashed_entity, size_t hashed_entity_len, | 433 const gchar *entity, const gchar *nonce, |
| 435 const gchar *nonce, const gchar *nonce_count, | 434 const gchar *nonce_count, const gchar *client_nonce, |
| 436 const gchar *client_nonce, const gchar *session_key); | 435 const gchar *session_key); |
| 437 | 436 |
| 438 /*@}*/ | 437 /*@}*/ |
| 439 | 438 |
| 440 #ifdef __cplusplus | 439 #ifdef __cplusplus |
| 441 } | 440 } |
