From fef565a31640e9de2bc518ea7264a067a5efd38e Mon Sep 17 00:00:00 2001 From: Adriaan de Jong Date: Tue, 28 Jun 2011 11:03:45 +0200 Subject: Refactored: moved write_empty_string function back Signed-off-by: Adriaan de Jong Acked-by: Gert Doering Signed-off-by: David Sommerseth --- ssl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ssl.c') diff --git a/ssl.c b/ssl.c index 2a27c0b..8653629 100644 --- a/ssl.c +++ b/ssl.c @@ -2809,6 +2809,14 @@ key_state_soft_reset (struct tls_session *session) * Read/write strings from/to a struct buffer with a u16 length prefix. */ +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) { @@ -2822,14 +2830,6 @@ write_string (struct buffer *buf, const char *str, const int maxlen) return true; } -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) { -- cgit