From: Adriaan de Jong Date: Tue, 28 Jun 2011 09:03:45 +0000 (+0200) Subject: Refactored: moved write_empty_string function back X-Git-Tag: v2.3-alpha1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef565a31640e9de2bc518ea7264a067a5efd38e;p=thirdparty%2Fopenvpn.git Refactored: moved write_empty_string function back Signed-off-by: Adriaan de Jong Acked-by: Gert Doering Signed-off-by: David Sommerseth --- diff --git a/ssl.c b/ssl.c index 2a27c0b45..865362942 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) {