comparison cli-session.c @ 74:e3adf4cf5465

License boilerplate etc, add Mihnea as an author to some of the files
author Matt Johnston <matt@ucc.asn.au>
date Sat, 14 Aug 2004 17:54:20 +0000
parents eee77ac31ccc
children 0247fbd9379d
comparison
equal deleted inserted replaced
73:0bf5cebe622c 74:e3adf4cf5465
1 /*
2 * Dropbear SSH
3 *
4 * Copyright (c) 2002,2003 Matt Johnston
5 * Copyright (c) 2004 by Mihnea Stoenescu
6 * All rights reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE. */
25
1 #include "includes.h" 26 #include "includes.h"
2 #include "session.h" 27 #include "session.h"
3 #include "dbutil.h" 28 #include "dbutil.h"
4 #include "kex.h" 29 #include "kex.h"
5 #include "ssh.h" 30 #include "ssh.h"
19 struct clientsession cli_ses; /* GLOBAL */ 44 struct clientsession cli_ses; /* GLOBAL */
20 45
21 /* Sorted in decreasing frequency will be more efficient - data and window 46 /* Sorted in decreasing frequency will be more efficient - data and window
22 * should be first */ 47 * should be first */
23 static const packettype cli_packettypes[] = { 48 static const packettype cli_packettypes[] = {
24 /* TYPE, AUTHREQUIRED, FUNCTION */ 49 /* TYPE, FUNCTION */
25 {SSH_MSG_CHANNEL_DATA, recv_msg_channel_data}, 50 {SSH_MSG_CHANNEL_DATA, recv_msg_channel_data},
26 {SSH_MSG_CHANNEL_WINDOW_ADJUST, recv_msg_channel_window_adjust}, 51 {SSH_MSG_CHANNEL_WINDOW_ADJUST, recv_msg_channel_window_adjust},
27 {SSH_MSG_USERAUTH_FAILURE, recv_msg_userauth_failure}, /* client */ 52 {SSH_MSG_USERAUTH_FAILURE, recv_msg_userauth_failure}, /* client */
28 {SSH_MSG_USERAUTH_SUCCESS, recv_msg_userauth_success}, /* client */ 53 {SSH_MSG_USERAUTH_SUCCESS, recv_msg_userauth_success}, /* client */
29 {SSH_MSG_KEXINIT, recv_msg_kexinit}, 54 {SSH_MSG_KEXINIT, recv_msg_kexinit},