summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-12-09 11:21:04 +0000
committerDavid Sommerseth <davids@redhat.com>2011-03-25 09:38:28 +0100
commitcf69617bbea45a15423c4188daa9386debcbe1ec (patch)
treec3786b3116633d98e037c76f3ced6378e05edcad /misc.c
parent98c6662472adf7228e4265328aa8d067aa41695f (diff)
downloadopenvpn-cf69617bbea45a15423c4188daa9386debcbe1ec.tar.gz
openvpn-cf69617bbea45a15423c4188daa9386debcbe1ec.tar.xz
openvpn-cf69617bbea45a15423c4188daa9386debcbe1ec.zip
Added "management-external-key" option. This option can be used
instead of "key" in client mode, and allows the client to run without the need to load the actual private key. When the SSL protocol needs to perform an RSA sign operation, the data to be signed will be sent to the management interface via a notification as follows: >RSA_SIGN:[BASE64_DATA] The management interface client should then sign BASE64_DATA using the private key and return the signature as follows: rsa-sig [BASE64_SIG_LINE] . . . END This capability is intended to allow the use of arbitrary cryptographic service providers with OpenVPN via the management interface. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6708 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 4067d85..9e70744 100644
--- a/misc.c
+++ b/misc.c
@@ -1618,7 +1618,7 @@ get_auth_challenge (const char *auth_challenge, struct gc_arena *gc)
if (!buf_parse(&b, ':', work, len))
return NULL;
ac->user = (char *) gc_malloc (strlen(work)+1, true, gc);
- base64_decode(work, (void*)ac->user);
+ base64_decode(work, (void*)ac->user, -1);
/* parse challenge text */
ac->challenge_text = string_alloc(BSTR(&b), gc);