return buffer_get_string(&incoming_packet, length_ptr);
}
-/*modified by binhe*/
/* Clears incoming data buffer */
void packet_get_all(void)
{
buffer_clear(&incoming_packet);
}
-/*end of modification*/
/*
* Sends a diagnostic message from the server to the client. This message
void packet_get_bignum2(BIGNUM * value);
void *packet_get_raw(int *length_ptr);
void *packet_get_string(u_int *length_ptr);
-/*modified by binhe*/
-void packet_get_all(void);
-/*end of modification*/
+void packet_get_all(void);
void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2)));
void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2)));
#define SSH_MSG_CHANNEL_INPUT_EOF SSH_MSG_CHANNEL_CLOSE
#define SSH_MSG_CHANNEL_OUTPUT_CLOSE SSH_MSG_CHANNEL_CLOSE_CONFIRMATION
-/*modified by binhe*/
/* GSS-API authentication */
#define SSH_CMSG_AUTH_GSSAPI 88 /* int, strings... */
#define SSH_SMSG_AUTH_GSSAPI_RESPONSE 89 /* string */
#define SSH_MSG_AUTH_GSSAPI_TOKEN 90 /* string */
#define SSH_SMSG_AUTH_GSSAPI_HASH 91 /* string */
#define SSH_MSG_AUTH_GSSAPI_ABORT 92 /* */
-/*end of modification*/
/*
* Authentication methods. New types can be added, but old types should not
/* 8 to 15 are reserved */
#define SSH_PASS_AFS_TOKEN 21
-/*modified by binhe*/
#define SSH_AUTH_GSSAPI 24
-/*end of modification*/
/* Protocol flags. These are bit masks. */
#define SSH_PROTOFLAG_SCREEN_NUMBER 1 /* X11 forwarding includes screen */
#include "ssh-gss.h"
#endif
-/*modified by binhe*/
#ifdef GSSAPI
#include <openssl/md5.h>
#include "bufaux.h"
#endif /* GSSAPI */
-/*end of modification*/
#ifdef LIBWRAP
#include <tcpd.h>
if (test_flag)
exit(0);
-/*modified by binhe*/
#ifdef GSSAPI
gssapi_clean_env();
#endif /* GSSAPI */
-/*end of modification*/
#ifdef HAVE_SCO_PROTECTED_PW
(void) set_auth_parameters(ac, av);
if (options.challenge_response_authentication == 1)
auth_mask |= 1 << SSH_AUTH_TIS;
-/*modified by binhe*/
#ifdef GSSAPI
if (options.gss_authentication)
auth_mask |= 1 << SSH_AUTH_GSSAPI;
#endif
-/*end of modification*/
if (options.password_authentication)
auth_mask |= 1 << SSH_AUTH_PASSWORD;
session_id[i] = session_key[i] ^ session_key[i + 16];
}
-/*modified by binhe*/
#ifdef GSSAPI
/*
* Before we destroy the host and server keys, hash them so we can
buffer_free(&buf);
}
#endif /* GSSAPI */
-/*end of modification*/
/* Destroy the private and public keys. They will no longer be needed. */
destroy_sensitive_data();