diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-06 16:00:37 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-06 16:00:37 +0800 |
commit | a8135dec1e8b9360274679c9ff89cb98cda87930 (patch) | |
tree | 42cf334c3aac754cdf1a1fb4a9ed0789d49d16b0 /buffer.c | |
parent | b4bcc606576dab755441da1bc2fbe28041d54b06 (diff) |
Make _sign and _verify functions take a buffer* rather than void* and int
--HG--
branch : ecc
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -269,6 +269,11 @@ void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len) { } +/* puts an entire buffer as a SSH string. ignore pos of buf_str. */ +void buf_putbufstring(buffer *buf, const buffer* buf_str) { + buf_putstring(buf, buf_str->data, buf_str->len); +} + /* put the set of len bytes into the buffer, incrementing the pos, increasing * len if required */ void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len) { |