commit 7f820c96e8f833906032cd38f9a347a02da97c0e
parent 821c1df8ec3e63a9d9ef667ed4ec003c0e0f092e
Author: Joris Vink <joris@coders.se>
Date:   Thu, 19 Jul 2018 10:28:38 +0200
Make kore_auth_* public.
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/include/kore/kore.h b/include/kore/kore.h
@@ -566,6 +566,9 @@ int		kore_accesslog_write(const void *, u_int32_t);
 
 #if !defined(KORE_NO_HTTP)
 int		kore_auth_run(struct http_request *, struct kore_auth *);
+int		kore_auth_cookie(struct http_request *, struct kore_auth *);
+int		kore_auth_header(struct http_request *, struct kore_auth *);
+int		kore_auth_request(struct http_request *, struct kore_auth *);
 void		kore_auth_init(void);
 int		kore_auth_new(const char *);
 struct kore_auth	*kore_auth_lookup(const char *);
diff --git a/src/auth.c b/src/auth.c
@@ -23,10 +23,6 @@
 
 TAILQ_HEAD(, kore_auth)		auth_list;
 
-static int	kore_auth_cookie(struct http_request *, struct kore_auth *);
-static int	kore_auth_header(struct http_request *, struct kore_auth *);
-static int	kore_auth_request(struct http_request *, struct kore_auth *);
-
 void
 kore_auth_init(void)
 {
@@ -103,7 +99,7 @@ kore_auth_run(struct http_request *req, struct kore_auth *auth)
 	return (KORE_RESULT_ERROR);
 }
 
-static int
+int
 kore_auth_cookie(struct http_request *req, struct kore_auth *auth)
 {
 	const char	*hdr;
@@ -144,7 +140,7 @@ kore_auth_cookie(struct http_request *req, struct kore_auth *auth)
 	return (i);
 }
 
-static int
+int
 kore_auth_header(struct http_request *req, struct kore_auth *auth)
 {
 	const char	*header;
@@ -155,7 +151,7 @@ kore_auth_header(struct http_request *req, struct kore_auth *auth)
 	return (kore_validator_check(req, auth->validator, header));
 }
 
-static int
+int
 kore_auth_request(struct http_request *req, struct kore_auth *auth)
 {
 	int		ret;