]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add missing (but deprecated and unimplemented) credentials load/save functions.
authorMichael R Sweet <msweet@msweet.org>
Tue, 18 Jun 2024 17:09:04 +0000 (13:09 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 18 Jun 2024 17:09:04 +0000 (13:09 -0400)
cups/http.c
cups/libcups2.def

index 1a9337788e9a6e7394655b77223b105970def232..7ea29d7ede42655adee7c1864164db05a0001226 100644 (file)
@@ -1525,6 +1525,25 @@ httpIsEncrypted(http_t *http)            // I - HTTP connection
 }
 
 
+//
+// 'httpLoadCredentials()' - Load credentials.
+//
+// @deprecated@ @exclude all@
+//
+
+int                                    // O - -1 on error
+httpLoadCredentials(
+    const char   *path,                        // I - Path for certs
+    cups_array_t **credentials,                // O - Array of credentials
+    const char   *common_name)         // I - Common name
+{
+  if (credentials)
+    *credentials = NULL;
+
+  return (-1);
+}
+
+
 //
 // 'httpOptions()' - Send an OPTIONS request to the server.
 //
@@ -2232,6 +2251,22 @@ httpReconnect2(http_t *http,             // I - HTTP connection
 }
 
 
+//
+// 'httpSaveCredentials()' - Save credentials.
+//
+// @deprecated@ @exclude all@
+//
+
+int                                    // O - -1 on error
+httpSaveCredentials(
+    const char   *path,                        // I - Path for certs
+    cups_array_t *credentials,         // O - Array of credentials
+    const char   *common_name)         // I - Common name
+{
+  return (-1);
+}
+
+
 //
 // 'httpSetAuthString()' - Set the current authorization string.
 //
index a932e1c989e5c5c1d916a6a267457728744ba3a0..0ba1100201e2b8eebc17f0b29954374fd3df368d 100644 (file)
@@ -529,6 +529,7 @@ httpHead
 httpInitialize
 httpIsChunked
 httpIsEncrypted
+httpLoadCredentials
 httpMD5
 httpMD5Final
 httpMD5String
@@ -544,6 +545,7 @@ httpReconnect
 httpReconnect2
 httpResolveHostname
 httpResolveURI
+httpSaveCredentials
 httpSeparate
 httpSeparate2
 httpSeparateURI