projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EVP_Cleanup() when quitting.
[tinc]
/
src
/
protocol_key.c
diff --git
a/src/protocol_key.c
b/src/protocol_key.c
index
ebe6354
..
e393dd6
100644
(file)
--- a/
src/protocol_key.c
+++ b/
src/protocol_key.c
@@
-1,7
+1,7
@@
/*
protocol_key.c -- handle the meta-protocol, key exchange
/*
protocol_key.c -- handle the meta-protocol, key exchange
- Copyright (C) 1999-200
4
Ivo Timmermans <ivo@tinc-vpn.org>,
- 2000-200
4
Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 1999-200
5
Ivo Timmermans <ivo@tinc-vpn.org>,
+ 2000-200
5
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-142,10
+142,11
@@
bool req_key_h(connection_t *c)
bool send_ans_key(connection_t *c, const node_t *from, const node_t *to)
{
bool send_ans_key(connection_t *c, const node_t *from, const node_t *to)
{
- char
key[MAX_STRING_SIZE]
;
+ char
*key
;
cp();
cp();
+ key = alloca(2 * from->keylength + 1);
bin2hex(from->key, key, from->keylength);
key[from->keylength * 2] = '\0';
bin2hex(from->key, key, from->keylength);
key[from->keylength * 2] = '\0';