diff options
author | James Yonan <james@openvpn.net> | 2010-06-01 07:12:27 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-06-01 07:12:27 +0000 |
commit | aaf72974672e4f2af2053247b63ef6f06bdc80c0 (patch) | |
tree | ce55a352a9bb5f4e95a650f871ab0843964f4007 /push.c | |
parent | Implemented http-proxy-override and http-proxy-fallback directives to make it (diff) | |
download | openvpn-aaf72974672e4f2af2053247b63ef6f06bdc80c0.tar.xz |
Implemented a key/value auth channel from client to server.
Version 2.1.1i
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5668 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | push.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -102,8 +102,8 @@ send_auth_failed (struct context *c, const char *client_reason) schedule_exit (c, c->options.scheduled_exit_interval, SIGTERM); len = (client_reason ? strlen(client_reason)+1 : 0) + sizeof(auth_failed); - if (len > TLS_CHANNEL_BUF_SIZE) - len = TLS_CHANNEL_BUF_SIZE; + if (len > PUSH_BUNDLE_SIZE) + len = PUSH_BUNDLE_SIZE; { struct buffer buf = alloc_buf_gc (len, &gc); @@ -171,7 +171,7 @@ bool send_push_reply (struct context *c) { struct gc_arena gc = gc_new (); - struct buffer buf = alloc_buf_gc (TLS_CHANNEL_BUF_SIZE, &gc); + struct buffer buf = alloc_buf_gc (PUSH_BUNDLE_SIZE, &gc); struct push_entry *e = c->options.push_list.head; bool multi_push = false; static char cmd[] = "PUSH_REPLY"; |