Read public keys the right way (tm).
This commit is contained in:
parent
ca73b722cb
commit
eb1c9814e6
1 changed files with 7 additions and 4 deletions
|
@ -333,10 +333,12 @@ cp
|
||||||
tmp->from = myself->vpn_ip;
|
tmp->from = myself->vpn_ip;
|
||||||
tmp->expiry = my_key_expiry;
|
tmp->expiry = my_key_expiry;
|
||||||
tmp->len = strlen(my_public_key_base36);
|
tmp->len = strlen(my_public_key_base36);
|
||||||
strcpy(&tmp->key, my_public_key_base36);
|
strcpy(&(tmp->key), my_public_key_base36);
|
||||||
|
|
||||||
cp
|
cp
|
||||||
fw = lookup_conn(to);
|
syslog(LOG_DEBUG, "key sent = %s", my_public_key_base36);
|
||||||
|
cp
|
||||||
|
fw = lookup_conn(to);
|
||||||
|
|
||||||
cp
|
cp
|
||||||
if(!fw)
|
if(!fw)
|
||||||
|
@ -346,9 +348,10 @@ cp
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
cp
|
cp
|
||||||
|
syslog(LOG_DEBUG, "key sent = %s", &(tmp->key));
|
||||||
|
|
||||||
syslog(LOG_DEBUG, "key sent = %s", tmp->key);
|
cp
|
||||||
if(debug_lvl > 2)
|
if(debug_lvl > 2)
|
||||||
syslog(LOG_DEBUG, "Sending public key to " IP_ADDR_S,
|
syslog(LOG_DEBUG, "Sending public key to " IP_ADDR_S,
|
||||||
IP_ADDR_V(fw->nexthop->vpn_ip));
|
IP_ADDR_V(fw->nexthop->vpn_ip));
|
||||||
cp
|
cp
|
||||||
|
|
Loading…
Reference in a new issue