summaryrefslogtreecommitdiffhomepage
path: root/src/basicauth.h
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2018-02-23 20:16:39 +0000
committerrofl0r <rofl0r@users.noreply.github.com>2018-02-25 15:13:45 +0000
commit4d9891e59e7c7ee77137fcdb3d02798af96811ff (patch)
tree63c7c9c994f20e1906c5d46313ef608533b86e6e /src/basicauth.h
parent81ea4feb2ed6ee2fabd4e2ec0557318d764757a2 (diff)
basicauth.[ch]: refactor to make basicauth_string() reusable
Diffstat (limited to 'src/basicauth.h')
-rw-r--r--src/basicauth.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basicauth.h b/src/basicauth.h
index e9366bb..61dc5c3 100644
--- a/src/basicauth.h
+++ b/src/basicauth.h
@@ -21,8 +21,12 @@
#ifndef TINYPROXY_BASICAUTH_H
#define TINYPROXY_BASICAUTH_H
+#include <stddef.h>
#include "vector.h"
+extern ssize_t basicauth_string(const char *user, const char *pass,
+ char *buf, size_t bufsize);
+
extern void basicauth_add (vector_t authlist,
const char *user, const char *pass);