36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 9ca4e5e2bd5fdf1d15a862faf8d4d1ddc0664bd0 Mon Sep 17 00:00:00 2001
|
|
From: Christos Tsantilas <christos@chtsanti.net>
|
|
Date: Fri, 21 Feb 2025 13:34:06 +0200
|
|
Subject: [PATCH] Fix http_auth_method::release_authentication_header method
|
|
declaration
|
|
|
|
Requires a "char *" argument.
|
|
|
|
Reported with PR#72 at github:
|
|
https://github.com/c-icap/c-icap-server/pull/72
|
|
|
|
Upstream: 48a221b0197727b26f90c00544fa19c67d0f5d47
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
[Bernd: rebased for 0.5.14]
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
---
|
|
http_auth.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/http_auth.c b/http_auth.c
|
|
index 1883b55..b831bb1 100644
|
|
--- a/http_auth.c
|
|
+++ b/http_auth.c
|
|
@@ -62,7 +62,7 @@ int http_authenticate(ci_request_t * req, char *use_method)
|
|
authenticator_module_t **authenticators;
|
|
void *method_data;
|
|
const char *auth_str, *method_str, *username;
|
|
- char *auth_header = NULL;
|
|
+ const char *auth_header = NULL;
|
|
int len, res;
|
|
|
|
if (ALLOW_REMOTE_PROXY_USERS && !use_method) {
|
|
--
|
|
2.51.0
|
|
|