diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-10-01 20:04:56 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-10-01 20:05:36 +0200 |
commit | 6731bedf011610c6b40512ba62feb68edb65067a (patch) | |
tree | 4b6f27df47db6a0d797b7c12e6e885736599e2dd /lib/gnutls_str.h | |
parent | 59c61c7a724637706a3f578e01994adbff40c919 (diff) | |
download | gnutls-6731bedf011610c6b40512ba62feb68edb65067a.tar.gz |
Added ability to hash and hmac with VIA padlock.
Diffstat (limited to 'lib/gnutls_str.h')
-rw-r--r-- | lib/gnutls_str.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gnutls_str.h b/lib/gnutls_str.h index dbf299c0cb..3b6562e4c4 100644 --- a/lib/gnutls_str.h +++ b/lib/gnutls_str.h @@ -41,6 +41,12 @@ typedef struct void _gnutls_buffer_init (gnutls_buffer_st *); void _gnutls_buffer_clear (gnutls_buffer_st *); +inline static void _gnutls_buffer_reset (gnutls_buffer_st * buf) +{ + buf->data = buf->allocd; + buf->length = 0; +} + int _gnutls_buffer_resize (gnutls_buffer_st *, size_t new_size); int _gnutls_buffer_append_str (gnutls_buffer_st *, const char *str); |