00001
00002
00003
00004
00005 #ifndef __HTTP_DIGEST_H
00006 #define __HTTP_DIGEST_H
00007
00008 typedef enum {
00009 CURLDIGEST_NONE,
00010 CURLDIGEST_BAD,
00011 CURLDIGEST_BADALGO,
00012 CURLDIGEST_NOMEM,
00013 CURLDIGEST_FINE,
00014
00015 CURLDIGEST_LAST
00016 } CURLdigest;
00017
00018 enum {
00019 CURLDIGESTALGO_MD5,
00020 CURLDIGESTALGO_MD5SESS
00021 };
00022
00023 CURLdigest Curl_input_digest(struct connectdata *conn,
00024 bool proxy, char *header);
00025
00026 CURLcode Curl_output_digest(struct connectdata *conn,
00027 bool proxy,
00028 unsigned char *request,
00029 unsigned char *uripath);
00030 void Curl_digest_cleanup_one(struct digestdata *dig);
00031
00032 #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
00033 void Curl_digest_cleanup(struct SessionHandle *data);
00034 #else
00035 #define Curl_digest_cleanup(x) do {} while(0)
00036 #endif
00037
00038 #endif