1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Removed 'data_' prefixes to encoding/decoding functions to avoid confusion with functions that deal with proxy internal data structures.

This commit is contained in:
henri
2013-04-22 19:31:14 +00:00
parent 5168ff9113
commit af65c7448f
2 changed files with 8 additions and 8 deletions

View File

@@ -122,8 +122,8 @@ struct proxy_op {
void (*handler)(nsock_pool nspool, nsock_event nsevent, void *udata); void (*handler)(nsock_pool nspool, nsock_event nsevent, void *udata);
nsock_event_id (*connect_tcp)(nsock_pool nsp, nsock_iod ms_iod, nsock_ev_handler handler, int mstimeout, nsock_event_id (*connect_tcp)(nsock_pool nsp, nsock_iod ms_iod, nsock_ev_handler handler, int mstimeout,
void *userdata, struct sockaddr *saddr, size_t sslen, unsigned short port); void *userdata, struct sockaddr *saddr, size_t sslen, unsigned short port);
char *(*data_encode)(const char *src, size_t len, size_t *dlen); char *(*encode)(const char *src, size_t len, size_t *dlen);
char *(*data_decode)(const char *src, size_t len, size_t *dlen); char *(*decode)(const char *src, size_t len, size_t *dlen);
}; };

View File

@@ -68,8 +68,8 @@ static void proxy_http_handler(nsock_pool nspool, nsock_event nsevent, void *uda
static nsock_event_id proxy_http_connect_tcp(nsock_pool nsp, nsock_iod ms_iod, nsock_ev_handler handler, static nsock_event_id proxy_http_connect_tcp(nsock_pool nsp, nsock_iod ms_iod, nsock_ev_handler handler,
int timeout_msecs, void *userdata, struct sockaddr *saddr, int timeout_msecs, void *userdata, struct sockaddr *saddr,
size_t sslen, unsigned short port); size_t sslen, unsigned short port);
static char *proxy_http_data_encode(const char *src, size_t len, size_t *dlen); static char *proxy_http_encode(const char *src, size_t len, size_t *dlen);
static char *proxy_http_data_decode(const char *src, size_t len, size_t *dlen); static char *proxy_http_decode(const char *src, size_t len, size_t *dlen);
/* ---- PROXY DEFINITION ---- */ /* ---- PROXY DEFINITION ---- */
@@ -79,8 +79,8 @@ const struct proxy_op proxy_http_ops = {
.init = proxy_http_init, .init = proxy_http_init,
.handler = proxy_http_handler, .handler = proxy_http_handler,
.connect_tcp = proxy_http_connect_tcp, .connect_tcp = proxy_http_connect_tcp,
.data_encode = proxy_http_data_encode, .encode = proxy_http_encode,
.data_decode = proxy_http_data_decode .decode = proxy_http_decode
}; };
@@ -184,12 +184,12 @@ nsock_event_id proxy_http_connect_tcp(nsock_pool nsp, nsock_iod ms_iod, nsock_ev
return nsock_connect_tcp_direct(nsp, ms_iod, handler, timeout_msecs, userdata, saddr, sslen, port); return nsock_connect_tcp_direct(nsp, ms_iod, handler, timeout_msecs, userdata, saddr, sslen, port);
} }
char *proxy_http_data_encode(const char *src, size_t len, size_t *dlen) { char *proxy_http_encode(const char *src, size_t len, size_t *dlen) {
// TODO // TODO
return NULL; return NULL;
} }
char *proxy_http_data_decode(const char *src, size_t len, size_t *dlen) { char *proxy_http_decode(const char *src, size_t len, size_t *dlen) {
// TODO // TODO
return NULL; return NULL;
} }