Use the crypto wrappers again instead of calling OpenSSL directly.
[tinc] / src / protocol_key.c
index 66ffb11..52666d9 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();