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 */
}
# 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.
#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";
};
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;