]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Refactored: moved write_empty_string function back
authorAdriaan de Jong <dejong@fox-it.com>
Tue, 28 Jun 2011 09:03:45 +0000 (11:03 +0200)
committerDavid Sommerseth <davids@redhat.com>
Fri, 21 Oct 2011 08:53:32 +0000 (10:53 +0200)
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
ssl.c

diff --git a/ssl.c b/ssl.c
index 2a27c0b450fcc7629730ea418adcc915dca2fc8a..865362942530b6c3318fd3c1841e6d0ee31329ff 100644 (file)
--- 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)
 {