- bool send_cmd(enum tpmd_cmd cmd, const void *data, unsigned int len);
- void *recv_cmd(unsigned int *tag, unsigned int *len);
- void parse_data(const unsigned char *data, unsigned int datalen);
+ bool send_cmd(enum tpmd_cmd cmd, const void *data, size_t len);
+ void *recv_cmd(unsigned int *tag, size_t *len);
+ void parse_data(const unsigned char *data, size_t datalen);