return safe_realloc_ary(0,size,count,message);
}
-/* Hex-encode a buffer, and return the hex in a freshly allocated string. */
string_t hex_encode(const uint8_t *bin, int binsize)
{
char *buff;
return ok;
}
-/* Convert a buffer into its MP_INT representation */
void read_mpbin(MP_INT *a, uint8_t *bin, int binsize)
{
char *buff = hex_encode(bin, binsize);
free(buff);
}
-/* Convert a MP_INT into a hex string */
char *write_mpstring(MP_INT *a)
{
char *buff;
return buff;
}
-/* Convert a MP_INT into a buffer; return length; truncate if necessary */
int32_t write_mpbin(MP_INT *a, uint8_t *buffer, int32_t buflen)
{
char *hb = write_mpstring(a);
return p;
}
-/* Append a two-byte length and the string to the buffer. Length is in
- network byte order. */
void buf_append_string(struct buffer_if *buf, cstring_t s)
{
size_t len;