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)
else
{
/*
- * Schemes other than mailto: all have //...
+ * Schemes other than mailto: and tel: all have //...
*/
if ((ptr + 2) < end)
*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;
/*
/*
* "$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.
*/
/*
{ 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 },
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 */
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.
return (httpLoadCredentials(path, credentials, common_name));
}
+#endif /* 0 */
/*