diff options
38 files changed, 41 insertions, 88 deletions
diff --git a/include/libssh/agent.h b/include/libssh/agent.h index bbe9595..42cb230 100644 --- a/include/libssh/agent.h +++ b/include/libssh/agent.h @@ -46,3 +46,4 @@ #define SSH_AGENT_OLD_SIGNATURE 0x01 #endif /* __AGENT_H */ +/* vim: set ts=2 sw=2 et cindent: */ diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index e363dba..5180539 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -17,8 +17,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 */ /* @@ -67,3 +65,4 @@ struct crypto_struct { #endif }; +/* vim: set ts=2 sw=2 et cindent: */ diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 4e7e4f9..0514095 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -17,8 +17,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 */ #ifndef _LIBSSH_H @@ -385,3 +383,4 @@ int ssh_finalize(void); } #endif #endif /* _LIBSSH_H */ +/* vim: set ts=2 sw=2 et cindent: */ diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 55de553..47652a1 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -17,8 +17,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 */ /* @@ -741,3 +739,4 @@ char *my_gcry_bn2dec(bignum bn); #endif #endif /* _LIBSSH_PRIV_H */ +/* vim: set ts=2 sw=2 et cindent: */ diff --git a/include/libssh/server.h b/include/libssh/server.h index dac318c..26c3319 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -17,8 +17,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 */ /** @@ -179,3 +177,4 @@ int ssh_message_channel_request_reply_success(SSH_MESSAGE *msg); /** * @} */ +/* vim: set ts=2 sw=2 et cindent: */ diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index dc914b1..83c6f1d 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -17,8 +17,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 */ /** @@ -773,3 +771,4 @@ void sftp_handle_remove(SFTP_SESSION *sftp, void *handle); #endif /* SFTP_H */ /** @} */ +/* vim: set ts=2 sw=2 et cindent: */ diff --git a/libssh/agent.c b/libssh/agent.c index ffc8763..3aae919 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 5168a16..60934f4 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 4f2b54c..cf24ae1 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 63b50dc..0ba548e 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 9b8d6ad..fb345df 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 beebe4b..fe439f0 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 44fba82..7042f09 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 a7e695f..eed36bb 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 b98e473..f784323 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 191ccbd..1df7dbf 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 8ccdc56..4fcfe42 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 069f556..1f2f361 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 6eb1077..922a7f4 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 a9a129b..7a456a6 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 7394012..fde821b 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 158151b..b6c9944 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 76791ba..77d6938 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 d6f8859..1a1511e 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 c1b48d8..c53559d 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 369871b..b2f5f41 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 b30c2f7..98adf67 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 bb5cae4..7dd3686 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 095614a..88aa53f 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 0667ec7..7c0246e 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 0655257..c9a1a50 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 9cc59ef..f1c156f 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 64c7fba..e8f6336 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 f7df695..557e4c4 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 a6b9cbf..1bb9d3e 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 db93145..5bd0013 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 26d1309..a74a1b8 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 905f752..f2011d8 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: */ |