From: Michael R Sweet Date: Tue, 18 Jun 2024 17:09:04 +0000 (-0400) Subject: Add missing (but deprecated and unimplemented) credentials load/save functions. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5226e72f9631af16daa1c257549f064b4148159b;p=thirdparty%2Fcups.git Add missing (but deprecated and unimplemented) credentials load/save functions. --- diff --git a/cups/http.c b/cups/http.c index 1a9337788e..7ea29d7ede 100644 --- a/cups/http.c +++ b/cups/http.c @@ -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. // diff --git a/cups/libcups2.def b/cups/libcups2.def index a932e1c989..0ba1100201 100644 --- a/cups/libcups2.def +++ b/cups/libcups2.def @@ -529,6 +529,7 @@ httpHead httpInitialize httpIsChunked httpIsEncrypted +httpLoadCredentials httpMD5 httpMD5Final httpMD5String @@ -544,6 +545,7 @@ httpReconnect httpReconnect2 httpResolveHostname httpResolveURI +httpSaveCredentials httpSeparate httpSeparate2 httpSeparateURI