Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 25 of 72) sorted by relevance

123

/curl/lib/vauth/
H A Dcram.c66 unsigned char digest[MD5_DIGEST_LEN]; in Curl_auth_create_cram_md5_message() local
82 Curl_HMAC_final(ctxt, digest); in Curl_auth_create_cram_md5_message()
87 userp, digest[0], digest[1], digest[2], digest[3], digest[4], in Curl_auth_create_cram_md5_message()
88 digest[5], digest[6], digest[7], digest[8], digest[9], digest[10], in Curl_auth_create_cram_md5_message()
89 digest[11], digest[12], digest[13], digest[14], digest[15]); in Curl_auth_create_cram_md5_message()
H A Ddigest.c513 if(digest->nonce) in Curl_auth_decode_digest_http_message()
654 if(!digest->qop && (digest->algo & SESSION_ALGO)) in Curl_auth_decode_digest_http_message()
708 if(!digest->nc) in auth_create_digest_http_message()
709 digest->nc = 1; in auth_create_digest_http_message()
762 tmp = aprintf("%s:%s:%s", ha1, digest->nonce, digest->cnonce); in auth_create_digest_http_message()
790 if(digest->qop && strcasecompare(digest->qop, "auth-int")) { in auth_create_digest_http_message()
816 if(digest->qop) { in auth_create_digest_http_message()
818 digest->cnonce, digest->qop, ha2); in auth_create_digest_http_message()
849 if(digest->realm) in auth_create_digest_http_message()
886 digest->nc++; in auth_create_digest_http_message()
[all …]
H A Ddigest_sspi.c331 if(digest->input_token) { in Curl_auth_decode_digest_http_message()
367 if(!digest->input_token) in Curl_auth_decode_digest_http_message()
437 if((userp && !digest->user) || (!userp && digest->user) || in Curl_auth_create_digest_http_message()
438 (passwdp && !digest->passwd) || (!passwdp && digest->passwd) || in Curl_auth_create_digest_http_message()
439 (userp && digest->user && Curl_timestrcmp(userp, digest->user)) || in Curl_auth_create_digest_http_message()
440 (passwdp && digest->passwd && Curl_timestrcmp(passwdp, digest->passwd))) { in Curl_auth_create_digest_http_message()
449 if(digest->http_context) { in Curl_auth_create_digest_http_message()
481 if(!digest->http_context) { in Curl_auth_create_digest_http_message()
519 if(!digest->user) { in Curl_auth_create_digest_http_message()
528 if(!digest->passwd) { in Curl_auth_create_digest_http_message()
[all …]
H A Dvauth.h107 struct digestdata *digest);
115 struct digestdata *digest,
119 void Curl_auth_digest_cleanup(struct digestdata *digest);
140 void Curl_auth_gsasl_cleanup(struct gsasldata *digest);
/curl/lib/
H A Dhttp_digest.c52 struct digestdata *digest; in Curl_input_digest() local
55 digest = &data->state.proxydigest; in Curl_input_digest()
58 digest = &data->state.digest; in Curl_input_digest()
68 return Curl_auth_decode_digest_http_message(header, digest); in Curl_input_digest()
92 struct digestdata *digest; in Curl_output_digest() local
99 digest = &data->state.proxydigest; in Curl_output_digest()
107 digest = &data->state.digest; in Curl_output_digest()
124 have_chlg = !!digest->input_token; in Curl_output_digest()
126 have_chlg = !!digest->nonce; in Curl_output_digest()
162 path, digest, &response, &len); in Curl_output_digest()
[all …]
H A Dsha256.c127 static void my_sha256_final(unsigned char *digest, void *in) in my_sha256_final() argument
130 EVP_DigestFinal_ex(ctx->openssl_ctx, digest, NULL); in my_sha256_final()
151 static void my_sha256_final(unsigned char *digest, void *ctx) in my_sha256_final() argument
153 sha256_digest(ctx, SHA256_DIGEST_SIZE, digest); in my_sha256_final()
181 static void my_sha256_final(unsigned char *digest, void *ctx) in my_sha256_final() argument
184 (void) mbedtls_sha256_finish(ctx, digest); in my_sha256_final()
186 (void) mbedtls_sha256_finish_ret(ctx, digest); in my_sha256_final()
206 static void my_sha256_final(unsigned char *digest, void *ctx) in my_sha256_final() argument
208 (void) CC_SHA256_Final(digest, ctx); in my_sha256_final()
247 static void my_sha256_final(unsigned char *digest, void *in) in my_sha256_final() argument
[all …]
H A Dcurl_sha512_256.c172 Curl_sha512_256_finish(unsigned char *digest, in Curl_sha512_256_finish() argument
185 memcpy(digest, tmp_digest, CURL_SHA512_256_DIGEST_SIZE); in Curl_sha512_256_finish()
188 ret = EVP_DigestFinal_ex(*ctx, digest, NULL) ? CURLE_OK : CURLE_SSL_CIPHER; in Curl_sha512_256_finish()
259 Curl_sha512_256_finish(unsigned char *digest, in Curl_sha512_256_finish() argument
265 (size_t)CURL_SHA512_256_DIGEST_SIZE, (uint8_t *)digest); in Curl_sha512_256_finish()
708 MHDx_sha512_256_finish(unsigned char *digest, in MHDx_sha512_256_finish() argument
772 MHDX_PUT_64BIT_BE((digest + 0 * SHA512_256_BYTES_IN_WORD), ctx->H[0]); in MHDx_sha512_256_finish()
773 MHDX_PUT_64BIT_BE((digest + 1 * SHA512_256_BYTES_IN_WORD), ctx->H[1]); in MHDx_sha512_256_finish()
774 MHDX_PUT_64BIT_BE((digest + 2 * SHA512_256_BYTES_IN_WORD), ctx->H[2]); in MHDx_sha512_256_finish()
775 MHDX_PUT_64BIT_BE((digest + 3 * SHA512_256_BYTES_IN_WORD), ctx->H[3]); in MHDx_sha512_256_finish()
H A Dmd5.c104 static void my_md5_final(unsigned char *digest, void *ctx) in my_md5_final() argument
106 md5_digest(ctx, 16, digest); in my_md5_final()
128 static void my_md5_final(unsigned char *digest, void *ctx) in my_md5_final() argument
130 (void)MD5_Final(digest, ctx); in my_md5_final()
162 static void my_md5_final(unsigned char *digest, void *ctx) in my_md5_final() argument
165 (void) mbedtls_md5_finish(ctx, digest); in my_md5_final()
167 (void) mbedtls_md5_finish_ret(ctx, digest); in my_md5_final()
196 static void my_md5_final(unsigned char *digest, void *ctx) in my_md5_final() argument
198 CC_MD5_Final(digest, ctx); in my_md5_final()
233 static void my_md5_final(unsigned char *digest, void *in) in my_md5_final() argument
[all …]
/curl/tests/data/
H A Dtest16754 ….from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user…
61 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
62 Host: data.from.server.requiring.digest.hohoho.com
68 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
69 Host: data.from.server.requiring.digest.hohoho.com
71 Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", re…
H A Dtest16868 …erver.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:ba…
75 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
76 Host: data.from.server.requiring.digest.hohoho.com
81 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
82 Host: data.from.server.requiring.digest.hohoho.com
88 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
89 Host: data.from.server.requiring.digest.hohoho.com
91 Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/%TESTNUMBER", r…
H A Dtest33570 http://digest:alot@data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://foo:bar@…
77 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
78 Host: data.from.server.requiring.digest.hohoho.com
83 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
84 Host: data.from.server.requiring.digest.hohoho.com
90 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
91 Host: data.from.server.requiring.digest.hohoho.com
93 Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/%TESTNUMBER", r…
H A Dtest16989 …r.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:t…
96 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
97 Host: data.from.server.requiring.digest.hohoho.com
103 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
104 Host: data.from.server.requiring.digest.hohoho.com
110 GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
111 Host: data.from.server.requiring.digest.hohoho.com
112 Authorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/%TESTNUMBER", res…
H A Dtest17732 HTTP POST --digest to server doing a 302-location response
35 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
H A Dtest207651 HTTP with digest auth and URI contains query
54 "http://%HOSTIP:%HTTPPORT/%TESTNUMBER?query" -u testuser:testpass --digest
H A Dtest24557 HTTP POST --digest
60 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
H A Dtest128669 HTTP GET --digest increasing nonce-count
74 -u auser:apasswd --location --digest http://%HOSTIP:%HTTPPORT/%TESTNUMBER
82 # Since regular and SSPI digest auth header fields may not have the same order
H A Dtest17556 HTTP POST --digest to server not requiring any auth at all
59 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
H A Dtest24667 HTTP POST --digest with server doing a 100 before 401 response
70 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
H A Dtest128457 HTTP POST --digest with user-specified Content-Length header
63 -H "Content-Length: 11" -u auser:apasswd --digest -d "junkelijunk" http://%HOSTIP:%HTTPPORT/%TESTNU…
H A Dtest206757 HTTP POST --digest with SHA256 and user-specified Content-Length header
63 -H "Content-Length: 11" -u auser:apasswd --digest -d "junkelijunk" http://%HOSTIP:%HTTPPORT/%TESTNU…
H A Dtest206858 HTTP POST --digest with SHA-512-256, userhash=false and user-specified Content-Length header
64 -H "Content-Length: 11" -u auser:apasswd --digest -d "junkelijunk" http://%HOSTIP:%HTTPPORT/%TESTNU…
/curl/docs/cmdline-opts/
H A Dproxy-digest.md4 Long: proxy-digest
14 - --proxy-digest --proxy-user user:passwd -x proxy $URL
17 # `--proxy-digest`
20 --digest for enabling HTTP Digest with a remote host.
H A Ddigest.md4 Long: digest
13 - proxy-digest
16 - -u name:password --digest $URL
19 # `--digest`
H A Danyauth.md13 - digest
24 method, which you can do with --basic, --digest, --ntlm, and --negotiate.
H A Dproxy-anyauth.md12 - proxy-digest

Completed in 32 milliseconds

123