]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/tinc/files/public-key-fix.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / tinc / files / public-key-fix.diff
1 don't load public key for "myself" because this creates problems with
2 keys saved in the subjectPublicKeyInfo format (as keys extracted from a
3 certificate) and is not necessary anyways because the private key already
4 contains the public key.
5
6 diff -u -r1.1 -r1.2
7 --- tinc/src/net_setup.c        2004/02/19 11:55:20     1.1
8 +++ tinc/src/net_setup.c        2004/02/19 13:00:43     1.2
9 @@ -250,8 +250,10 @@
10                 return false;
11         }
12  
13 -       if(!read_rsa_public_key(myself->connection))
14 -               return false;
15 +       //br1: not needed because private key already contains the public key
16 +       //br1: removed because it creates problems with subjectPublicKeyInfo format keys
17 +       //if(!read_rsa_public_key(myself->connection))
18 +       //      return false;
19  
20         if(!get_config_string
21            (lookup_config(myself->connection->config_tree, "Port"), &myport))