aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-01 16:33:44 +0000
committerOmar Polo <op@omarpolo.com>2022-01-01 16:33:44 +0000
commitd49093c105e7e9af2638bce945374ac0036b3498 (patch)
tree813102bedbdfb4ead9fe520c2dea30b966a02578 /gmid.h
parentda2185f37f70f8665c4d800f8f9bbf4027fd7b81 (diff)
support optional client certificate for proxy rule
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gmid.h b/gmid.h
index 6798800..5432801 100644
--- a/gmid.h
+++ b/gmid.h
@@ -113,6 +113,10 @@ struct location {
char *proxy_host;
const char *proxy_port;
+ uint8_t *proxy_cert;
+ size_t proxy_cert_len;
+ uint8_t *proxy_key;
+ size_t proxy_key_len;
const char *dir;
int dirfd;
@@ -238,6 +242,7 @@ struct client {
struct sockaddr_storage addr;
struct vhost *host; /* host they're talking to */
size_t loc; /* location matched */
+ struct location *l;
SPLAY_ENTRY(client) entry;
};