summaryrefslogtreecommitdiffstats
path: root/include/libssh/priv.h
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 /include/libssh/priv.h
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 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index a2f9a3d..f84fde9 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -179,7 +179,7 @@ typedef struct kex_struct {
struct public_key_struct {
int type;
- char *type_c; /* Don't free it ! it is static */
+ const char *type_c; /* Don't free it ! it is static */
#ifdef HAVE_LIBGCRYPT
gcry_sexp_t dsa_pub;
gcry_sexp_t rsa_pub;
@@ -577,7 +577,7 @@ char *ssh_find_matching(const char *in_d, const char *what_d);
PRIVATE_KEY *_privatekey_from_file(void *session,char *filename,int type);
/* in keys.c */
-char *ssh_type_to_char(int type);
+const char *ssh_type_to_char(int type);
int ssh_type_from_name(char *name);
PRIVATE_KEY *privatekey_make_dss(SSH_SESSION *session, BUFFER *buffer);
@@ -586,7 +586,7 @@ PRIVATE_KEY *privatekey_make_rsa(SSH_SESSION *session, BUFFER *buffer,
PRIVATE_KEY *privatekey_from_string(SSH_SESSION *session, STRING *privkey_s);
PUBLIC_KEY *publickey_make_dss(SSH_SESSION *session, BUFFER *buffer);
-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);
PUBLIC_KEY *publickey_from_string(SSH_SESSION *session, STRING *pubkey_s);
SIGNATURE *signature_from_string(SSH_SESSION *session, STRING *signature,PUBLIC_KEY *pubkey,int needed_type);
void signature_free(SIGNATURE *sign);