drdynvc: Change channel processing to use streams
The channel processor in xrdp_channel.c for dynamic streams uses a data pointer and a length for passing PDUs or PDU fragments. We replace this with a standard stream pointer, so that the usual facilities can be used for checking length violcations.
This commit is contained in:
+3
-3
@@ -146,9 +146,9 @@ struct xrdp_drdynvc
|
||||
int (*open_response)(struct xrdp_process *id, int chan_id,
|
||||
int creation_status);
|
||||
int (*close_response)(struct xrdp_process *id, int chan_id);
|
||||
int (*data_first)(struct xrdp_process *id, int chan_id, char *data,
|
||||
int bytes, int total_bytes);
|
||||
int (*data)(struct xrdp_process *id, int chan_id, char *data, int bytes);
|
||||
int (*data_first)(struct xrdp_process *id, int chan_id, struct stream *s,
|
||||
int total_bytes);
|
||||
int (*data)(struct xrdp_process *id, int chan_id, struct stream *s);
|
||||
};
|
||||
|
||||
struct vc_dechunker; // Forward declaration
|
||||
|
||||
Reference in New Issue
Block a user