Home
last modified time | relevance | path

Searched refs:userpass (Results 1 – 23 of 23) sorted by relevance

/external/libcups/cups/
Dauth.c129 http->digest_tries, http->userpass)); in cupsDoAuthentication()
218 …if ((http->digest_tries > 1 || !http->userpass[0]) && (!_cups_strcasecmp(scheme, "Basic") || (!_cu… in cupsDoAuthentication()
238 http->userpass[0] = '\0'; in cupsDoAuthentication()
247 snprintf(http->userpass, sizeof(http->userpass), "%s:%s", cupsUser(), password); in cupsDoAuthentication()
273 httpEncode64_2(encode, sizeof(encode), http->userpass, (int)strlen(http->userpass)); in cupsDoAuthentication()
Ddest-localization.c333 userpass[256], /* Username/password info */ in cups_create_localizations() local
366 scheme, sizeof(scheme), userpass, sizeof(userpass), in cups_create_localizations()
Dtlscheck.c48 userpass[256], /* Username/password */ in main() local
136 …parateURI(HTTP_URI_CODING_ALL, argv[i], scheme, sizeof(scheme), userpass, sizeof(userpass), host, … in main()
Ddest.c598 userpass[256], /* Username and password (unused) */ in cupsConnectDest() local
675 userpass, sizeof(userpass), hostname, sizeof(hostname), in cupsConnectDest()
1110 userpass[256], /* Username and password (unused) */ in _cupsGetDestResource() local
1193 …tpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostna… in _cupsGetDestResource()
1224 userpass[256], /* Username:password from URI */ in cupsGetDestWithURI() local
1242 …if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), … in cupsGetDestWithURI()
3545 userpass[32], /* Username:password */ in cups_enum_dests() local
3552 …ateURI(HTTP_URI_CODING_ALL, device_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), servic… in cups_enum_dests()
Dhttp-support.c1339 strlcpy(username, http->userpass, sizeof(username)); in _httpSetDigestAuthString()
1723 userpass[256], in _httpResolveURI() local
1740 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1745 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
Dtestclient.c91 userpass[256], /* Username:password */ in main() local
223 …arateURI(HTTP_URI_CODING_ALL, data.uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostna… in main()
Dhttp-private.h248 userpass[HTTP_MAX_VALUE]; member
Dtestppd.c1066 userpass[256], /* Username:password */ in main() local
1078 …parateURI(HTTP_URI_CODING_ALL, argv[1], scheme, sizeof(scheme), userpass, sizeof(userpass), host, … in main()
Dipp.c4719 userpass[256], /* Username/password from URI */ in ippValidateAttribute() local
5041 …ODING_ALL, attr->values[i].string.text, scheme, sizeof(scheme), userpass, sizeof(userpass), hostna… in ippValidateAttribute()
Dppd-cache.c4916 userpass[256], /* URL username:password */ in cups_get_url() local
4926 …if (httpSeparateURI(HTTP_URI_CODING_ALL, url, scheme, sizeof(scheme), userpass, sizeof(userpass), … in cups_get_url()
/external/libcups/cgi-bin/
Dipp-var.c800 userpass[HTTP_MAX_URI], in cgiRewriteURL() local
846 httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, in cgiRewriteURL()
847 sizeof(userpass), hostname, sizeof(hostname), &port, in cgiRewriteURL()
910 if (userpass[0]) in cgiRewriteURL()
911 …snprintf(url, (size_t)urlsize, "%s://%s@%s:%d%s", ishttps ? "https" : "http", userpass, hostname, … in cgiRewriteURL()
1079 userpass[256], /* Username/password portion of URI */ in cgiSetIPPObjectVars() local
1087 scheme, sizeof(scheme), userpass, sizeof(userpass), in cgiSetIPPObjectVars()
1106 userpass, host, port, resource); in cgiSetIPPObjectVars()
Dadmin.c3747 userpass[256], /* Username:password */ in get_printer_ppd() local
3777 …if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), … in get_printer_ppd()
/external/cronet/net/test/embedded_test_server/
Ddefault_handlers.cc457 std::string userpass; in HandleAuthBasic() local
468 base::Base64Decode(b64str, &userpass); in HandleAuthBasic()
469 size_t delimiter = userpass.find(":"); in HandleAuthBasic()
471 username = userpass.substr(0, delimiter); in HandleAuthBasic()
472 password = userpass.substr(delimiter + 1); in HandleAuthBasic()
499 userpass.c_str(), password.c_str(), request.all_headers.c_str())); in HandleAuthBasic()
/external/libcups/backend/
Dsnmp.c1096 userpass[256], /* Username:password in URI */ in read_snmp_response() local
1113 userpass, sizeof(userpass), in read_snmp_response()
/external/libcups/systemv/
Dlpadmin.c1177 userpass[256], /* Username:password */ in get_printer_ppd() local
1207 …if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), … in get_printer_ppd()
/external/libcups/tools/
Dipptool.c2070 userpass[256], /* Username/password */ in get_string() local
2080 …SeparateURI(HTTP_URI_CODING_ALL, value, scheme, sizeof(scheme), userpass, sizeof(userpass), buffer… in get_string()
2091 …SeparateURI(HTTP_URI_CODING_ALL, value, scheme, sizeof(scheme), userpass, sizeof(userpass), hostna… in get_string()
2098 …if (httpSeparateURI(HTTP_URI_CODING_ALL, value, buffer, (int)bufsize, userpass, sizeof(userpass), … in get_string()
2105 …SeparateURI(HTTP_URI_CODING_ALL, value, scheme, sizeof(scheme), userpass, sizeof(userpass), hostna… in get_string()
2124 …httpAssembleURI(HTTP_URI_CODING_ALL, buffer, (int)bufsize, scheme, userpass, hostname, port, resou… in get_string()
Dippeveprinter.c2459 userpass[256], /* Username and password info */ in finish_document_uri() local
2505 scheme, sizeof(scheme), userpass, in finish_document_uri()
2506 sizeof(userpass), hostname, sizeof(hostname), in finish_document_uri()
5625 userpass[128], /* Username:password */ in process_http() local
5704 userpass, sizeof(userpass), in process_http()
6069 userpass[32], /* Username/password in URI */ in process_ipp() local
6078 userpass, sizeof(userpass), in process_ipp()
6384 userpass[256], /* username:password (unused) */ in process_job() local
6390 …I_CODING_ALL, job->printer->device_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), host, … in process_job()
/external/libcups/scheduler/
Dipp.c2000 userpass[HTTP_MAX_URI], /* Username portion of URI */ in add_job_subscriptions() local
2009 scheme, sizeof(scheme), userpass, sizeof(userpass), in add_job_subscriptions()
3127 userpass[HTTP_MAX_URI], /* Username portion of URI */ in cancel_all_jobs() local
3222 scheme, sizeof(scheme), userpass, sizeof(userpass), in cancel_all_jobs()
5235 userpass[256], /* User:pass */ in create_local_bg_thread() local
5259 …TP_URI_CODING_ALL, printer->device_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), host, … in create_local_bg_thread()
5572 userpass[HTTP_MAX_URI], in create_subscriptions() local
5613 sizeof(scheme), userpass, sizeof(userpass), host, in create_subscriptions()
5732 scheme, sizeof(scheme), userpass, sizeof(userpass), in create_subscriptions()
5846 …if (httpSeparateURI(HTTP_URI_CODING_ALL, temp, scheme, sizeof(scheme), userpass, sizeof(userpass),… in create_subscriptions()
Dcups-driverd.cxx320 userpass[256], // User/password info (unused) in cat_drv() local
329 userpass, sizeof(userpass), host, sizeof(host), &port, in cat_drv()
Dclient.c695 userpass[HTTP_MAX_URI], /* Username:password */ in cupsdReadClient() local
706 userpass, sizeof(userpass), in cupsdReadClient()
/external/python/cpython3/Lib/test/
Dtest_urllib.py580 userpass = "a b:c d"
581 url = "http://{}@python.org/".format(userpass)
584 b64encode(userpass.encode("ASCII")).decode("ASCII"))
Dtest_urllib2.py1648 userpass = bytes('%s:%s' % (user, password), "ascii")
1650 base64.encodebytes(userpass).strip().decode())
/external/python/cpython2/Lib/test/
Dtest_urllib2.py1251 userpass = '%s:%s' % (user, password)
1252 auth_hdr_value = 'Basic '+base64.encodestring(userpass).strip()