Debug printing change.
authorPekka Riikonen <priikone@silcnet.org>
Sat, 30 Nov 2002 13:48:11 +0000 (13:48 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 30 Nov 2002 13:48:11 +0000 (13:48 +0000)
apps/silcd/serverconfig.c
doc/example_silcd.conf.in
lib/silccrypt/silcpkcs.c

index a49a0844a7256612ecf01f44beb41d04a672e98f..05a08dcb64fe16d719b926011325c2598df98bde 100644 (file)
@@ -153,8 +153,8 @@ static bool my_parse_authdata(SilcAuthMethod auth_meth, const char *p,
                                 NULL, silc_hash_public_key, NULL,
                                 silc_hash_public_key_compare, NULL)) {
       silc_pkcs_public_key_free(public_key);
-      SILC_SERVER_LOG_WARNING(("Warning: file \"%s\" contains a double "
-                              "public key (key discarded)", p));
+      SILC_SERVER_LOG_WARNING(("Warning: public key file \"%s\" already "
+                              "configured, ignoring this key", p));
       return TRUE; /* non fatal error */
     }
 
index 25d05a3a4db7027ae259aadcf8a1a0ce0ac3b710..c098013dfd5820d0c556a2379e7ae70264a80252 100644 (file)
@@ -407,7 +407,7 @@ ConnectionParams {
 # If both are provided then both password and public key based authentication
 # is allowed.  The "PublicKey" includes the single key contained in the
 # specified file, while "PublicKeyDir" includes all files in the specified
-# directory, which must all be valid public keys, non recursively.
+# directory, which must all be valid public keys.
 #
 # Next example connection will match to all incoming client connections,
 # and no authentication is required.
@@ -418,7 +418,7 @@ Client {
        #PublicKey = "/path/to/the/user_my.key";
        #PublicKey = "/path/to/the/user_221.key";
        #PublicKey = "/path/to/the/user_313.key";
-       #PublicKeyDir = "/path/to/keys/dir";
+       #PublicKeyDir = "/path/to/keys/dir/";
        Params = "normal";
 };
 
index afceeacb9a2188b3e9d990409bdd30de9875f478..1038d6219a1fbd91a5e09cd770f3c20e045bbef6 100644 (file)
@@ -1356,6 +1356,10 @@ bool silc_pkcs_load_public_key(const char *filename, SilcPublicKey *public_key,
   unsigned char *cp, *old, *data, byte;
   SilcUInt32 i, data_len, len;
 
+  SILC_LOG_DEBUG(("Loading public key `%s' with %s encoding", filename,
+                 encoding == SILC_PKCS_FILE_PEM ? "Base64" :
+                 encoding == SILC_PKCS_FILE_BIN ? "Binary" : "Unkonwn"));
+  
   old = data = silc_file_readfile(filename, &data_len);
   if (!data)
     return FALSE;