aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-02-07 09:46:13 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-02-07 09:46:13 +0100
commitb84949b32c67dc835f328c57b2f49114ddb3f481 (patch)
treefb0de8cce4172f12bb13cc64760bc0c0b5c7a79f
parentc0102e6a5953789ccda93e8dea956e8cc8a046e9 (diff)
downloadlibssh-b84949b32c67dc835f328c57b2f49114ddb3f481.tar.gz
libssh-b84949b32c67dc835f328c57b2f49114ddb3f481.tar.xz
libssh-b84949b32c67dc835f328c57b2f49114ddb3f481.zip
include: Mark ssh_print_hexa as deprecated
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/libssh/libssh.h2
-rw-r--r--src/misc.c8
2 files changed, 2 insertions, 8 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 30a438f4..2aef726c 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -549,6 +549,7 @@ SSH_DEPRECATED LIBSSH_API int ssh_get_publickey(ssh_session session, ssh_key *ke
SSH_DEPRECATED LIBSSH_API int ssh_write_knownhost(ssh_session session);
SSH_DEPRECATED LIBSSH_API char *ssh_dump_knownhost(ssh_session session);
SSH_DEPRECATED LIBSSH_API int ssh_is_server_known(ssh_session session);
+SSH_DEPRECATED LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len);
@@ -701,7 +702,6 @@ LIBSSH_API char *ssh_get_fingerprint_hash(enum ssh_publickey_hash_type type,
unsigned char *hash,
size_t len);
LIBSSH_API void ssh_print_hash(enum ssh_publickey_hash_type type, unsigned char *hash, size_t len);
-LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len);
LIBSSH_API int ssh_send_ignore (ssh_session session, const char *data);
LIBSSH_API int ssh_send_debug (ssh_session session, const char *message, int always_display);
LIBSSH_API void ssh_gssapi_set_creds(ssh_session session, const ssh_gssapi_creds creds);
diff --git a/src/misc.c b/src/misc.c
index 070a7766..a048637f 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -370,13 +370,7 @@ char *ssh_get_hexa(const unsigned char *what, size_t len) {
}
/**
- * @brief Print a buffer as colon separated hex string.
- *
- * @param descr Description printed in front of the hex string.
- *
- * @param what What should be converted to a hex string.
- *
- * @param len Length of the buffer to convert.
+ * @deprecated Please use ssh_print_hash() instead
*/
void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len) {
char *hexa = ssh_get_hexa(what, len);