8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / lib / print / libhttp-core / common / http-private.h
bloba11b8bbb5e672dc80177af544c3353da2692ffc3
1 /*
2 * "$Id: http-private.h 148 2006-04-25 16:54:17Z njacobs $"
4 * Private HTTP definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
13 * at:
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
20 * Voice: (301) 373-9600
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
24 * This file is subject to the Apple OS-Developed Software exception.
27 #ifndef _CUPS_HTTP_PRIVATE_H_
28 #define _CUPS_HTTP_PRIVATE_H_
30 #pragma ident "%Z%%M% %I% %E% SMI"
33 * Include necessary headers...
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
40 # include "config.h"
43 # ifdef __sun
45 * Define FD_SETSIZE to CUPS_MAX_FDS on Solaris to get the correct version of
46 * select() for large numbers of file descriptors.
49 #define CUPS_MAX_FDS 1024
51 # define FD_SETSIZE CUPS_MAX_FDS
52 # include <sys/select.h>
53 # endif /* __sun */
55 # include "http.h"
57 # if defined HAVE_LIBSSL
59 * The OpenSSL library provides its own SSL/TLS context structure for its
60 * IO and protocol management...
63 # include <openssl/err.h>
64 # include <openssl/rand.h>
65 # include <openssl/ssl.h>
67 typedef SSL http_tls_t;
69 # elif defined HAVE_GNUTLS
71 * The GNU TLS library is more of a "bare metal" SSL/TLS library...
73 # include <gnutls/gnutls.h>
75 typedef struct
77 gnutls_session session; /* GNU TLS session object */
78 void *credentials; /* GNU TLS credentials object */
79 } http_tls_t;
81 # elif defined(HAVE_CDSASSL)
83 * Darwin's Security framework provides its own SSL/TLS context structure
84 * for its IO and protocol management...
87 # include <Security/SecureTransport.h>
89 typedef SSLConnectionRef http_tls_t;
91 # endif /* HAVE_LIBSSL */
94 * Some OS's don't have hstrerror(), most notably Solaris...
97 # ifndef HAVE_HSTRERROR
98 extern const char *cups_hstrerror(int error);
99 # define hstrerror cups_hstrerror
100 # elif defined(_AIX) || defined(__osf__)
102 * AIX and Tru64 UNIX don't provide a prototype but do provide the function...
104 extern const char *hstrerror(int error);
105 # endif /* !HAVE_HSTRERROR */
107 #ifdef __cplusplus
109 #endif
111 #endif /* !_CUPS_HTTP_PRIVATE_H_ */
114 * End of "$Id: http-private.h 148 2006-04-25 16:54:17Z njacobs $"