diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-05 10:59:16 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-05 10:59:16 +0000 |
commit | db4ff30f387275b49378350f109893d0dc2be0b8 (patch) | |
tree | f1d08f61e9f20fd0d7c189cab56ab6362149b971 /include | |
parent | 8253e2170e39da83d57207f57e5997feb7ffa230 (diff) | |
download | libssh-db4ff30f387275b49378350f109893d0dc2be0b8.tar.gz libssh-db4ff30f387275b49378350f109893d0dc2be0b8.tar.xz libssh-db4ff30f387275b49378350f109893d0dc2be0b8.zip |
Make use of const.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@406 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 6dce1006..f265fa0b 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -248,11 +248,12 @@ void publickey_free(PUBLIC_KEY *key); /* in keyfiles.c */ -PRIVATE_KEY *privatekey_from_file(SSH_SESSION *session,char *filename,int type,const char *passphrase); +PRIVATE_KEY *privatekey_from_file(SSH_SESSION *session, const char *filename, + int type, const char *passphrase); STRING *publickey_to_string(PUBLIC_KEY *key); PUBLIC_KEY *publickey_from_privatekey(PRIVATE_KEY *prv); void private_key_free(PRIVATE_KEY *prv); -STRING *publickey_from_file(SSH_SESSION *session, char *filename,int *_type); +STRING *publickey_from_file(SSH_SESSION *session, const char *filename,int *_type); STRING *publickey_from_next_file(SSH_SESSION *session, const char **pub_keys_path, const char **keys_path, char **privkeyfile, int *type, int *count); int ssh_is_server_known(SSH_SESSION *session); |