]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add httpConnectEncrypt() and fix all code that uses the
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sun, 6 May 2001 00:11:27 +0000 (00:11 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sun, 6 May 2001 00:11:27 +0000 (00:11 +0000)
old httpConnect() function to use httpConnectEncrypt().

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@1710 7a7537e8-13f0-0310-91df-b6672ffda945

20 files changed:
CHANGES.txt
berkeley/lpc.c
berkeley/lpq.c
berkeley/lprm.c
cgi-bin/admin.c
cgi-bin/classes.c
cgi-bin/jobs.c
cgi-bin/printers.c
cups/http.c
cups/http.h
cups/util.c
scheduler/cups-lpd.c
scheduler/cups-polld.c
systemv/accept.c
systemv/cancel.c
systemv/lp.c
systemv/lpadmin.c
systemv/lpinfo.c
systemv/lpmove.c
systemv/lpstat.c

index 9ed660b2bcb6d7556b7826575941559eeccb8eec..ebf31fd1894b9711f612f612259bb36ec53828c2 100644 (file)
@@ -18,6 +18,12 @@ CHANGES IN CUPS V1.1.7-1
          status of the job that was sent.  This caused
          remote queues to stop on client machines when
          the server had job history disabled.
+       - Added httpConnectEncrypt() function to avoid
+         performance penalty for setting up encrypted
+         connections initially.
+       - Use httpConnectEncrypt() in all client apps
+         and in the CUPS API to ensure consistent usage
+         of encryption throughout.
 
 
 CHANGES IN CUPS V1.1.7
index c051d10022b4decaa4c2b2443b11d903c23d9729..42629d4f8c471778041b85d514e8dd4fbcc0da54 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpc.c,v 1.11 2001/02/13 20:37:42 mike Exp $"
+ * "$Id: lpc.c,v 1.12 2001/05/06 00:11:22 mike Exp $"
  *
  *   "lpc" command for the Common UNIX Printing System (CUPS).
  *
@@ -69,7 +69,7 @@ main(int  argc,               /* I - Number of command-line arguments */
   * Connect to the scheduler...
   */
 
-  http = httpConnect(cupsServer(), ippPort());
+  http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption());
 
   if (argc > 1)
   {
@@ -477,5 +477,5 @@ show_status(http_t *http,   /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpc.c,v 1.11 2001/02/13 20:37:42 mike Exp $".
+ * End of "$Id: lpc.c,v 1.12 2001/05/06 00:11:22 mike Exp $".
  */
index 7a4c7dce1a8ab0aa70e1f82e284b13628c812047..3ce0bd414b6f9ece8b3f897db8bfb274a072eaf2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpq.c,v 1.17 2001/02/13 20:37:42 mike Exp $"
+ * "$Id: lpq.c,v 1.18 2001/05/06 00:11:22 mike Exp $"
  *
  *   "lpq" command for the Common UNIX Printing System (CUPS).
  *
@@ -79,7 +79,8 @@ main(int  argc,               /* I - Number of command-line arguments */
   * Connect to the scheduler...
   */
 
-  if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
+  if ((http = httpConnectEncrypt(cupsServer(), ippPort(),
+                                 cupsEncryption())) == NULL)
   {
     fputs("lpq: Unable to contact server!\n", stderr);
     return (1);
@@ -535,5 +536,5 @@ show_printer(http_t     *http,      /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpq.c,v 1.17 2001/02/13 20:37:42 mike Exp $".
+ * End of "$Id: lpq.c,v 1.18 2001/05/06 00:11:22 mike Exp $".
  */
index 8fe43e36f2f0db94ec8c02ec351d7a3ab33c9398..cc2bb4381d3f417dcd296aa205d55d37e7c08f19 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lprm.c,v 1.15 2001/03/02 17:35:03 mike Exp $"
+ * "$Id: lprm.c,v 1.16 2001/05/06 00:11:22 mike Exp $"
  *
  *   "lprm" command for the Common UNIX Printing System (CUPS).
  *
@@ -82,15 +82,13 @@ main(int  argc,                     /* I - Number of command-line arguments */
   * Open a connection to the server...
   */
 
-  if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
+  if ((http = httpConnectEncrypt(cupsServer(), ippPort(), encryption)) == NULL)
   {
     fputs("lprm: Unable to contact server!\n", stderr);
     cupsFreeDests(num_dests, dests);
     return (1);
   }
 
-  httpEncryption(http, encryption);
-
  /*
   * Process command-line arguments...
   */
@@ -265,5 +263,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: lprm.c,v 1.15 2001/03/02 17:35:03 mike Exp $".
+ * End of "$Id: lprm.c,v 1.16 2001/05/06 00:11:22 mike Exp $".
  */
index f4f9c36e8d4b4106a86e2dead4a90aa0d092fe80..e5a83136bb14708745c52696f25b50c3069895bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: admin.c,v 1.22 2001/03/05 21:37:33 mike Exp $"
+ * "$Id: admin.c,v 1.23 2001/05/06 00:11:23 mike Exp $"
  *
  *   Administration CGI for the Common UNIX Printing System (CUPS).
  *
@@ -105,7 +105,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
     * Connect to the HTTP server...
     */
 
-    http = httpConnect("localhost", ippPort());
+    http = httpConnectEncrypt("localhost", ippPort(), cupsEncryption());
 
    /*
     * Do the operation...
@@ -1594,5 +1594,5 @@ get_line(char *buf,       /* I - Line buffer */
 
 
 /*
- * End of "$Id: admin.c,v 1.22 2001/03/05 21:37:33 mike Exp $".
+ * End of "$Id: admin.c,v 1.23 2001/05/06 00:11:23 mike Exp $".
  */
index 8e18e7b68d4e48dab5ce227e01943b96c91208f1..e91be1e4c8e5244884cc4b9278dbfd8e1e1fcf4b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: classes.c,v 1.18 2001/01/22 15:03:22 mike Exp $"
+ * "$Id: classes.c,v 1.19 2001/05/06 00:11:23 mike Exp $"
  *
  *   Class status CGI for the Common UNIX Printing System (CUPS).
  *
@@ -71,7 +71,7 @@ main(int  argc,                       /* I - Number of command-line arguments */
   * Connect to the HTTP server...
   */
 
-  http = httpConnect("localhost", ippPort());
+  http = httpConnectEncrypt("localhost", ippPort(), cupsEncryption());
 
  /*
   * Tell the client to expect HTML...
@@ -356,5 +356,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: classes.c,v 1.18 2001/01/22 15:03:22 mike Exp $".
+ * End of "$Id: classes.c,v 1.19 2001/05/06 00:11:23 mike Exp $".
  */
index 287072e808c32679d47a1dfc9cd775aa6c773414..2a81f857e2316451faa4f35c4ff45093d5ef68e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: jobs.c,v 1.15 2001/01/22 15:03:22 mike Exp $"
+ * "$Id: jobs.c,v 1.16 2001/05/06 00:11:23 mike Exp $"
  *
  *   Job status CGI for the Common UNIX Printing System (CUPS).
  *
@@ -64,7 +64,7 @@ main(int  argc,                       /* I - Number of command-line arguments */
   * Connect to the HTTP server...
   */
 
-  http = httpConnect("localhost", ippPort());
+  http = httpConnectEncrypt("localhost", ippPort(), cupsEncryption());
 
  /*
   * Tell the client to expect HTML...
@@ -135,5 +135,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: jobs.c,v 1.15 2001/01/22 15:03:22 mike Exp $".
+ * End of "$Id: jobs.c,v 1.16 2001/05/06 00:11:23 mike Exp $".
  */
index 6cd5c8447fe536e699edfd00e393c1904e440784..e0a12e2f9831079948d40092250ddc0c450758f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: printers.c,v 1.21 2001/01/22 15:03:22 mike Exp $"
+ * "$Id: printers.c,v 1.22 2001/05/06 00:11:24 mike Exp $"
  *
  *   Printer status CGI for the Common UNIX Printing System (CUPS).
  *
@@ -71,7 +71,7 @@ main(int  argc,                       /* I - Number of command-line arguments */
   * Connect to the HTTP server...
   */
 
-  http = httpConnect("localhost", ippPort());
+  http = httpConnectEncrypt("localhost", ippPort(), cupsEncryption());
 
  /*
   * Tell the client to expect HTML...
@@ -356,5 +356,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: printers.c,v 1.21 2001/01/22 15:03:22 mike Exp $".
+ * End of "$Id: printers.c,v 1.22 2001/05/06 00:11:24 mike Exp $".
  */
index bff9780a9eafc65eb882db7902a9c816da3628f4..13c4c8d6895589c1e27bf228b3fa217a8276aafc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: http.c,v 1.82 2001/03/06 14:57:00 mike Exp $"
+ * "$Id: http.c,v 1.83 2001/05/06 00:11:24 mike Exp $"
  *
  *   HTTP routines for the Common UNIX Printing System (CUPS) scheduler.
  *
  *
  * Contents:
  *
- *   httpInitialize()    - Initialize the HTTP interface library and set the
- *                         default HTTP proxy (if any).
- *   httpCheck()         - Check to see if there is a pending response from
- *                         the server.
- *   httpClose()         - Close an HTTP connection...
- *   httpConnect()       - Connect to a HTTP server.
- *   httpEncryption()    - Set the required encryption on the link.
- *   httpReconnect()     - Reconnect to a HTTP server...
- *   httpSeparate()      - Separate a Universal Resource Identifier into its
- *                         components.
- *   httpSetField()      - Set the value of an HTTP header.
- *   httpDelete()        - Send a DELETE request to the server.
- *   httpGet()           - Send a GET request to the server.
- *   httpHead()          - Send a HEAD request to the server.
- *   httpOptions()       - Send an OPTIONS request to the server.
- *   httpPost()          - Send a POST request to the server.
- *   httpPut()           - Send a PUT request to the server.
- *   httpTrace()         - Send an TRACE request to the server.
- *   httpFlush()         - Flush data from a HTTP connection.
- *   httpRead()          - Read data from a HTTP connection.
- *   httpWrite()         - Write data to a HTTP connection.
- *   httpGets()          - Get a line of text from a HTTP connection.
- *   httpPrintf()        - Print a formatted string to a HTTP connection.
- *   httpStatus()        - Return a short string describing a HTTP status code.
- *   httpGetDateString() - Get a formatted date/time string from a time value.
- *   httpGetDateTime()   - Get a time value from a formatted date/time string.
- *   httpUpdate()        - Update the current HTTP state for incoming data.
- *   httpDecode64()      - Base64-decode a string.
- *   httpEncode64()      - Base64-encode a string.
- *   httpGetLength()     - Get the amount of data remaining from the
- *                         content-length or transfer-encoding fields.
- *   http_field()        - Return the field index for a field name.
- *   http_send()         - Send a request with all fields and the trailing
- *                         blank line.
- *   http_upgrade()      - Force upgrade to TLS encryption.
+ *   httpInitialize()     - Initialize the HTTP interface library and set the
+ *                          default HTTP proxy (if any).
+ *   httpCheck()          - Check to see if there is a pending response from
+ *                          the server.
+ *   httpClose()          - Close an HTTP connection...
+ *   httpConnect()        - Connect to a HTTP server.
+ *   httpConnectEncrypt() - Connect to a HTTP server using encryption.
+ *   httpEncryption()     - Set the required encryption on the link.
+ *   httpReconnect()      - Reconnect to a HTTP server...
+ *   httpSeparate()       - Separate a Universal Resource Identifier into its
+ *                          components.
+ *   httpSetField()       - Set the value of an HTTP header.
+ *   httpDelete()         - Send a DELETE request to the server.
+ *   httpGet()            - Send a GET request to the server.
+ *   httpHead()           - Send a HEAD request to the server.
+ *   httpOptions()        - Send an OPTIONS request to the server.
+ *   httpPost()           - Send a POST request to the server.
+ *   httpPut()            - Send a PUT request to the server.
+ *   httpTrace()          - Send an TRACE request to the server.
+ *   httpFlush()          - Flush data from a HTTP connection.
+ *   httpRead()           - Read data from a HTTP connection.
+ *   httpWrite()          - Write data to a HTTP connection.
+ *   httpGets()           - Get a line of text from a HTTP connection.
+ *   httpPrintf()         - Print a formatted string to a HTTP connection.
+ *   httpStatus()         - Return a short string describing a HTTP status code.
+ *   httpGetDateString()  - Get a formatted date/time string from a time value.
+ *   httpGetDateTime()    - Get a time value from a formatted date/time string.
+ *   httpUpdate()         - Update the current HTTP state for incoming data.
+ *   httpDecode64()       - Base64-decode a string.
+ *   httpEncode64()       - Base64-encode a string.
+ *   httpGetLength()      - Get the amount of data remaining from the
+ *                          content-length or transfer-encoding fields.
+ *   http_field()         - Return the field index for a field name.
+ *   http_send()          - Send a request with all fields and the trailing
+ *                          blank line.
+ *   http_upgrade()       - Force upgrade to TLS encryption.
  */
 
 /*
@@ -310,6 +311,32 @@ httpClose(http_t *http)            /* I - Connection to close */
 http_t *                       /* O - New HTTP connection */
 httpConnect(const char *host,  /* I - Host to connect to */
             int        port)   /* I - Port number */
+{
+  http_encryption_t    encrypt;/* Type of encryption to use */
+
+
+ /*
+  * Set the default encryption status...
+  */
+
+  if (port == 443)
+    encrypt = HTTP_ENCRYPT_ALWAYS;
+  else
+    encrypt = HTTP_ENCRYPT_IF_REQUESTED;
+
+  return (httpConnectEncrypt(host, port, encrypt));
+}
+
+
+/*
+ * 'httpConnectEncrypt()' - Connect to a HTTP server using encryption.
+ */
+
+http_t *                               /* O - New HTTP connection */
+httpConnectEncrypt(const char *host,   /* I - Host to connect to */
+                   int        port,    /* I - Port number */
+                  http_encryption_t encrypt)
+                                       /* I - Type of encryption to use */
 {
   http_t               *http;          /* New HTTP connection */
   struct hostent       *hostaddr;      /* Host address data */
@@ -371,11 +398,10 @@ httpConnect(const char *host,     /* I - Host to connect to */
 #endif /* WIN32 */
 
  /*
-  * Set the default encryption status...
+  * Set the encryption status...
   */
 
-  if (port == 443)
-    http->encryption = HTTP_ENCRYPT_ALWAYS;
+  http->encryption = encrypt;
 
  /*
   * Connect to the remote system...
@@ -2038,5 +2064,5 @@ http_upgrade(http_t *http)        /* I - HTTP data */
 
 
 /*
- * End of "$Id: http.c,v 1.82 2001/03/06 14:57:00 mike Exp $".
+ * End of "$Id: http.c,v 1.83 2001/05/06 00:11:24 mike Exp $".
  */
index dceeea14f1ae2c8635692c612ff0f372f8c84a03..4675e940285b1a0e4ad19be3d110336e4307e0df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: http.h,v 1.33 2001/01/22 15:03:25 mike Exp $"
+ * "$Id: http.h,v 1.34 2001/05/06 00:11:24 mike Exp $"
  *
  *   Hyper-Text Transport Protocol definitions for the Common UNIX Printing
  *   System (CUPS).
@@ -290,6 +290,8 @@ extern int          httpCheck(http_t *http);
                                                httpSetField((http), HTTP_FIELD_HOST, (http)->hostname)
 extern void            httpClose(http_t *http);
 extern http_t          *httpConnect(const char *host, int port);
+extern http_t          *httpConnectEncrypt(const char *host, int port,
+                                           http_encryption_t encrypt);
 extern int             httpDelete(http_t *http, const char *uri);
 extern int             httpEncryption(http_t *http, http_encryption_t e);
 #  define              httpError(http) ((http)->error)
@@ -338,5 +340,5 @@ extern char         *httpMD5String(const md5_byte_t *, char [33]);
 #endif /* !_CUPS_HTTP_H_ */
 
 /*
- * End of "$Id: http.h,v 1.33 2001/01/22 15:03:25 mike Exp $".
+ * End of "$Id: http.h,v 1.34 2001/05/06 00:11:24 mike Exp $".
  */
index f89d839eea5b24074bbc5ae921132835aa02371c..7f119f251f39baafcf9bd73bb16b70055ec71579 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: util.c,v 1.84 2001/04/30 15:34:04 mike Exp $"
+ * "$Id: util.c,v 1.85 2001/05/06 00:11:25 mike Exp $"
  *
  *   Printing utilities for the Common UNIX Printing System (CUPS).
  *
@@ -1081,7 +1081,8 @@ cupsGetPPD(const char *name)              /* I - Printer name */
   {
     httpClose(cups_server);
 
-    if ((cups_server = httpConnect(hostname, ippPort())) == NULL)
+    if ((cups_server = httpConnectEncrypt(hostname, ippPort(),
+                                          cupsEncryption())) == NULL)
     {
       last_error = IPP_SERVICE_UNAVAILABLE;
       return (NULL);
@@ -1595,16 +1596,14 @@ cups_connect(const char *name,          /* I - Destination (printer[@host]) */
 
   DEBUG_printf(("connecting to %s on port %d...\n", hostname, ippPort()));
 
-  if ((cups_server = httpConnect(hostname, ippPort())) == NULL)
+  if ((cups_server = httpConnectEncrypt(hostname, ippPort(),
+                                        cupsEncryption())) == NULL)
   {
     last_error = IPP_SERVICE_UNAVAILABLE;
     return (NULL);
   }
   else
-  {
-    httpEncryption(cups_server, cupsEncryption());
     return (printer);
-  }
 }
 
 
@@ -1676,5 +1675,5 @@ cups_local_auth(http_t *http)     /* I - Connection */
 
 
 /*
- * End of "$Id: util.c,v 1.84 2001/04/30 15:34:04 mike Exp $".
+ * End of "$Id: util.c,v 1.85 2001/05/06 00:11:25 mike Exp $".
  */
index 5356ddf5a675611e5ef57784180d2bb3d227c943..72df06416a4b9ec278f97cd5b3b7327e6bd6b7e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: cups-lpd.c,v 1.24 2001/03/30 15:23:29 mike Exp $"
+ * "$Id: cups-lpd.c,v 1.25 2001/05/06 00:11:25 mike Exp $"
  *
  *   Line Printer Daemon interface for the Common UNIX Printing System (CUPS).
  *
@@ -294,7 +294,8 @@ print_file(const char    *name,             /* I - Printer or class name */
   * Setup a connection and request data...
   */
 
-  if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
+  if ((http = httpConnectEncrypt(cupsServer(), ippPort(),
+                                 cupsEncryption())) == NULL)
   {
     syslog(LOG_ERR, "Unable to connect to server: %s", strerror(errno));
     return (0);
@@ -757,7 +758,8 @@ remove_jobs(const char *dest,               /* I - Destination */
   * Try connecting to the local server...
   */
 
-  if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
+  if ((http = httpConnectEncrypt(cupsServer(), ippPort(),
+                                 cupsEncryption())) == NULL)
     return (1);
 
   language = cupsLangDefault();
@@ -910,7 +912,8 @@ send_state(const char *dest,                /* I - Destination */
   * Try connecting to the local server...
   */
 
-  if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
+  if ((http = httpConnectEncrypt(cupsServer(), ippPort(),
+                                 cupsEncryption())) == NULL)
     return (1);
 
  /*
@@ -1230,5 +1233,5 @@ smart_gets(char *s,       /* I - Pointer to line buffer */
 
 
 /*
- * End of "$Id: cups-lpd.c,v 1.24 2001/03/30 15:23:29 mike Exp $".
+ * End of "$Id: cups-lpd.c,v 1.25 2001/05/06 00:11:25 mike Exp $".
  */
index 5c1fc059ee31d2daac9cff6aebbd9c86f0d24887..5637ea729a7503e2b760b3ba64d1012257bc1abe 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: cups-polld.c,v 1.5 2001/01/22 15:03:59 mike Exp $"
+ * "$Id: cups-polld.c,v 1.6 2001/05/06 00:11:25 mike Exp $"
  *
  *   Polling daemon for the Common UNIX Printing System (CUPS).
  *
@@ -78,7 +78,8 @@ main(int  argc,                               /* I - Number of command-line arguments */
   * Open a connection to the server...
   */
 
-  if ((http = httpConnect(argv[1], atoi(argv[2]))) == NULL)
+  if ((http = httpConnectEncrypt(argv[1], atoi(argv[2]),
+                                 cupsEncryption())) == NULL)
   {
     perror("cups-polld");
     return (1);
@@ -304,5 +305,5 @@ poll_server(http_t      *http,              /* I - HTTP connection */
 
 
 /*
- * End of "$Id: cups-polld.c,v 1.5 2001/01/22 15:03:59 mike Exp $".
+ * End of "$Id: cups-polld.c,v 1.6 2001/05/06 00:11:25 mike Exp $".
  */
index e2515e5df455c1dfa0a1e18ceb633049d8b1c48c..06813bf49ee0b72148bab2b20add5ea2f3d293c5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: accept.c,v 1.11 2001/01/23 17:36:22 mike Exp $"
+ * "$Id: accept.c,v 1.12 2001/05/06 00:11:26 mike Exp $"
  *
  *   "accept", "disable", "enable", and "reject" commands for the Common
  *   UNIX Printing System (CUPS).
@@ -123,7 +123,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
              httpClose(http);
 
            if (argv[i][2] != '\0')
-             http = httpConnect(argv[i] + 2, ippPort());
+             http = httpConnectEncrypt(argv[i] + 2, ippPort(), encryption);
            else
            {
              i ++;
@@ -134,7 +134,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
                return (1);
              }
 
-             http = httpConnect(argv[i], ippPort());
+             http = httpConnectEncrypt(argv[i], ippPort(), encryption);
            }
 
            if (http == NULL)
@@ -182,7 +182,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
       }
 
       if (http == NULL)
-        http = httpConnect(hostname, ippPort());
+        http = httpConnectEncrypt(hostname, ippPort(), encryption);
 
       if (http == NULL)
       {
@@ -226,8 +226,6 @@ main(int  argc,                     /* I - Number of command-line arguments */
       * Do the request and get back a response...
       */
 
-      httpEncryption(http, encryption);
-
       if ((response = cupsDoRequest(http, request, "/admin/")) != NULL)
       {
         if (response->request.status.status_code > IPP_OK_CONFLICT)
@@ -306,5 +304,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: accept.c,v 1.11 2001/01/23 17:36:22 mike Exp $".
+ * End of "$Id: accept.c,v 1.12 2001/05/06 00:11:26 mike Exp $".
  */
index c8eda40ba336f8744d695e949f231e09dda53000..39b33f8e2e155ea76b36e8fc9eb9778b7e368bae 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: cancel.c,v 1.19 2001/03/02 17:35:04 mike Exp $"
+ * "$Id: cancel.c,v 1.20 2001/05/06 00:11:26 mike Exp $"
  *
  *   "cancel" command for the Common UNIX Printing System (CUPS).
  *
@@ -101,7 +101,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
              httpClose(http);
 
            if (argv[i][2] != '\0')
-             http = httpConnect(argv[i] + 2, ippPort());
+             http = httpConnectEncrypt(argv[i] + 2, ippPort(), encryption);
            else
            {
              i ++;
@@ -112,7 +112,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
                return (1);
               }
              else
-               http = httpConnect(argv[i], ippPort());
+               http = httpConnectEncrypt(argv[i], ippPort(), encryption);
            }
 
            if (http == NULL)
@@ -189,7 +189,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
          *host++ = '\0';
 
-         if ((http = httpConnect(host, ippPort())) == NULL)
+         if ((http = httpConnectEncrypt(host, ippPort(), encryption)) == NULL)
          {
            perror("cancel: Unable to connect to server");
            return (1);
@@ -202,7 +202,8 @@ main(int  argc,                     /* I - Number of command-line arguments */
       */
 
       if (http == NULL)
-       if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
+       if ((http = httpConnectEncrypt(cupsServer(), ippPort(),
+                                      encryption)) == NULL)
        {
          fputs("cancel: Unable to contact server!\n", stderr);
          return (1);
@@ -253,8 +254,6 @@ main(int  argc,                     /* I - Number of command-line arguments */
       * Do the request and get back a response...
       */
 
-      httpEncryption(http, encryption);
-
       if (op == IPP_PURGE_JOBS)
         response = cupsDoRequest(http, request, "/admin/");
       else
@@ -282,5 +281,5 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: cancel.c,v 1.19 2001/03/02 17:35:04 mike Exp $".
+ * End of "$Id: cancel.c,v 1.20 2001/05/06 00:11:26 mike Exp $".
  */
index dc185a67ba01e74fa564fd7f7c0188cc3ae2ae99..c431e68a226ceb03e44c597462420968ca22bbff 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lp.c,v 1.29 2001/03/09 14:26:54 mike Exp $"
+ * "$Id: lp.c,v 1.30 2001/05/06 00:11:26 mike Exp $"
  *
  *   "lp" command for the Common UNIX Printing System (CUPS).
  *
@@ -579,7 +579,7 @@ set_job_attrs(int           job_id, /* I - Job ID */
   char         uri[HTTP_MAX_URI];      /* URI for job */
 
 
-  http = httpConnect(cupsServer(), ippPort());
+  http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption());
 
   language = cupsLangDefault();
 
@@ -650,5 +650,5 @@ sighandler(int s)   /* I - Signal number */
 
 
 /*
- * End of "$Id: lp.c,v 1.29 2001/03/09 14:26:54 mike Exp $".
+ * End of "$Id: lp.c,v 1.30 2001/05/06 00:11:26 mike Exp $".
  */
index 5ccb24a81f2a4fac9a6a38bc5e30ef40994d1b08..db17e7fa7d70e668d630e30f074b7019929ce646 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpadmin.c,v 1.22 2001/02/07 00:33:55 mike Exp $"
+ * "$Id: lpadmin.c,v 1.23 2001/05/06 00:11:27 mike Exp $"
  *
  *   "lpadmin" command for the Common UNIX Printing System (CUPS).
  *
@@ -109,15 +109,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'c' : /* Add printer to class */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -154,15 +152,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'd' : /* Set as default destination */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (argv[i][2])
@@ -195,7 +191,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
              httpClose(http);
 
            if (argv[i][2] != '\0')
-             http = httpConnect(argv[i] + 2, ippPort());
+             http = httpConnectEncrypt(argv[i] + 2, ippPort(), encryption);
            else
            {
              i ++;
@@ -206,7 +202,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
                return (1);
               }
              else
-               http = httpConnect(argv[i], ippPort());
+               http = httpConnectEncryption(argv[i], ippPort(), encryption);
            }
 
            if (http == NULL)
@@ -215,24 +211,19 @@ main(int  argc,                   /* I - Number of command-line arguments */
              return (1);
            }
            else
-           {
-              httpEncryption(http, encryption);
              cupsSetServer(http->hostname);
-           }
            break;
 
         case 'i' : /* Use the specified interface script */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -275,15 +266,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
 
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
             enable_printer(http, printer);
@@ -292,15 +281,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'm' : /* Use the specified standard script/PPD file */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -350,15 +337,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'p' : /* Add/modify a printer */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (argv[i][2])
@@ -391,28 +376,24 @@ main(int  argc,                   /* I - Number of command-line arguments */
              httpClose(http);
 
               *host++ = '\0';
-              if ((http = httpConnect(host, ippPort())) == NULL)
+              if ((http = httpConnectEncrypt(host, ippPort(), encryption)) == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
            }
            break;
 
         case 'r' : /* Remove printer from class */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -479,15 +460,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'v' : /* Set the device-uri attribute */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -516,15 +495,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'x' : /* Delete a printer */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (argv[i][2])
@@ -557,7 +534,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
              httpClose(http);
 
               *host++ = '\0';
-              if ((http = httpConnect(host, ippPort())) == NULL)
+              if ((http = httpConnectEncrypt(host, ippPort(), encryption)) == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
@@ -571,15 +548,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'D' : /* Set the printer-info attribute */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -608,15 +583,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'L' : /* Set the printer-location attribute */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -645,15 +618,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'P' : /* Use the specified PPD file */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpadmin: Unable to connect to server");
                return (1);
              }
-
-              httpEncryption(http, encryption);
             }
 
            if (printer == NULL)
@@ -697,15 +668,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
   {
     if (!http)
     {
-      http = httpConnect(cupsServer(), ippPort());
+      http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
       if (http == NULL)
       {
        perror("lpadmin: Unable to connect to server");
        return (1);
       }
-
-      httpEncryption(http, encryption);
     }
 
     if (printer == NULL)
@@ -1801,5 +1770,5 @@ validate_name(const char *name)   /* I - Name to check */
 
 
 /*
- * End of "$Id: lpadmin.c,v 1.22 2001/02/07 00:33:55 mike Exp $".
+ * End of "$Id: lpadmin.c,v 1.23 2001/05/06 00:11:27 mike Exp $".
  */
index c8cbc92cc1e7a5b02205f5c95984a6adbcc6604c..ed0abe754efc4856ff3d01a2d1d3cc9dee280592 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpinfo.c,v 1.3 2001/01/23 17:36:23 mike Exp $"
+ * "$Id: lpinfo.c,v 1.4 2001/05/06 00:11:27 mike Exp $"
  *
  *   "lpinfo" command for the Common UNIX Printing System (CUPS).
  *
@@ -90,15 +90,13 @@ main(int  argc,                     /* I - Number of command-line arguments */
         case 'm' : /* Show models */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpinfo: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             show_models(http, long_status);
@@ -107,15 +105,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'v' : /* Show available devices */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpinfo: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             show_devices(http, long_status);
@@ -126,7 +122,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
              httpClose(http);
 
            if (argv[i][2] != '\0')
-             http = httpConnect(argv[i] + 2, ippPort());
+             http = httpConnectEncrypt(argv[i] + 2, ippPort(), encryption);
            else
            {
              i ++;
@@ -137,7 +133,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
                return (1);
               }
 
-             http = httpConnect(argv[i], ippPort());
+             http = httpConnectEncrypt(argv[i], ippPort(), encryption);
            }
 
            if (http == NULL)
@@ -145,8 +141,6 @@ main(int  argc,                     /* I - Number of command-line arguments */
              perror("lpinfo: Unable to connect to server");
              return (1);
            }
-
-           httpEncryption(http, encryption);
            break;
 
        default :
@@ -446,5 +440,5 @@ show_models(http_t *http,   /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpinfo.c,v 1.3 2001/01/23 17:36:23 mike Exp $".
+ * End of "$Id: lpinfo.c,v 1.4 2001/05/06 00:11:27 mike Exp $".
  */
index 8294f60a5f9fea3623c730e747cf30077256be74..1132cf94eb9e1db6800818543a0a030eabde0bd7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpmove.c,v 1.5 2001/01/23 17:36:24 mike Exp $"
+ * "$Id: lpmove.c,v 1.6 2001/05/06 00:11:27 mike Exp $"
  *
  *   "lpmove" command for the Common UNIX Printing System (CUPS).
  *
@@ -88,7 +88,7 @@ main(int  argc,                       /* I - Number of command-line arguments */
              httpClose(http);
 
            if (argv[i][2] != '\0')
-             http = httpConnect(argv[i] + 2, ippPort());
+             http = httpConnectEncrypt(argv[i] + 2, ippPort(), encryption);
            else
            {
              i ++;
@@ -99,7 +99,7 @@ main(int  argc,                       /* I - Number of command-line arguments */
                return (1);
               }
 
-             http = httpConnect(argv[i], ippPort());
+             http = httpConnectEncrypt(argv[i], ippPort(), encryption);
            }
 
            if (http == NULL)
@@ -107,8 +107,6 @@ main(int  argc,                     /* I - Number of command-line arguments */
              perror("lpmove: Unable to connect to server");
              return (1);
            }
-
-           httpEncryption(http, encryption);
            break;
 
        default :
@@ -138,15 +136,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
 
   if (!http)
   {
-    http = httpConnect(cupsServer(), ippPort());
+    http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
     if (http == NULL)
     {
       perror("lpmove: Unable to connect to server");
       return (1);
     }
-
-    httpEncryption(http, encryption);
   }
 
   move_job(http, atoi(job), dest);
@@ -232,5 +228,5 @@ move_job(http_t     *http,  /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpmove.c,v 1.5 2001/01/23 17:36:24 mike Exp $".
+ * End of "$Id: lpmove.c,v 1.6 2001/05/06 00:11:27 mike Exp $".
  */
index 05605159622391ba1eda50b0919bda44cd78d45a..a90e7cddd8d468e5e57d24c61656983afce968d9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpstat.c,v 1.37 2001/01/26 15:29:59 mike Exp $"
+ * "$Id: lpstat.c,v 1.38 2001/05/06 00:11:27 mike Exp $"
  *
  *   "lpstat" command for the Common UNIX Printing System (CUPS).
  *
@@ -119,15 +119,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'a' : /* Show acceptance status */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             if (num_dests == 0)
@@ -147,15 +145,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'c' : /* Show classes and members */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
            if (argv[i][2] != '\0')
@@ -187,8 +183,8 @@ main(int  argc,                     /* I - Number of command-line arguments */
 
            if (argv[i][2] != '\0')
            {
-             http = httpConnect(argv[i] + 2, ippPort());
-             snprintf(server, sizeof(server), "CUPS_SERVER=%s", argv[i] + 2);
+             http = httpConnectEncrypt(argv[i] + 2, ippPort(), encryption);
+             cupsSetServer(argv[i] + 2);
            }
            else
            {
@@ -200,18 +196,15 @@ main(int  argc,                   /* I - Number of command-line arguments */
                return (1);
               }
 
-             http = httpConnect(argv[i], ippPort());
-             snprintf(server, sizeof(server), "CUPS_SERVER=%s", argv[i] + 2);
+             http = httpConnectEncrypt(argv[i], ippPort(), encryption);
+             cupsSetServer(argv[i]);
            }
 
-            putenv(server);
            if (http == NULL)
            {
              perror("lpstat: Unable to connect to server");
              return (1);
            }
-
-           httpEncryption(http, encryption);
            break;
 
         case 'l' : /* Long status */
@@ -221,15 +214,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'o' : /* Show jobs by destination */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
            if (argv[i][2] != '\0')
@@ -246,15 +237,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'p' : /* Show printers */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             if (num_dests == 0)
@@ -274,15 +263,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'r' : /* Show scheduler status */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
            show_scheduler(http);
@@ -291,15 +278,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 's' : /* Show summary */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             if (num_dests == 0)
@@ -313,15 +298,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 't' : /* Show all info */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             if (num_dests == 0)
@@ -339,15 +322,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'u' : /* Show jobs by user */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
            if (argv[i][2] != '\0')
@@ -364,15 +345,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
         case 'v' : /* Show printer devices */
            if (!http)
            {
-              http = httpConnect(cupsServer(), ippPort());
+              http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
              if (http == NULL)
              {
                perror("lpstat: Unable to connect to server");
                return (1);
              }
-
-             httpEncryption(http, encryption);
             }
 
             if (num_dests == 0)
@@ -398,15 +377,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
     {
       if (!http)
       {
-       http = httpConnect(cupsServer(), ippPort());
+       http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
        if (http == NULL)
        {
          perror("lpstat: Unable to connect to server");
          return (1);
        }
-
-       httpEncryption(http, encryption);
       }
 
       show_jobs(http, argv[i], NULL, long_status, ranking);
@@ -416,15 +393,13 @@ main(int  argc,                   /* I - Number of command-line arguments */
   {
     if (!http)
     {
-      http = httpConnect(cupsServer(), ippPort());
+      http = httpConnectEncrypt(cupsServer(), ippPort(), encryption);
 
       if (http == NULL)
       {
        perror("lpstat: Unable to connect to server");
        return (1);
       }
-
-      httpEncryption(http, encryption);
     }
 
     show_jobs(http, NULL, cupsUser(), long_status, ranking);
@@ -791,7 +766,7 @@ show_classes(http_t     *http,      /* I - HTTP connection to server */
       {
         httpSeparate(printer_uri, method, username, server, &port, resource);
 
-        if ((http2 = httpConnect(server, port)) != NULL)
+        if ((http2 = httpConnectEncrypt(server, port, encryption)) != NULL)
        {
         /*
          * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the
@@ -1871,5 +1846,5 @@ show_scheduler(http_t *http)      /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpstat.c,v 1.37 2001/01/26 15:29:59 mike Exp $".
+ * End of "$Id: lpstat.c,v 1.38 2001/05/06 00:11:27 mike Exp $".
  */