From: Ivo Timmermans Date: Sun, 30 Apr 2000 16:31:23 +0000 (+0000) Subject: Read public keys the right way (tm). X-Git-Tag: release-1.0pre1~29 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=eb1c9814e6b2a5206be1fadf19e0dc779690a69e;p=tinc Read public keys the right way (tm). --- diff --git a/src/protocol.c b/src/protocol.c index 7c267838..44f012f7 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -333,10 +333,12 @@ cp tmp->from = myself->vpn_ip; tmp->expiry = my_key_expiry; tmp->len = strlen(my_public_key_base36); - strcpy(&tmp->key, my_public_key_base36); + strcpy(&(tmp->key), my_public_key_base36); cp - fw = lookup_conn(to); + syslog(LOG_DEBUG, "key sent = %s", my_public_key_base36); +cp + fw = lookup_conn(to); cp if(!fw) @@ -346,9 +348,10 @@ cp return -1; } cp + syslog(LOG_DEBUG, "key sent = %s", &(tmp->key)); - syslog(LOG_DEBUG, "key sent = %s", tmp->key); - if(debug_lvl > 2) +cp + if(debug_lvl > 2) syslog(LOG_DEBUG, "Sending public key to " IP_ADDR_S, IP_ADDR_V(fw->nexthop->vpn_ip)); cp