projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moving files, first attempt at gcrypt compatibility, more interface
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
cb060bf
..
67a9490
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.3
8 2002/04/13 11:07:12
zarq Exp $
+ $Id: net.c,v 1.3
9 2002/04/28 12:46:26
zarq Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-396,7
+396,9
@@
cp
if(debug_lvl >= DEBUG_STATUS)
syslog(LOG_INFO, _("Regenerating symmetric key"));
if(debug_lvl >= DEBUG_STATUS)
syslog(LOG_INFO, _("Regenerating symmetric key"));
+#ifdef USE_OPENSSL
RAND_pseudo_bytes(myself->key, myself->keylength);
RAND_pseudo_bytes(myself->key, myself->keylength);
+#endif
send_key_changed(myself->connection, myself);
keyexpires = now + keylifetime;
}
send_key_changed(myself->connection, myself);
keyexpires = now + keylifetime;
}