+void get_secret(char *param){
+ uint8_t buffer[64];
+ int cnt;
+ cnt = usb_control_msg(handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, CUSTOM_RQ_GET_SECRET, 0, 0, (char*)buffer, 32, 5000);
+ if (cnt > 0) {
+ printf("Secret (%d):\n", cnt);
+ hexdump_block(stdout, buffer, NULL, cnt, 16);
+ } else {
+ fprintf(stderr, "Error: usb_control_msg(...) returned %d\n", cnt);
+ }
+}
+
+