summaryrefslogtreecommitdiffstats
path: root/libssh/keys.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-05 10:00:41 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-05 10:00:41 +0000
commitf8ef75c5105e7cf6348495dd3498c990827fd3ca (patch)
tree81e2e2bfb6876e9280610fd18b1e8e092926321a /libssh/keys.c
parentb7c65baef3d073e3afbee9724e5d9ca5aff0d95b (diff)
downloadlibssh-f8ef75c5105e7cf6348495dd3498c990827fd3ca.tar.gz
libssh-f8ef75c5105e7cf6348495dd3498c990827fd3ca.tar.xz
libssh-f8ef75c5105e7cf6348495dd3498c990827fd3ca.zip
Fix build warnings.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@396 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/keys.c')
-rw-r--r--libssh/keys.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index c57a45f2..b1a9cc00 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -36,7 +36,7 @@
*/
/* Public key decoding functions */
-char *ssh_type_to_char(int type){
+const char *ssh_type_to_char(int type) {
switch(type){
case TYPE_DSS:
return "ssh-dss";
@@ -111,7 +111,8 @@ PUBLIC_KEY *publickey_make_dss(SSH_SESSION *session, BUFFER *buffer){
return key;
}
-PUBLIC_KEY *publickey_make_rsa(SSH_SESSION *session, BUFFER *buffer, char *type){
+PUBLIC_KEY *publickey_make_rsa(SSH_SESSION *session, BUFFER *buffer,
+ const char *type) {
STRING *e,*n;
PUBLIC_KEY *key;