diff options
-rw-r--r-- | ssl.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -2810,6 +2810,14 @@ key_state_soft_reset (struct tls_session *session) */ static bool +write_empty_string (struct buffer *buf) +{ + if (!buf_write_u16 (buf, 0)) + return false; + return true; +} + +static bool write_string (struct buffer *buf, const char *str, const int maxlen) { const int len = strlen (str) + 1; @@ -2823,14 +2831,6 @@ write_string (struct buffer *buf, const char *str, const int maxlen) } static bool -write_empty_string (struct buffer *buf) -{ - if (!buf_write_u16 (buf, 0)) - return false; - return true; -} - -static bool read_string (struct buffer *buf, char *str, const unsigned int capacity) { const int len = buf_read_u16 (buf); |