version 1.253.2.1, 2013/11/08 01:33:56 |
version 1.254, 2013/09/12 01:41:12 |
|
|
client_expect_confirm(int id, const char *request, |
client_expect_confirm(int id, const char *request, |
enum confirm_action action) |
enum confirm_action action) |
{ |
{ |
struct channel_reply_ctx *cr = xcalloc(1, sizeof(*cr)); |
struct channel_reply_ctx *cr = xmalloc(sizeof(*cr)); |
|
|
cr->request_type = request; |
cr->request_type = request; |
cr->action = action; |
cr->action = action; |
|
|
return; |
return; |
} |
} |
|
|
gc = xcalloc(1, sizeof(*gc)); |
gc = xmalloc(sizeof(*gc)); |
gc->cb = cb; |
gc->cb = cb; |
gc->ctx = ctx; |
gc->ctx = ctx; |
gc->ref_count = 1; |
gc->ref_count = 1; |
|
|
"%cB\r\n", escape_char); |
"%cB\r\n", escape_char); |
buffer_append(berr, string, |
buffer_append(berr, string, |
strlen(string)); |
strlen(string)); |
channel_request_start(session_ident, |
channel_request_start(c->self, |
"break", 0); |
"break", 0); |
packet_put_int(1000); |
packet_put_int(1000); |
packet_send(); |
packet_send(); |
|
|
{ |
{ |
struct escape_filter_ctx *ret; |
struct escape_filter_ctx *ret; |
|
|
ret = xcalloc(1, sizeof(*ret)); |
ret = xmalloc(sizeof(*ret)); |
ret->escape_pending = 0; |
ret->escape_pending = 0; |
ret->escape_char = escape_char; |
ret->escape_char = escape_char; |
return (void *)ret; |
return (void *)ret; |