]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
remove unused functions
authorAntonio Quartulli <antonio@openvpn.net>
Fri, 11 Aug 2017 09:07:43 +0000 (17:07 +0800)
committerDavid Sommerseth <davids@openvpn.net>
Fri, 11 Aug 2017 20:01:00 +0000 (22:01 +0200)
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Steffan Karger <steffan@karger.me>
Message-Id: <20170811090744.31750-5-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15205.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
src/openvpn/misc.c
src/openvpn/ssl.c
src/openvpn/ssl_openssl.c

index aff1bb2e53d5f22541a25812440b27f00a8c39e3..0adb164e49a28794c237ff354ab138f264d6b766 100644 (file)
@@ -429,29 +429,6 @@ construct_name_value(const char *name, const char *value, struct gc_arena *gc)
     return BSTR(&out);
 }
 
-bool
-deconstruct_name_value(const char *str, const char **name, const char **value, struct gc_arena *gc)
-{
-    char *cp;
-
-    ASSERT(str);
-    ASSERT(name && value);
-
-    *name = cp = string_alloc(str, gc);
-    *value = NULL;
-
-    while ((*cp))
-    {
-        if (*cp == '=' && !*value)
-        {
-            *cp = 0;
-            *value = cp + 1;
-        }
-        ++cp;
-    }
-    return *name && *value;
-}
-
 static bool
 env_string_equal(const char *s1, const char *s2)
 {
index 339baf7d66cf0b2dd53748a996003fbb3ffec89e..ff311d8e69a60c2e5c8c76679c4559110af32d5b 100644 (file)
@@ -2190,16 +2190,6 @@ read_string_alloc(struct buffer *buf)
     return str;
 }
 
-void
-read_string_discard(struct buffer *buf)
-{
-    char *data = read_string_alloc(buf);
-    if (data)
-    {
-        free(data);
-    }
-}
-
 /*
  * Handle the reading and writing of key data to and from
  * the TLS control channel (cleartext).
index 090a66e8171cbe9fce1b1d7b9102b938cc306c7b..26b71743da3ba8d1c3db7af40c001d81b1b136b0 100644 (file)
@@ -803,12 +803,6 @@ tls_ctx_load_cert_file(struct tls_root_ctx *ctx, const char *cert_file,
     tls_ctx_load_cert_file_and_copy(ctx, cert_file, cert_file_inline, NULL);
 }
 
-void
-tls_ctx_free_cert_file(X509 *x509)
-{
-    X509_free(x509);
-}
-
 int
 tls_ctx_load_priv_file(struct tls_root_ctx *ctx, const char *priv_key_file,
                        const char *priv_key_file_inline