diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-12 20:40:43 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-06-12 20:40:43 +0000 |
commit | da3d665a13e7989a9cf78d07738a92981f6e3486 (patch) | |
tree | d75038a70977204b74b610417379588436001c86 /libssh/keyfiles.c | |
parent | fe51f9c7662b7391f80953bedc4fe61b89013913 (diff) | |
download | libssh-da3d665a13e7989a9cf78d07738a92981f6e3486.tar.gz libssh-da3d665a13e7989a9cf78d07738a92981f6e3486.tar.xz libssh-da3d665a13e7989a9cf78d07738a92981f6e3486.zip |
begin fixing the ssh_say everywhere
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@167 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r-- | libssh/keyfiles.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 63e182e..8a2c498 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -727,23 +727,23 @@ STRING *publickey_from_next_file(SSH_SESSION *session,char **pub_keys_path,char ++*count; /* are them readable ? */ snprintf(public,256,pub,home); - ssh_say(2,"Trying to open %s\n",public); + ssh_log(session,SSH_LOG_PACKET,"Trying to open public key %s",public); if(!ssh_file_readaccess_ok(public)){ - ssh_say(2,"Failed\n"); + ssh_log(session,SSH_LOG_PACKET,"Failed"); return publickey_from_next_file(session,pub_keys_path,keys_path,privkeyfile,type,count); } snprintf(private,256,priv,home); - ssh_say(2,"Trying to open %s\n",private); + ssh_log(session,SSH_LOG_PACKET,"Trying to open private key %s",private); if(!ssh_file_readaccess_ok(private)){ - ssh_say(2,"Failed\n"); + ssh_log(session,SSH_LOG_PACKET,"Failed"); return publickey_from_next_file(session,pub_keys_path,keys_path,privkeyfile,type,count); } - ssh_say(2,"Okay both files ok\n"); + ssh_log(session,SSH_LOG_PACKET,"Success reading public and private key"); /* ok, we are sure both the priv8 and public key files are readable : we return the public one as a string, and the private filename in arguments */ pubkey=publickey_from_file(session,public,type); if(!pubkey){ - ssh_say(2,"Wasn't able to open public key file %s : %s\n",public,ssh_get_error(session)); + ssh_log(session,SSH_LOG_PACKET,"Wasn't able to open public key file %s : %s",public,ssh_get_error(session)); return publickey_from_next_file(session,pub_keys_path,keys_path,privkeyfile,type,count); } *privkeyfile=realloc(*privkeyfile,strlen(private)+1); |