Initial Digest support. At least partly working.
[platform/upstream/curl.git] / lib / urldata.h
index efd73b2..31a7553 100644 (file)
@@ -152,6 +152,13 @@ struct curl_ssl_session {
   struct ssl_config_data ssl_config; /* setup for this session */
 };
 
+/* Struct used for Digest challenge-response authentication */
+struct digestdata {
+  char *nonce;
+  char *cnonce;
+  char *realm;
+  int algo;
+};
 
 /****************************************************************************
  * HTTP unique setup
@@ -327,7 +334,6 @@ struct Curl_transfer_keeper {
                        and we're uploading the last chunk */
 };
 
-
 /*
  * The connectdata struct contains all fields and variables that should be
  * unique for an entire connection.
@@ -619,6 +625,8 @@ struct UrlState {
 #endif
   bool allow_port; /* Is set.use_port allowed to take effect or not. This
                       is always set TRUE when curl_easy_perform() is called. */
+
+  struct digestdata digest;
 };