Home
last modified time | relevance | path

Searched refs:http_t (Results 1 – 25 of 37) sorted by relevance

12

/external/libcups/cups/
Dhttp.h441 typedef struct _http_s http_t; /**** HTTP connection type ****/ typedef
449 typedef int (*http_timeout_cb_t)(http_t *http, void *user_data);
458 extern void httpBlocking(http_t *http, int b);
459 extern int httpCheck(http_t *http);
460 extern void httpClearFields(http_t *http);
461 extern void httpClose(http_t *http);
462 extern http_t *httpConnect(const char *host, int port)
464 extern http_t *httpConnectEncrypt(const char *host, int port,
467 extern int httpDelete(http_t *http, const char *uri);
468 extern int httpEncryption(http_t *http, http_encryption_t e);
[all …]
Dcups.h67 # define CUPS_HTTP_DEFAULT (http_t *)0
299 typedef int (*cups_client_cert_cb_t)(http_t *http, void *tls,
320 typedef const char *(*cups_password_cb2_t)(const char *prompt, http_t *http,
327 typedef int (*cups_server_cert_cb_t)(http_t *http, void *tls,
338 extern ipp_t *cupsDoFileRequest(http_t *http, ipp_t *request,
341 extern ipp_t *cupsDoRequest(http_t *http, ipp_t *request,
388 extern int cupsDoAuthentication(http_t *http, const char *method,
391 extern http_status_t cupsGetFile(http_t *http, const char *resource,
393 extern http_status_t cupsGetFd(http_t *http, const char *resource, int fd);
394 extern http_status_t cupsPutFile(http_t *http, const char *resource,
[all …]
Dhttp.c45 static void http_add_field(http_t *http, http_field_t field, const char *value, int append);
47 static void http_content_coding_finish(http_t *http);
48 static void http_content_coding_start(http_t *http,
51 static http_t *http_create(const char *host, int port,
59 static ssize_t http_read(http_t *http, char *buffer, size_t length);
60 static ssize_t http_read_buffered(http_t *http, char *buffer, size_t length);
61 static ssize_t http_read_chunk(http_t *http, char *buffer, size_t length);
62 static int http_send(http_t *http, http_state_t request,
64 static ssize_t http_write(http_t *http, const char *buffer,
66 static ssize_t http_write_chunk(http_t *http, const char *buffer,
[all …]
Dhttp-private.h442 extern void _httpDisconnect(http_t *http);
450 extern int _httpSetDigestAuthString(http_t *http, const char *nonce, const char *method, const cha…
453 extern size_t _httpTLSPending(http_t *http);
454 extern int _httpTLSRead(http_t *http, char *buf, int len);
455 extern int _httpTLSSetCredentials(http_t *http);
457 extern int _httpTLSStart(http_t *http);
458 extern void _httpTLSStop(http_t *http);
459 extern int _httpTLSWrite(http_t *http, const char *buf, int len);
460 extern int _httpUpdate(http_t *http, http_status_t *status);
461 extern int _httpWait(http_t *http, int msec, int usessl);
Dadminutil.h69 extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest,
73 extern int cupsAdminGetServerSettings(http_t *http,
77 extern int cupsAdminSetServerSettings(http_t *http,
82 extern ipp_status_t cupsGetDevices(http_t *http, int timeout,
Dtls-boringssl.c222 return (send(((http_t *)h->ptr)->fd, str, strlen(str), 0)); in http_bio_puts()
235 http_t *http; /* HTTP connection */ in http_bio_read()
238 http = (http_t *)h->ptr; in http_bio_read()
270 return (send(((http_t *)h->ptr)->fd, buf, num, 0)); in http_bio_write()
290 _httpTLSPending(http_t *http) /* I - HTTP connection */ in _httpTLSPending()
301 _httpTLSRead(http_t *http, /* I - Connection to server */ in _httpTLSRead()
327 _httpTLSStart(http_t *http) /* I - Connection to server */ in _httpTLSStart()
465 _httpTLSStop(http_t *http) /* I - Connection to server */ in _httpTLSStop()
496 _httpTLSWrite(http_t *http, /* I - Connection to server */ in _httpTLSWrite()
Dtestdest.c29 static void localize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, cons…
30 static void print_file(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, …
31 static void show_conflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, c…
32 static void show_default(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);
33 static void show_media(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, const …
34 static void show_supported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option…
46 http_t *http; /* Connection to destination */ in main()
245 localize(http_t *http, /* I - Connection to destination */ in localize()
381 print_file(http_t *http, /* I - Connection to destination */ in print_file()
450 http_t *http, /* I - Connection to destination */ in show_conflicts()
[all …]
Dcups-private.h131 http_t *http; /* Current server connection */
238 extern http_t *_cupsConnect(void);
244 extern int _cupsGetDests(http_t *http, ipp_op_t op,
260 extern int _cupsSetNegotiateAuthString(http_t *http,
Dppd-util.c35 static int cups_get_printer_uri(http_t *http, const char *name,
87 cupsGetPPD2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetPPD2()
128 cupsGetPPD3(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ in cupsGetPPD3()
137 http_t *http2; /* Alternate HTTP connection */ in cupsGetPPD3()
454 cupsGetServerPPD(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetServerPPD()
522 http_t *http, /* I - Connection to server */ in cups_get_printer_uri()
Ddest-job.c35 cupsCancelDestJob(http_t *http, /* I - Connection to destination */ in cupsCancelDestJob()
74 http_t *http, /* I - Connection to destination */ in cupsCloseDestJob()
165 http_t *http, /* I - Connection to destination */ in cupsCreateDestJob()
262 http_t *http, /* I - Connection to destination */ in cupsFinishDestDocument()
314 http_t *http, /* I - Connection to destination */ in cupsStartDestDocument()
Dutil.c67 cupsCancelJob2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsCancelJob2()
156 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsCreateJob()
229 cupsFinishDocument(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsFinishDocument()
327 cupsGetDefault2(http_t *http) /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetDefault2()
420 cupsGetJobs2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetJobs2()
728 http_t *http, /* I - Connection to server */ in cupsPrintFile2()
778 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsPrintFiles2()
908 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsStartDocument()
Drequest.c45 cupsDoFileRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsDoFileRequest()
101 cupsDoIORequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsDoIORequest()
290 cupsDoRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsDoRequest()
312 cupsGetResponse(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetResponse()
536 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsReadResponseData()
585 cupsSendRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsSendRequest()
905 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsWriteRequestData()
988 http_t * /* O - HTTP connection */
Ddest-localization.c26 static void cups_create_localizations(http_t *http, cups_dinfo_t *dinfo);
44 http_t *http, /* I - Connection to destination */ in cupsLocalizeDestMedia()
224 http_t *http, /* I - Connection to destination */ in cupsLocalizeDestOption()
265 http_t *http, /* I - Connection to destination */ in cupsLocalizeDestValue()
320 http_t *http, /* I - Connection to destination */ in cups_create_localizations()
323 http_t *http2; /* Connection for strings file */ in cups_create_localizations()
Dgetputfile.c39 cupsGetFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetFd()
224 cupsGetFile(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsGetFile()
292 cupsPutFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsPutFd()
522 cupsPutFile(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsPutFile()
Ddest-options.c39 static void cups_create_cached(http_t *http, cups_dinfo_t *dinfo,
46 static int cups_get_media_db(http_t *http, cups_dinfo_t *dinfo,
58 static void cups_update_ready(http_t *http, cups_dinfo_t *dinfo);
72 http_t *http, /* I - Connection to destination */ in cupsCheckDestSupported()
279 http_t *http, /* I - Connection to destination */ in cupsCopyDestConflicts()
571 http_t *http, /* I - Connection to destination */ in cupsCopyDestInfo()
704 http_t *http, /* I - Connection to destination */ in cupsFindDestDefault()
752 http_t *http, /* I - Connection to destination */ in cupsFindDestReady()
802 http_t *http, /* I - Connection to destination */ in cupsFindDestSupported()
890 http_t *http, /* I - Connection to destination */ in cupsGetDestMediaByIndex()
[all …]
Dcupspm.md22 `http_t`. The `CUPS_HTTP_DEFAULT` constant can be used when you want to talk to
316 cupsCopyDestInfo(http_t *http, cups_dest_t *dest);
334 cupsCheckDestSupported(http_t *http, cups_dest_t *dest,
383 cupsFindDestSupported(http_t *http, cups_dest_t *dest,
430 cupsFindDestDefault(http_t *http, cups_dest_t *dest,
475 cupsFindDestReady(http_t *http, cups_dest_t *dest,
519 cupsGetDestMediaByName(http_t *http, cups_dest_t *dest,
525 cupsGetDestMediaBySize(http_t *http, cups_dest_t *dest,
567 cupsGetDestMediaByIndex(http_t *http, cups_dest_t *dest,
572 cupsGetDestMediaCount(http_t *http, cups_dest_t *dest,
[all …]
Dtls-gnutls.c301 http_t *http, /* I - Connection to server */ in httpCopyCredentials()
1088 http_t *http; /* HTTP connection */ in http_gnutls_read()
1094 http = (http_t *)ptr; in http_gnutls_read()
1133 bytes = send(((http_t *)ptr)->fd, data, length, 0); in http_gnutls_write()
1160 _httpTLSPending(http_t *http) /* I - HTTP connection */ in _httpTLSPending()
1171 _httpTLSRead(http_t *http, /* I - Connection to server */ in _httpTLSRead()
1213 _httpTLSSetCredentials(http_t *http) /* I - Connection to server */ in _httpTLSSetCredentials()
1244 _httpTLSStart(http_t *http) /* I - Connection to server */ in _httpTLSStart()
1648 _httpTLSStop(http_t *http) /* I - Connection to server */ in _httpTLSStop()
1674 _httpTLSWrite(http_t *http, /* I - Connection to server */ in _httpTLSWrite()
Dtls-darwin.c73 static int http_cdsa_set_credentials(http_t *http);
433 http_t *http, /* I - Connection to server */ in httpCopyCredentials()
1075 _httpTLSPending(http_t *http) /* I - HTTP connection */ in _httpTLSPending()
1092 _httpTLSRead(http_t *http, /* I - HTTP connection */ in _httpTLSRead()
1159 _httpTLSStart(http_t *http) /* I - HTTP connection */ in _httpTLSStart()
1727 _httpTLSStop(http_t *http) /* I - HTTP connection */ in _httpTLSStop()
1747 _httpTLSWrite(http_t *http, /* I - HTTP connection */ in _httpTLSWrite()
2120 http_t *http; /* HTTP connection */ in http_cdsa_read()
2123 http = (http_t *)connection; in http_cdsa_read()
2177 http_cdsa_set_credentials(http_t *http) /* I - HTTP connection */ in http_cdsa_set_credentials()
[all …]
Dauth.c92 static gss_name_t cups_gss_getname(http_t *http, const char *service_name);
100 static int cups_local_auth(http_t *http);
114 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ in cupsDoAuthentication()
303 http_t *http, /* I - Connection to server */ in _cupsSetNegotiateAuthString()
767 http_t *http, /* I - Connection to server */ in cups_gss_getname()
902 cups_local_auth(http_t *http) /* I - HTTP connection to server */ in cups_local_auth()
Dtls-sspi.c65 static int http_sspi_client(http_t *http, const char *hostname);
67 static BOOL http_sspi_find_credentials(http_t *http, const LPWSTR containerName, const char *common…
70 static int http_sspi_server(http_t *http, const char *hostname);
144 http_t *http, /* I - Connection to server */ in httpCopyCredentials()
689 _httpTLSPending(http_t *http) /* I - HTTP connection */ in _httpTLSPending()
703 _httpTLSRead(http_t *http, /* I - HTTP connection */ in _httpTLSRead()
931 _httpTLSStart(http_t *http) /* I - HTTP connection */ in _httpTLSStart()
1021 _httpTLSStop(http_t *http) /* I - HTTP connection */ in _httpTLSStop()
1123 _httpTLSWrite(http_t *http, /* I - HTTP connection */ in _httpTLSWrite()
1228 http_setup_ssl(http_t *http) /* I - Connection to server */
[all …]
Dppd.h367 extern const char *cupsGetPPD2(http_t *http, const char *name) _PPD_DEPRECATED;
368 extern http_status_t cupsGetPPD3(http_t *http, const char *name, time_t *modtime, char *buffer, siz…
369 extern char *cupsGetServerPPD(http_t *http, const char *name) _PPD_DEPRECATED;
Dtls.c53 httpCopyCredentials(http_t *http, cups_array_t **credentials) in httpCopyCredentials()
Dtestadmin.c42 http_t *http; /* Connection to server */ in main()
Dtestcreds.c31 http_t *http; /* HTTP connection */ in main()
Dhttp-addr.c661 httpGetAddress(http_t *http) /* I - HTTP connection */ in httpGetAddress()
792 httpGetHostname(http_t *http, /* I - HTTP connection or NULL */ in httpGetHostname()
906 httpResolveHostname(http_t *http, /* I - HTTP connection */ in httpResolveHostname()

12