summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-03-22 12:23:02 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-03-23 08:49:34 +0100
commit0eddcb44241c0e87260a9c90ac1d1bd50ec8926c (patch)
tree4ecef35da7bd920a254facc71fa53f428723e77e
parentb7f6794e03f4e1f20f78967656c7a7d6d6b1940a (diff)
downloadlibssh-0eddcb44241c0e87260a9c90ac1d1bd50ec8926c.tar.gz
libssh-0eddcb44241c0e87260a9c90ac1d1bd50ec8926c.tar.xz
libssh-0eddcb44241c0e87260a9c90ac1d1bd50ec8926c.zip
Fix the ssh_message_retrieve problem by anihilation
-rw-r--r--include/libssh/legacy.h2
-rw-r--r--src/legacy.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/libssh/legacy.h b/include/libssh/legacy.h
index 7d2d5821..95d74fc0 100644
--- a/include/libssh/legacy.h
+++ b/include/libssh/legacy.h
@@ -86,7 +86,7 @@ LIBSSH_API ssh_string publickey_from_file(ssh_session session, const char *filen
int *type);
LIBSSH_API ssh_public_key publickey_from_privatekey(ssh_private_key prv);
LIBSSH_API ssh_string publickey_to_string(ssh_public_key key);
-
+LIBSSH_API ssh_message ssh_message_retrieve(ssh_session session, uint32_t packettype);
LIBSSH_API void string_burn(ssh_string str);
LIBSSH_API ssh_string string_copy(ssh_string str);
LIBSSH_API void *string_data(ssh_string str);
diff --git a/src/legacy.c b/src/legacy.c
index 75e13630..76bcf503 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -247,4 +247,13 @@ int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len) {
return ssh_channel_write(channel, data, len);
}
+/** @deprecated
+ * @brief Interface previously exported by error.
+ */
+ssh_message ssh_message_retrieve(ssh_session session, uint32_t packettype){
+ (void) packettype;
+ ssh_set_error(session, SSH_FATAL, "ssh_message_retrieve: obsolete libssh call");
+ return NULL;
+}
+
#endif /* WITH_SERVER */