GUAC-236: Parse base64 from blobs.

This commit is contained in:
Michael Jumper 2016-02-26 21:22:45 -08:00
parent 91197ffad2
commit f842d1c0a4

View File

@ -24,9 +24,9 @@
#include "log.h" #include "log.h"
#include <guacamole/client.h> #include <guacamole/client.h>
#include <guacamole/protocol.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
int guacenc_handle_blob(int argc, char** argv) { int guacenc_handle_blob(int argc, char** argv) {
@ -39,10 +39,11 @@ int guacenc_handle_blob(int argc, char** argv) {
/* Parse arguments */ /* Parse arguments */
int index = atoi(argv[0]); int index = atoi(argv[0]);
char* data = argv[1]; char* data = argv[1];
int data_length = guac_protocol_decode_base64(data);
/* STUB */ /* STUB */
guacenc_log(GUAC_LOG_DEBUG, "blob: stream=%i data=[%i chars]", guacenc_log(GUAC_LOG_DEBUG, "blob: stream=%i data=[%i bytes]",
index, strlen(data)); index, data_length);
return 0; return 0;
} }