X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=crypto%2Fbuffer.c;fp=crypto%2Fbuffer.c;h=790fb2ce7e0a0cc2f5a47df4f1cfe692b9adb424;hb=28c32424d04f982985b685ce891ed7db6237504e;hp=a65c21ed2e3dd0a8fa66d67287460be5fd6a6d6c;hpb=4b448fbc77510c589cc7f367c05bef63acc07858;p=zpackage diff --git a/crypto/buffer.c b/crypto/buffer.c index a65c21e..790fb2c 100644 --- a/crypto/buffer.c +++ b/crypto/buffer.c @@ -94,6 +94,10 @@ void tls_buffer_append(struct tls_buffer *buffer, const unsigned char *bytes, si buffer->len += n; } +void tls_buffer_append_str(struct tls_buffer *buf, const unsigned char *s) { + tls_buffer_append(buf, s, strlen(s)); +} + void tls_buffer_append16(struct tls_buffer *buffer, uint16_t n) { tls_buffer_expand(buffer, 2);