From 14af2e395237e8d0c783ee682226cc945f7d43b3 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 16 Dec 2004 22:58:02 +0000 Subject: [PATCH] Correct comments for hostkey_hash --- src/hostkey.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hostkey.c b/src/hostkey.c index 179d54c..6b18c44 100644 --- a/src/hostkey.c +++ b/src/hostkey.c @@ -485,7 +485,10 @@ LIBSSH2_HOSTKEY_METHOD **libssh2_hostkey_methods(void) } /* {{{ libssh2_hostkey_hash - * Returns NULL terminated hash signature + * Returns hash signature + * Returned buffer should NOT be freed + * Length of buffer is determined by hash type + * i.e. MD5 == 16, SHA1 == 20 */ LIBSSH2_API char *libssh2_hostkey_hash(LIBSSH2_SESSION *session, int hash_type) {