summaryrefslogtreecommitdiffstats
path: root/libssh/keyfiles.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-05 10:59:16 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-05 10:59:16 +0000
commitdb4ff30f387275b49378350f109893d0dc2be0b8 (patch)
treef1d08f61e9f20fd0d7c189cab56ab6362149b971 /libssh/keyfiles.c
parent8253e2170e39da83d57207f57e5997feb7ffa230 (diff)
downloadlibssh-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 'libssh/keyfiles.c')
-rw-r--r--libssh/keyfiles.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index 3ec936a..73a8704 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -499,7 +499,8 @@ static int pem_get_password(char *buf, int size, int rwflag, void *userdata) {
* \see private_key_free()
* \see publickey_from_privatekey()
*/
-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) {
FILE *file=fopen(filename,"r");
PRIVATE_KEY *privkey;
ssh_auth_callback auth_cb = NULL;
@@ -684,7 +685,8 @@ void private_key_free(PRIVATE_KEY *prv) {
* \see string_free()
* \see publickey_from_privatekey()
*/
-STRING *publickey_from_file(SSH_SESSION *session,char *filename,int *_type){
+STRING *publickey_from_file(SSH_SESSION *session, const char *filename,
+ int *_type) {
BUFFER *buffer;
int type;
STRING *str;