summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ssl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ssl.c b/ssl.c
index 2a27c0b..8653629 100644
--- a/ssl.c
+++ b/ssl.c
@@ -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);