summaryrefslogtreecommitdiffstats
path: root/libssh/keys.c
diff options
context:
space:
mode:
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 c57a45f..b1a9cc0 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;