Searched refs:hexbuf (Results 1 – 2 of 2) sorted by relevance
404 unsigned char *hexbuf, *q; in string_to_hex() local410 if(!(hexbuf = OPENSSL_malloc(strlen(str) >> 1))) goto err; in string_to_hex()411 for(p = (unsigned char *)str, q = hexbuf; *p;) { in string_to_hex()417 OPENSSL_free(hexbuf); in string_to_hex()434 if(len) *len = q - hexbuf; in string_to_hex()436 return hexbuf; in string_to_hex()439 if(hexbuf) OPENSSL_free(hexbuf); in string_to_hex()444 OPENSSL_free(hexbuf); in string_to_hex()
303 char hexbuf[5]; in SendPacket() local313 snprintf (hexbuf, sizeof hexbuf, "%02x", cksum & 0xff); in SendPacket()314 sendpacket += hexbuf; in SendPacket()2665 char hexbuf[3]; in HandlePacket_M() local2666 hexbuf[0] = *p; in HandlePacket_M()2667 hexbuf[1] = *(p + 1); in HandlePacket_M()2668 hexbuf[2] = '\0'; in HandlePacket_M()2670 uint8_t byte = strtoul (hexbuf, NULL, 16); in HandlePacket_M()