* limitations under the License.
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <freerdp/utils/stream.h>
#include <freerdp/utils/memory.h>
+#include <freerdp/utils/hexdump.h>
#include <time.h>
#include <errno.h>
break;
}
+#ifdef WITH_DEBUG_TRANSPORT
+ if (status > 0)
+ {
+ printf("Server > Client\n");
+ freerdp_hexdump(s->data, status);
+ }
+#endif
+
return status;
}
length = stream_get_length(s);
stream_set_pos(s, 0);
+
+#ifdef WITH_DEBUG_TRANSPORT
+ if (length > 0)
+ {
+ printf("Client > Server\n");
+ freerdp_hexdump(s->data, length);
+ }
+#endif
+
while (sent < length)
{
if (transport->layer == TRANSPORT_LAYER_TLS)