version 1.165, 2008/01/19 23:09:49 |
version 1.166, 2008/07/17 08:48:00 |
|
|
#include <signal.h> |
#include <signal.h> |
#include <pwd.h> |
#include <pwd.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <vis.h> |
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "ssh.h" |
#include "ssh.h" |
|
|
void |
void |
input_userauth_banner(int type, u_int32_t seq, void *ctxt) |
input_userauth_banner(int type, u_int32_t seq, void *ctxt) |
{ |
{ |
char *msg, *lang; |
char *msg, *raw, *lang; |
|
u_int len; |
|
|
debug3("input_userauth_banner"); |
debug3("input_userauth_banner"); |
msg = packet_get_string(NULL); |
raw = packet_get_string(&len); |
lang = packet_get_string(NULL); |
lang = packet_get_string(NULL); |
if (options.log_level >= SYSLOG_LEVEL_INFO) |
if (options.log_level >= SYSLOG_LEVEL_INFO) { |
|
if (len > 65536) |
|
len = 65536; |
|
msg = xmalloc(len * 4); /* max expansion from strnvis() */ |
|
strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL); |
fprintf(stderr, "%s", msg); |
fprintf(stderr, "%s", msg); |
xfree(msg); |
xfree(msg); |
|
} |
|
xfree(raw); |
xfree(lang); |
xfree(lang); |
} |
} |
|
|