diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-03-30 13:11:47 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-03-30 13:11:47 +0000 |
commit | ae4ef84702cbecd4ca004349bcb4ff6cae6153fe (patch) | |
tree | 783a51217c96f5c3cb245ea1145bda425c2f819e /include/libssh/libssh.h | |
parent | 1fd7a875beca36597e987729bd76928a9593cfd1 (diff) | |
download | libssh-ae4ef84702cbecd4ca004349bcb4ff6cae6153fe.tar.gz libssh-ae4ef84702cbecd4ca004349bcb4ff6cae6153fe.tar.xz libssh-ae4ef84702cbecd4ca004349bcb4ff6cae6153fe.zip |
Create a ssh_get_hexa function.
This function converts a buffer into a colon separated hex string.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@308 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 233f9f6..d865aa3 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -231,7 +231,8 @@ void *string_data(STRING *str); void string_free(STRING *str); /* useful for debug */ -void ssh_print_hexa(char *descr, const unsigned char *what, int len); +char *ssh_get_hexa(const unsigned char *what, size_t len); +void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len); int ssh_get_random(void *where,int len,int strong); /* this one can be called by the client to see the hash of the public key before accepting it */ |