]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix builds.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 5 Dec 2013 19:51:58 +0000 (19:51 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 5 Dec 2013 19:51:58 +0000 (19:51 +0000)
Fix tel: URIs (<rdar://problem/15418463>)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11444 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/http-support.c
cups/testhttp.c
cups/tls-darwin.c
doc/help/man-cupsd.conf.html

index bea6b7a79e25a5c724f7507ad20285e7cb89ee85..bec268343368fb8e8606013e0399420bfb0d281f 100644 (file)
@@ -192,10 +192,10 @@ httpAssembleURI(
   if (!ptr)
     goto assemble_overflow;
 
-  if (!strcmp(scheme, "mailto"))
+  if (!strcmp(scheme, "mailto") || !strcmp(scheme, "tel"))
   {
    /*
-    * mailto: only has :, no //...
+    * mailto: and tel: only have :, no //...
     */
 
     if (ptr < end)
@@ -206,7 +206,7 @@ httpAssembleURI(
   else
   {
    /*
-    * Schemes other than mailto: all have //...
+    * Schemes other than mailto: and tel: all have //...
     */
 
     if ((ptr + 2) < end)
@@ -1059,7 +1059,7 @@ httpSeparateURI(
     *port = 515;
   else if (!strcmp(scheme, "socket"))  /* Not yet registered with IANA... */
     *port = 9100;
-  else if (strcmp(scheme, "file") && strcmp(scheme, "mailto"))
+  else if (strcmp(scheme, "file") && strcmp(scheme, "mailto") && strcmp(scheme, "tel"))
     status = HTTP_URI_STATUS_UNKNOWN_SCHEME;
 
  /*
index a1fbc37aaf9bc5c18d98047eb34e36e2a4a35b47..a197a2e4b040731608d4c03093109495d7a6b458 100644 (file)
@@ -1,22 +1,18 @@
 /*
  * "$Id$"
  *
- *   HTTP test program for CUPS.
+ * HTTP test program for CUPS.
  *
- *   Copyright 2007-2013 by Apple Inc.
- *   Copyright 1997-2006 by Easy Software Products.
+ * Copyright 2007-2013 by Apple Inc.
+ * Copyright 1997-2006 by Easy Software Products.
  *
- *   These coded instructions, statements, and computer programs are the
- *   property of Apple Inc. and are protected by Federal copyright
- *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
- *   which should have been included with this file.  If this file is
- *   file is missing or damaged, see the license at "http://www.cups.org/".
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file.  If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
  *
- *   This file is subject to the Apple OS-Developed Software exception.
- *
- * Contents:
- *
- *   main() - Main entry.
+ * This file is subject to the Apple OS-Developed Software exception.
  */
 
 /*
@@ -105,6 +101,9 @@ static uri_test_t   uri_tests[] =   /* URI test data */
                          { HTTP_URI_STATUS_OK, "socket://192.168.1.1:9101/",
                            "socket", "", "192.168.1.1", "/", 9101, 9101,
                            HTTP_URI_CODING_MOST  },
+                         { HTTP_URI_STATUS_OK, "tel:8005551212",
+                           "tel", "", "", "8005551212", 0, 0,
+                           HTTP_URI_CODING_MOST  },
                          { HTTP_URI_STATUS_OK, "ipp://username:password@[v1.fe80::200:1234:5678:9abc+eth0]:999/ipp",
                            "ipp", "username:password", "fe80::200:1234:5678:9abc%eth0", "/ipp", 999, 999,
                            HTTP_URI_CODING_MOST  },
index beb5e62eca2dc75bd8c5fb7be6648d3be6f1b0b7..4dda4f2d3b69840526ab63e9ae99ea3b5bd791d4 100644 (file)
@@ -180,6 +180,13 @@ httpLoadCredentials(
     cups_array_t **credentials,                /* IO - Credentials */
     const char   *common_name)         /* I  - Common name for credentials */
 {
+  (void)path;
+  (void)credentials;
+  (void)common_name;
+
+  return (-1);
+
+#if 0
   OSStatus             err;            /* Error info */
   SecKeychainRef       keychain = NULL;/* Keychain reference */
   SecIdentitySearchRef search = NULL;  /* Search reference */
@@ -246,33 +253,11 @@ httpLoadCredentials(
     CFRelease(query);
 
   return (certificates);
-
-}
-
-
-/*
- * 'httpLoadPEM()' - Load PEM-encoded credentials from separate files.
- *
- * @since CUPS 2.0@
- */
-
-int                                    /* O - 0 on success, -1 on error */
-httpLoadPEM(const char *certificate,   /* I - Certificate file */
-           const char *private_key,    /* I - Private key file */
-            const char *chain,         /* I - Certificate chain file or @code NULL@ */
-           cups_array_t **credentials) /* O - Credentials */
-{
-  (void)certificate;
-  (void)private_key;
-  (void)chain;
-
-  if (credentials)
-    *credentials = NULL;
-
-  return (-1);
+#endif /* 0 */
 }
 
 
+#if 0
 /*
  * 'httpMakeCredentials()' - Create self-signed credentials for the given
  *                           name.
@@ -467,6 +452,7 @@ cleanup:
 
   return (httpLoadCredentials(path, credentials, common_name));
 }
+#endif /* 0 */
 
 
 /*
index 227ccfe2fb5669bda0888edf5c6baf6cc30113e1..f900c3c452b290ee761204e67cd1d188118425d6 100644 (file)
@@ -598,14 +598,6 @@ responses.
 <dd></dd>
 <dd>Listens on the specified address and port for encrypted connections.
 </dd>
-<dt>SSLOptions None
-</dt>
-<dd></dd>
-<dt>SSLOptions NoEmptyFragments
-</dt>
-<dd></dd>
-<dd>Sets SSL/TLS protocol options for encrypted connections.
-</dd>
 <dt>SSLPort
 </dt>
 <dd></dd>