]> tinc-vpn.org Git - tinc/blobdiff - src/protocol_key.c
Use the crypto wrappers again instead of calling OpenSSL directly.
[tinc] / src / protocol_key.c
index 66ffb115f1e7f207aeef8032fd164092f7ca27a5..52666d998698d2d1f6d89f01f67836bf067aa51a 100644 (file)
@@ -136,7 +136,7 @@ bool req_key_h(connection_t *c, char *request) {
 
 bool send_ans_key(connection_t *c, const node_t *from, const node_t *to) {
        size_t keylen = cipher_keylength(&from->cipher);
-       char key[keylen];
+       char key[keylen * 2 + 1];
 
        cp();