]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
f2d18633 | 2 | * "$Id$" |
ef416fc2 | 3 | * |
71e16022 | 4 | * Private HTTP definitions for CUPS. |
ef416fc2 | 5 | * |
0fa6c7fa | 6 | * Copyright 2007-2013 by Apple Inc. |
b86bc4cf | 7 | * Copyright 1997-2007 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | * |
9 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | * property of Apple Inc. and are protected by Federal copyright |
11 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | * which should have been included with this file. If this file is | |
13 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | * |
15 | * This file is subject to the Apple OS-Developed Software exception. | |
16 | */ | |
17 | ||
18 | #ifndef _CUPS_HTTP_PRIVATE_H_ | |
19 | # define _CUPS_HTTP_PRIVATE_H_ | |
20 | ||
21 | /* | |
22 | * Include necessary headers... | |
23 | */ | |
24 | ||
71e16022 | 25 | # include "config.h" |
5180a04c | 26 | # include <stddef.h> |
a74454a7 | 27 | # include <stdlib.h> |
ef416fc2 | 28 | |
29 | # ifdef __sun | |
ef416fc2 | 30 | # include <sys/select.h> |
31 | # endif /* __sun */ | |
32 | ||
33 | # include <limits.h> | |
34 | # ifdef WIN32 | |
35 | # include <io.h> | |
36 | # include <winsock2.h> | |
db8b865d | 37 | # define CUPS_SOCAST (const char *) |
ef416fc2 | 38 | # else |
39 | # include <unistd.h> | |
40 | # include <fcntl.h> | |
41 | # include <sys/socket.h> | |
42 | # define closesocket(f) close(f) | |
db8b865d | 43 | # define CUPS_SOCAST |
ef416fc2 | 44 | # endif /* WIN32 */ |
45 | ||
f7deaa1a | 46 | # ifdef HAVE_GSSAPI |
eac3a0a0 MS |
47 | # ifdef HAVE_GSS_GSSAPI_H |
48 | # include <GSS/gssapi.h> | |
eac3a0a0 | 49 | # elif defined(HAVE_GSSAPI_GSSAPI_H) |
f7deaa1a | 50 | # include <gssapi/gssapi.h> |
eac3a0a0 | 51 | # elif defined(HAVE_GSSAPI_H) |
f7deaa1a | 52 | # include <gssapi.h> |
eac3a0a0 | 53 | # endif /* HAVE_GSS_GSSAPI_H */ |
f7deaa1a | 54 | # ifndef HAVE_GSS_C_NT_HOSTBASED_SERVICE |
55 | # define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name | |
56 | # endif /* !HAVE_GSS_C_NT_HOSTBASED_SERVICE */ | |
57 | # endif /* HAVE_GSSAPI */ | |
58 | ||
b94498cf | 59 | # ifdef HAVE_AUTHORIZATION_H |
60 | # include <Security/Authorization.h> | |
61 | # endif /* HAVE_AUTHORIZATION_H */ | |
62 | ||
3dd9c340 | 63 | # if defined(__APPLE__) && !defined(_SOCKLEN_T) |
ef416fc2 | 64 | /* |
3dd9c340 | 65 | * MacOS X 10.2.x does not define socklen_t, and in fact uses an int instead of |
ef416fc2 | 66 | * unsigned type for length values... |
67 | */ | |
68 | ||
69 | typedef int socklen_t; | |
3dd9c340 | 70 | # endif /* __APPLE__ && !_SOCKLEN_T */ |
ef416fc2 | 71 | |
71e16022 MS |
72 | # include <cups/http.h> |
73 | # include "md5-private.h" | |
fa73b229 | 74 | # include "ipp-private.h" |
ef416fc2 | 75 | |
07ed0e9a MS |
76 | # if defined HAVE_LIBSSL |
77 | # include <openssl/err.h> | |
78 | # include <openssl/rand.h> | |
79 | # include <openssl/ssl.h> | |
80 | # elif defined HAVE_GNUTLS | |
81 | # include <gnutls/gnutls.h> | |
82 | # include <gnutls/x509.h> | |
83 | # include <gcrypt.h> | |
84 | # elif defined(HAVE_CDSASSL) | |
85 | # include <CoreFoundation/CoreFoundation.h> | |
86 | # include <Security/Security.h> | |
87 | # include <Security/SecureTransport.h> | |
eac3a0a0 MS |
88 | # ifdef HAVE_SECURETRANSPORTPRIV_H |
89 | # include <Security/SecureTransportPriv.h> | |
90 | # endif /* HAVE_SECURETRANSPORTPRIV_H */ | |
07ed0e9a MS |
91 | # ifdef HAVE_SECITEM_H |
92 | # include <Security/SecItem.h> | |
93 | # endif /* HAVE_SECITEM_H */ | |
94 | # ifdef HAVE_SECBASEPRIV_H | |
95 | # include <Security/SecBasePriv.h> | |
96 | # endif /* HAVE_SECBASEPRIV_H */ | |
97 | # ifdef HAVE_SECCERTIFICATE_H | |
98 | # include <Security/SecCertificate.h> | |
99 | # include <Security/SecIdentity.h> | |
100 | # endif /* HAVE_SECCERTIFICATE_H */ | |
101 | # ifdef HAVE_SECITEMPRIV_H | |
102 | # include <Security/SecItemPriv.h> | |
103 | # endif /* HAVE_SECITEMPRIV_H */ | |
104 | # ifdef HAVE_SECIDENTITYSEARCHPRIV_H | |
105 | # include <Security/SecIdentitySearchPriv.h> | |
106 | # endif /* HAVE_SECIDENTITYSEARCHPRIV_H */ | |
107 | # ifdef HAVE_SECPOLICYPRIV_H | |
108 | # include <Security/SecPolicyPriv.h> | |
109 | # endif /* HAVE_SECPOLICYPRIV_H */ | |
110 | # elif defined(HAVE_SSPISSL) | |
111 | # include "sspi-private.h" | |
112 | # endif /* HAVE_LIBSSL */ | |
113 | ||
114 | # ifndef WIN32 | |
115 | # include <net/if.h> | |
116 | # ifdef HAVE_GETIFADDRS | |
117 | # include <ifaddrs.h> | |
118 | # else | |
119 | # include <sys/ioctl.h> | |
120 | # ifdef HAVE_SYS_SOCKIO_H | |
121 | # include <sys/sockio.h> | |
122 | # endif /* HAVE_SYS_SOCKIO_H */ | |
123 | # endif /* HAVE_GETIFADDRS */ | |
124 | # endif /* !WIN32 */ | |
125 | ||
a469f8a5 MS |
126 | # ifdef HAVE_LIBZ |
127 | # include <zlib.h> | |
128 | # endif /* HAVE_LIBZ */ | |
129 | ||
07ed0e9a MS |
130 | |
131 | /* | |
132 | * C++ magic... | |
133 | */ | |
134 | ||
135 | # ifdef __cplusplus | |
136 | extern "C" { | |
137 | # endif /* __cplusplus */ | |
138 | ||
139 | ||
eac3a0a0 MS |
140 | /* |
141 | * Constants... | |
142 | */ | |
143 | ||
144 | ||
145 | #define _HTTP_RESOLVE_DEFAULT 0 /* Just resolve with default options */ | |
146 | #define _HTTP_RESOLVE_STDERR 1 /* Log resolve progress to stderr */ | |
147 | #define _HTTP_RESOLVE_FQDN 2 /* Resolve to a FQDN */ | |
f3c17241 | 148 | #define _HTTP_RESOLVE_FAXOUT 4 /* Resolve FaxOut service? */ |
eac3a0a0 MS |
149 | |
150 | ||
07ed0e9a MS |
151 | /* |
152 | * Types and functions for SSL support... | |
153 | */ | |
154 | ||
ef416fc2 | 155 | # if defined HAVE_LIBSSL |
156 | /* | |
157 | * The OpenSSL library provides its own SSL/TLS context structure for its | |
411affcf | 158 | * IO and protocol management. However, we need to provide our own BIO |
159 | * (basic IO) implementation to do timeouts... | |
ef416fc2 | 160 | */ |
161 | ||
7cf5915e MS |
162 | typedef SSL *http_tls_t; |
163 | typedef void *http_tls_credentials_t; | |
ef416fc2 | 164 | |
411affcf | 165 | extern BIO_METHOD *_httpBIOMethods(void); |
166 | ||
ef416fc2 | 167 | # elif defined HAVE_GNUTLS |
168 | /* | |
169 | * The GNU TLS library is more of a "bare metal" SSL/TLS library... | |
170 | */ | |
ef416fc2 | 171 | |
7cf5915e MS |
172 | typedef gnutls_session http_tls_t; |
173 | typedef void *http_tls_credentials_t; | |
ef416fc2 | 174 | |
411affcf | 175 | extern ssize_t _httpReadGNUTLS(gnutls_transport_ptr ptr, void *data, |
176 | size_t length); | |
177 | extern ssize_t _httpWriteGNUTLS(gnutls_transport_ptr ptr, const void *data, | |
178 | size_t length); | |
179 | ||
ef416fc2 | 180 | # elif defined(HAVE_CDSASSL) |
181 | /* | |
182 | * Darwin's Security framework provides its own SSL/TLS context structure | |
183 | * for its IO and protocol management... | |
184 | */ | |
185 | ||
07ed0e9a | 186 | # if !defined(HAVE_SECBASEPRIV_H) && defined(HAVE_CSSMERRORSTRING) /* Declare prototype for function in that header... */ |
7cf5915e | 187 | extern const char *cssmErrorString(int error); |
07ed0e9a MS |
188 | # endif /* !HAVE_SECBASEPRIV_H && HAVE_CSSMERRORSTRING */ |
189 | # ifndef HAVE_SECITEMPRIV_H /* Declare constants from that header... */ | |
7cf5915e MS |
190 | extern const CFTypeRef kSecClassCertificate; |
191 | extern const CFTypeRef kSecClassIdentity; | |
07ed0e9a MS |
192 | # endif /* !HAVE_SECITEMPRIV_H */ |
193 | # if !defined(HAVE_SECIDENTITYSEARCHPRIV_H) && defined(HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY) /* Declare prototype for function in that header... */ | |
7cf5915e MS |
194 | extern OSStatus SecIdentitySearchCreateWithPolicy(SecPolicyRef policy, |
195 | CFStringRef idString, CSSM_KEYUSE keyUsage, | |
196 | CFTypeRef keychainOrArray, | |
197 | Boolean returnOnlyValidIdentities, | |
198 | SecIdentitySearchRef* searchRef); | |
07ed0e9a MS |
199 | # endif /* !HAVE_SECIDENTITYSEARCHPRIV_H && HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */ |
200 | # if !defined(HAVE_SECPOLICYPRIV_H) && defined(HAVE_SECPOLICYSETVALUE) /* Declare prototype for function in that header... */ | |
7cf5915e MS |
201 | extern OSStatus SecPolicySetValue(SecPolicyRef policyRef, |
202 | const CSSM_DATA *value); | |
07ed0e9a | 203 | # endif /* !HAVE_SECPOLICYPRIV_H && HAVE_SECPOLICYSETVALUE */ |
7cf5915e MS |
204 | |
205 | typedef SSLContextRef http_tls_t; | |
206 | typedef CFArrayRef http_tls_credentials_t; | |
ef416fc2 | 207 | |
208 | extern OSStatus _httpReadCDSA(SSLConnectionRef connection, void *data, | |
209 | size_t *dataLength); | |
210 | extern OSStatus _httpWriteCDSA(SSLConnectionRef connection, const void *data, | |
211 | size_t *dataLength); | |
cc754834 MS |
212 | |
213 | # elif defined(HAVE_SSPISSL) | |
07ed0e9a MS |
214 | /* |
215 | * Windows' SSPI library gets a CUPS wrapper... | |
216 | */ | |
217 | ||
7cf5915e MS |
218 | typedef _sspi_struct_t * http_tls_t; |
219 | typedef void *http_tls_credentials_t; | |
07ed0e9a | 220 | |
7cf5915e | 221 | # else |
07ed0e9a MS |
222 | /* |
223 | * Otherwise define stub types since we have no SSL support... | |
224 | */ | |
225 | ||
7cf5915e | 226 | typedef void *http_tls_t; |
07ed0e9a | 227 | typedef void *http_tls_credentials_t; |
ef416fc2 | 228 | # endif /* HAVE_LIBSSL */ |
229 | ||
a469f8a5 MS |
230 | typedef enum _http_coding_e /**** HTTP content coding enumeration ****/ |
231 | { | |
232 | _HTTP_CODING_IDENTITY, /* No content coding */ | |
233 | _HTTP_CODING_GZIP, /* LZ77+gzip decompression */ | |
234 | _HTTP_CODING_DEFLATE, /* LZ77+zlib compression */ | |
235 | _HTTP_CODING_GUNZIP, /* LZ77+gzip decompression */ | |
236 | _HTTP_CODING_INFLATE /* LZ77+zlib decompression */ | |
237 | } _http_coding_t; | |
238 | ||
239 | typedef enum _http_mode_e /**** HTTP mode enumeration ****/ | |
240 | { | |
241 | _HTTP_MODE_CLIENT, /* Client connected to server */ | |
242 | _HTTP_MODE_SERVER /* Server connected (accepted) from client */ | |
243 | } _http_mode_t; | |
244 | ||
245 | struct _http_s /**** HTTP connection structure ****/ | |
f7deaa1a | 246 | { |
247 | int fd; /* File descriptor for this socket */ | |
248 | int blocking; /* To block or not to block */ | |
249 | int error; /* Last error on read */ | |
250 | time_t activity; /* Time since last read/write */ | |
251 | http_state_t state; /* State of client */ | |
252 | http_status_t status; /* Status of last request */ | |
253 | http_version_t version; /* Protocol version */ | |
254 | http_keepalive_t keep_alive; /* Keep-alive supported? */ | |
85dda01c | 255 | struct sockaddr_in _hostaddr; /* Address of connected host (deprecated) */ |
f7deaa1a | 256 | char hostname[HTTP_MAX_HOST], |
257 | /* Name of connected host */ | |
a469f8a5 MS |
258 | fields[HTTP_FIELD_ACCEPT_ENCODING][HTTP_MAX_VALUE]; |
259 | /* Field values up to Accept-Encoding */ | |
f7deaa1a | 260 | char *data; /* Pointer to data buffer */ |
261 | http_encoding_t data_encoding; /* Chunked or not */ | |
85dda01c | 262 | int _data_remaining;/* Number of bytes left (deprecated) */ |
f7deaa1a | 263 | int used; /* Number of bytes used in buffer */ |
264 | char buffer[HTTP_MAX_BUFFER]; | |
265 | /* Buffer for incoming data */ | |
266 | int auth_type; /* Authentication in use */ | |
267 | _cups_md5_state_t md5_state; /* MD5 state */ | |
268 | char nonce[HTTP_MAX_VALUE]; | |
269 | /* Nonce value */ | |
270 | int nonce_count; /* Nonce count */ | |
7cf5915e | 271 | http_tls_t tls; /* TLS state information */ |
f7deaa1a | 272 | http_encryption_t encryption; /* Encryption requirements */ |
a469f8a5 | 273 | |
f7deaa1a | 274 | /**** New in CUPS 1.1.19 ****/ |
85dda01c MS |
275 | fd_set *input_set; /* select() set for httpWait() (deprecated) */ |
276 | http_status_t expect; /* Expect: header */ | |
277 | char *cookie; /* Cookie value(s) */ | |
a469f8a5 | 278 | |
f7deaa1a | 279 | /**** New in CUPS 1.1.20 ****/ |
280 | char _authstring[HTTP_MAX_VALUE], | |
c1420c87 | 281 | /* Current Authorization value (deprecated) */ |
f7deaa1a | 282 | userpass[HTTP_MAX_VALUE]; |
85dda01c MS |
283 | /* Username:password string */ |
284 | int digest_tries; /* Number of tries for digest auth */ | |
a469f8a5 | 285 | |
f7deaa1a | 286 | /**** New in CUPS 1.2 ****/ |
85dda01c MS |
287 | off_t data_remaining; /* Number of bytes left */ |
288 | http_addr_t *hostaddr; /* Current host address and port */ | |
289 | http_addrlist_t *addrlist; /* List of valid addresses */ | |
f7deaa1a | 290 | char wbuffer[HTTP_MAX_BUFFER]; |
291 | /* Buffer for outgoing data */ | |
85dda01c | 292 | int wused; /* Write buffer bytes used */ |
a469f8a5 | 293 | |
f7deaa1a | 294 | /**** New in CUPS 1.3 ****/ |
295 | char *field_authorization; | |
85dda01c | 296 | /* Authorization field */ |
c1420c87 | 297 | char *authstring; /* Current Authorization field */ |
f7deaa1a | 298 | # ifdef HAVE_GSSAPI |
85dda01c MS |
299 | gss_OID gssmech; /* Authentication mechanism */ |
300 | gss_ctx_id_t gssctx; /* Authentication context */ | |
301 | gss_name_t gssname; /* Authentication server name */ | |
f7deaa1a | 302 | # endif /* HAVE_GSSAPI */ |
b94498cf | 303 | # ifdef HAVE_AUTHORIZATION_H |
85dda01c | 304 | AuthorizationRef auth_ref; /* Authorization ref */ |
b94498cf | 305 | # endif /* HAVE_AUTHORIZATION_H */ |
a469f8a5 | 306 | |
7cf5915e MS |
307 | /**** New in CUPS 1.5 ****/ |
308 | http_tls_credentials_t tls_credentials; | |
85dda01c MS |
309 | /* TLS credentials */ |
310 | http_timeout_cb_t timeout_cb; /* Timeout callback */ | |
311 | void *timeout_data; /* User data pointer */ | |
312 | double timeout_value; /* Timeout in seconds */ | |
313 | int wait_value; /* httpWait value for timeout */ | |
eac3a0a0 MS |
314 | # ifdef HAVE_GSSAPI |
315 | char gsshost[256]; /* Hostname for Kerberos */ | |
316 | # endif /* HAVE_GSSAPI */ | |
a469f8a5 MS |
317 | |
318 | /**** New in CUPS 1.7 ****/ | |
cb7f98ee | 319 | int tls_upgrade; /* Non-zero if we are doing an upgrade */ |
a469f8a5 MS |
320 | _http_mode_t mode; /* _HTTP_MODE_CLIENT or _HTTP_MODE_SERVER */ |
321 | char *accept_encoding, | |
322 | /* Accept-Encoding field */ | |
323 | *allow, /* Allow field */ | |
c1420c87 MS |
324 | *server, /* Server field */ |
325 | *default_accept_encoding, | |
326 | *default_server, | |
327 | *default_user_agent; | |
328 | /* Default field values */ | |
a469f8a5 MS |
329 | # ifdef HAVE_LIBZ |
330 | _http_coding_t coding; /* _HTTP_CODING_xxx */ | |
331 | z_stream stream; /* (De)compression stream */ | |
0fa6c7fa | 332 | Bytef *dbuffer; /* Decompression buffer */ |
a469f8a5 | 333 | # endif /* HAVE_LIBZ */ |
f7deaa1a | 334 | }; |
335 | ||
336 | ||
ef416fc2 | 337 | /* |
338 | * Some OS's don't have hstrerror(), most notably Solaris... | |
339 | */ | |
340 | ||
341 | # ifndef HAVE_HSTRERROR | |
342 | extern const char *_cups_hstrerror(int error); | |
343 | # define hstrerror _cups_hstrerror | |
344 | # elif defined(_AIX) || defined(__osf__) | |
345 | /* | |
346 | * AIX and Tru64 UNIX don't provide a prototype but do provide the function... | |
347 | */ | |
348 | extern const char *hstrerror(int error); | |
349 | # endif /* !HAVE_HSTRERROR */ | |
350 | ||
89d46774 | 351 | |
352 | /* | |
353 | * Some OS's don't have getifaddrs() and freeifaddrs()... | |
354 | */ | |
355 | ||
07ed0e9a MS |
356 | # if !defined(WIN32) && !defined(HAVE_GETIFADDRS) |
357 | # ifdef ifa_dstaddr | |
358 | # undef ifa_dstaddr | |
359 | # endif /* ifa_dstaddr */ | |
360 | # ifndef ifr_netmask | |
361 | # define ifr_netmask ifr_addr | |
362 | # endif /* !ifr_netmask */ | |
89d46774 | 363 | |
364 | struct ifaddrs /**** Interface Structure ****/ | |
365 | { | |
366 | struct ifaddrs *ifa_next; /* Next interface in list */ | |
367 | char *ifa_name; /* Name of interface */ | |
368 | unsigned int ifa_flags; /* Flags (up, point-to-point, etc.) */ | |
369 | struct sockaddr *ifa_addr, /* Network address */ | |
f301802f | 370 | *ifa_netmask; /* Address mask */ |
371 | union | |
372 | { | |
373 | struct sockaddr *ifu_broadaddr; /* Broadcast address of this interface. */ | |
374 | struct sockaddr *ifu_dstaddr; /* Point-to-point destination address. */ | |
375 | } ifa_ifu; | |
376 | ||
89d46774 | 377 | void *ifa_data; /* Interface statistics */ |
378 | }; | |
379 | ||
07ed0e9a MS |
380 | # ifndef ifa_broadaddr |
381 | # define ifa_broadaddr ifa_ifu.ifu_broadaddr | |
382 | # endif /* !ifa_broadaddr */ | |
383 | # ifndef ifa_dstaddr | |
384 | # define ifa_dstaddr ifa_ifu.ifu_dstaddr | |
385 | # endif /* !ifa_dstaddr */ | |
f301802f | 386 | |
a74454a7 | 387 | extern int _cups_getifaddrs(struct ifaddrs **addrs); |
07ed0e9a | 388 | # define getifaddrs _cups_getifaddrs |
a74454a7 | 389 | extern void _cups_freeifaddrs(struct ifaddrs *addrs); |
07ed0e9a MS |
390 | # define freeifaddrs _cups_freeifaddrs |
391 | # endif /* !WIN32 && !HAVE_GETIFADDRS */ | |
392 | ||
89d46774 | 393 | |
839a51c8 | 394 | /* |
1ff0402e | 395 | * Prototypes... |
839a51c8 MS |
396 | */ |
397 | ||
22c9029b | 398 | #define _httpAddrFamily(addrp) (addrp)->addr.sa_family |
0fa6c7fa MS |
399 | extern int _httpAddrPort(http_addr_t *addr) |
400 | _CUPS_INTERNAL_MSG("Use httpAddrPort instead."); | |
22c9029b | 401 | extern void _httpAddrSetPort(http_addr_t *addr, int port); |
07ed0e9a MS |
402 | extern char *_httpAssembleUUID(const char *server, int port, |
403 | const char *name, int number, | |
0fa6c7fa MS |
404 | char *buffer, size_t bufsize) |
405 | _CUPS_INTERNAL_MSG("Use httpAssembleUUID instead."); | |
1ff0402e | 406 | extern http_t *_httpCreate(const char *host, int port, |
db8b865d | 407 | http_addrlist_t *addrlist, |
c8fef167 | 408 | http_encryption_t encryption, |
db8b865d | 409 | int family) |
0fa6c7fa | 410 | _CUPS_INTERNAL_MSG("Use httpConnect2 or httpAccept instead."); |
85dda01c MS |
411 | extern http_tls_credentials_t |
412 | _httpCreateCredentials(cups_array_t *credentials); | |
1106b00e MS |
413 | extern char *_httpDecodeURI(char *dst, const char *src, |
414 | size_t dstsize); | |
6d2f911b | 415 | extern void _httpDisconnect(http_t *http); |
5eb9da71 MS |
416 | extern char *_httpEncodeURI(char *dst, const char *src, |
417 | size_t dstsize); | |
7cf5915e | 418 | extern void _httpFreeCredentials(http_tls_credentials_t credentials); |
0fa6c7fa MS |
419 | extern ssize_t _httpPeek(http_t *http, char *buffer, size_t length) |
420 | _CUPS_INTERNAL_MSG("Use httpPeek instead."); | |
5eb9da71 | 421 | extern const char *_httpResolveURI(const char *uri, char *resolved_uri, |
eac3a0a0 | 422 | size_t resolved_size, int options, |
07ed0e9a MS |
423 | int (*cb)(void *context), |
424 | void *context); | |
e60ec91f | 425 | extern int _httpUpdate(http_t *http, http_status_t *status); |
38e73f87 | 426 | extern int _httpWait(http_t *http, int msec, int usessl); |
6d2f911b MS |
427 | |
428 | ||
07ed0e9a MS |
429 | /* |
430 | * C++ magic... | |
431 | */ | |
432 | ||
433 | # ifdef __cplusplus | |
434 | } | |
435 | # endif /* __cplusplus */ | |
436 | ||
ef416fc2 | 437 | #endif /* !_CUPS_HTTP_PRIVATE_H_ */ |
438 | ||
439 | /* | |
f2d18633 | 440 | * End of "$Id$". |
ef416fc2 | 441 | */ |