summaryrefslogtreecommitdiffhomepage
path: root/buffer.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-10-21 22:57:21 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-10-21 22:57:21 +0800
commit8eefb092c83f8f89f4d5574e4a05799eb9df3de8 (patch)
tree38ab731e4c38f1e287c187a9ca14ea73a92f9434 /buffer.c
parent3d733a16e9ee856a45a1fbd9a1b48005d78063f9 (diff)
parent45bd0edae52c07daa2d54ca7f7c0a57d51130791 (diff)
Merge in ECC
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index facee24..9bda652 100644
--- a/buffer.c
+++ b/buffer.c
@@ -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) {