aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/agent.c3
-rw-r--r--libssh/auth.c3
-rw-r--r--libssh/auth1.c3
-rw-r--r--libssh/base64.c3
-rw-r--r--libssh/buffer.c4
-rw-r--r--libssh/channels.c4
-rw-r--r--libssh/channels1.c3
-rw-r--r--libssh/client.c4
-rw-r--r--libssh/connect.c3
-rw-r--r--libssh/crc32.c3
-rw-r--r--libssh/crypt.c3
-rw-r--r--libssh/dh.c4
-rw-r--r--libssh/error.c4
-rw-r--r--libssh/gcrypt_missing.c3
-rw-r--r--libssh/gzip.c4
-rw-r--r--libssh/init.c3
-rw-r--r--libssh/kex.c4
-rw-r--r--libssh/keyfiles.c4
-rw-r--r--libssh/keys.c3
-rw-r--r--libssh/log.c3
-rw-r--r--libssh/match.c5
-rw-r--r--libssh/messages.c6
-rw-r--r--libssh/misc.c4
-rw-r--r--libssh/options.c3
-rw-r--r--libssh/packet.c3
-rw-r--r--libssh/server.c3
-rw-r--r--libssh/session.c4
-rw-r--r--libssh/sftp.c4
-rw-r--r--libssh/sftpserver.c3
-rw-r--r--libssh/socket.c3
-rw-r--r--libssh/string.c3
-rw-r--r--libssh/wrapper.c4
32 files changed, 35 insertions, 78 deletions
diff --git a/libssh/agent.c b/libssh/agent.c
index ffc87632..3aae9196 100644
--- a/libssh/agent.c
+++ b/libssh/agent.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/* This file is based on authfd.c from OpenSSH */
@@ -496,3 +494,4 @@ int agent_is_running(SSH_SESSION *session) {
#endif /* _WIN32 */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/auth.c b/libssh/auth.c
index 5168a167..60934f4f 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include "libssh/priv.h"
@@ -1498,4 +1496,3 @@ int ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i,
}
/** @} */
-
diff --git a/libssh/auth1.c b/libssh/auth1.c
index 4f2b54c3..cf24ae17 100644
--- a/libssh/auth1.c
+++ b/libssh/auth1.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <string.h>
@@ -250,3 +248,4 @@ int ssh_userauth1_password(SSH_SESSION *session, const char *username,
}
#endif /* HAVE_SSH1 */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/base64.c b/libssh/base64.c
index 63b50dce..0ba548e4 100644
--- a/libssh/base64.c
+++ b/libssh/base64.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/* just the dirtiest part of code i ever made */
@@ -285,3 +283,4 @@ unsigned char *bin_to_base64(const unsigned char *source, int len) {
return base64;
}
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/buffer.c b/libssh/buffer.c
index 9b8d6ad9..fb345df2 100644
--- a/libssh/buffer.c
+++ b/libssh/buffer.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdlib.h>
@@ -395,4 +393,4 @@ struct string_struct *buffer_get_mpint(struct buffer_struct *buffer) {
return str;
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/channels.c b/libssh/channels.c
index beebe4ba..fe439f08 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <string.h>
@@ -1871,4 +1869,4 @@ int channel_select(CHANNEL **readchans, CHANNEL **writechans,
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/channels1.c b/libssh/channels1.c
index 44fba829..7042f09f 100644
--- a/libssh/channels1.c
+++ b/libssh/channels1.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <string.h>
@@ -304,3 +302,4 @@ int channel_write1(CHANNEL *channel, const void *data, int len) {
}
#endif /* HAVE_SSH1 */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/client.c b/libssh/client.c
index a7e695f4..eed36bb7 100644
--- a/libssh/client.c
+++ b/libssh/client.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdio.h>
@@ -658,4 +656,4 @@ const char *ssh_copyright(void) {
"file for informations about your rights";
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/connect.c b/libssh/connect.c
index b98e4732..f7843238 100644
--- a/libssh/connect.c
+++ b/libssh/connect.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <errno.h>
@@ -413,3 +411,4 @@ int ssh_select(CHANNEL **channels, CHANNEL **outchannels, socket_t maxfd,
}
/** @} */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/crc32.c b/libssh/crc32.c
index 191ccbdf..1df7dbff 100644
--- a/libssh/crc32.c
+++ b/libssh/crc32.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include "libssh/priv.h"
@@ -91,3 +89,4 @@ u32 ssh_crc32(const char *buf, u32 len) {
return ret;
}
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/crypt.c b/libssh/crypt.c
index 8ccdc561..4fcfe423 100644
--- a/libssh/crypt.c
+++ b/libssh/crypt.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <unistd.h>
@@ -202,3 +200,4 @@ int packet_hmac_verify(SSH_SESSION *session, BUFFER *buffer,
return -1;
}
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/dh.c b/libssh/dh.c
index 069f5568..1f2f3611 100644
--- a/libssh/dh.c
+++ b/libssh/dh.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/*
@@ -1019,4 +1017,4 @@ int signature_verify(SSH_SESSION *session, STRING *signature) {
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/error.c b/libssh/error.c
index 6eb10779..922a7f4a 100644
--- a/libssh/error.c
+++ b/libssh/error.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdio.h>
@@ -94,4 +92,4 @@ int ssh_get_error_code(void *error) {
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/gcrypt_missing.c b/libssh/gcrypt_missing.c
index a9a129b7..7a456a6a 100644
--- a/libssh/gcrypt_missing.c
+++ b/libssh/gcrypt_missing.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdlib.h>
@@ -98,3 +96,4 @@ char *my_gcry_bn2dec(bignum bn) {
}
#endif
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/gzip.c b/libssh/gzip.c
index 73940125..fde821ba 100644
--- a/libssh/gzip.c
+++ b/libssh/gzip.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include "config.h"
@@ -215,4 +213,4 @@ int decompress_buffer(SSH_SESSION *session,BUFFER *buf){
}
#endif /* HAVE_LIBZ && WITH_LIBZ */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/init.c b/libssh/init.c
index 158151bf..b6c99443 100644
--- a/libssh/init.c
+++ b/libssh/init.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include "libssh/priv.h"
@@ -56,3 +54,4 @@ int ssh_finalize(void) {
/**
* @}
*/
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/kex.c b/libssh/kex.c
index 76791bad..77d6938d 100644
--- a/libssh/kex.c
+++ b/libssh/kex.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <string.h>
@@ -785,3 +783,5 @@ error:
leave_function();
return rc;
}
+
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index d6f8859f..1a1511ef 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdio.h>
@@ -1578,4 +1576,4 @@ int ssh_write_knownhost(SSH_SESSION *session) {
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/keys.c b/libssh/keys.c
index c1b48d8a..c53559df 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdlib.h>
@@ -1408,3 +1406,4 @@ STRING *ssh_sign_session_id(SSH_SESSION *session, PRIVATE_KEY *privatekey) {
}
/** @} */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/log.c b/libssh/log.c
index 369871b3..b2f5f415 100644
--- a/libssh/log.c
+++ b/libssh/log.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdio.h>
@@ -77,3 +75,4 @@ void ssh_log(SSH_SESSION *session, int verbosity, const char *format, ...) {
}
/** @} */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/match.c b/libssh/match.c
index b30c2f71..98adf67e 100644
--- a/libssh/match.c
+++ b/libssh/match.c
@@ -35,10 +35,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/*
- * vim: ts=2 sw=2 et cindent
- */
-
#include <ctype.h>
#include <string.h>
#include <sys/types.h>
@@ -186,3 +182,4 @@ int match_hostname(const char *host, const char *pattern, unsigned int len) {
return match_pattern_list(host, pattern, len, 1);
}
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/messages.c b/libssh/messages.c
index bb5cae4e..7dd36869 100644
--- a/libssh/messages.c
+++ b/libssh/messages.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/** \defgroup ssh_messages SSH Messages
@@ -783,5 +781,7 @@ void ssh_message_free(SSH_MESSAGE *msg){
ZERO_STRUCTP(msg);
}
-/** @}
+/**
+ * @}
*/
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/misc.c b/libssh/misc.c
index 095614af..88aa53f6 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <limits.h>
@@ -151,4 +149,4 @@ const char *ssh_version(int req_version) {
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/options.c b/libssh/options.c
index 0667ec70..7c0246ef 100644
--- a/libssh/options.c
+++ b/libssh/options.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdio.h>
@@ -1014,3 +1012,4 @@ int ssh_options_set_auth_callback(SSH_OPTIONS *opt, ssh_auth_callback cb,
}
/** @} */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/packet.c b/libssh/packet.c
index 0655257d..c9a1a50d 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdlib.h>
@@ -779,3 +777,4 @@ int packet_wait(SSH_SESSION *session, int type, int block) {
return packet_wait2(session, type, block);
}
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/server.c b/libssh/server.c
index 9cc59ef7..f1c156f4 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/**
@@ -518,3 +516,4 @@ int ssh_accept(SSH_SESSION *session) {
/** @}
*/
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/session.c b/libssh/session.c
index 64c7fba6..e8f63361 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <string.h>
@@ -335,4 +333,4 @@ int ssh_get_version(SSH_SESSION *session) {
}
/** @} */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/sftp.c b/libssh/sftp.c
index f7df6955..557e4c46 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -20,8 +20,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/* This file contains code written by Nick Zitzmann */
@@ -2395,4 +2393,4 @@ SFTP_ATTRIBUTES *sftp_fstat(SFTP_FILE *file) {
}
#endif /* WITH_SFTP */
-
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/sftpserver.c b/libssh/sftpserver.c
index a6b9cbf0..1bb9d3e2 100644
--- a/libssh/sftpserver.c
+++ b/libssh/sftpserver.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <unistd.h>
@@ -484,3 +482,4 @@ void sftp_handle_remove(SFTP_SESSION *sftp, void *handle) {
}
}
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/socket.c b/libssh/socket.c
index db931454..5bd00133 100644
--- a/libssh/socket.c
+++ b/libssh/socket.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <unistd.h>
@@ -752,3 +750,4 @@ int ssh_socket_get_status(struct socket *s) {
/** @}
*/
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/string.c b/libssh/string.c
index 26d1309c..a74a1b8c 100644
--- a/libssh/string.c
+++ b/libssh/string.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
#include <stdlib.h>
@@ -178,3 +176,4 @@ void string_free(struct string_struct *s) {
}
/** @} */
+/* vim: set ts=2 sw=2 et cindent: */
diff --git a/libssh/wrapper.c b/libssh/wrapper.c
index 905f7528..f2011d88 100644
--- a/libssh/wrapper.c
+++ b/libssh/wrapper.c
@@ -19,8 +19,6 @@
* along with the SSH Library; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
- *
- * vim: ts=2 sw=2 et cindent
*/
/*
@@ -993,3 +991,5 @@ int crypt_set_algorithms_server(SSH_SESSION *session){
leave_function();
return SSH_OK;
}
+
+/* vim: set ts=2 sw=2 et cindent: */