]> 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:02:40 +0000 (22:02 +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>
(cherry picked from commit 4158f46f6474447520ebc7440050411eb8be8cb9)

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 cfc53a705aa3f7f01bcf1e28c61220da1bfcf140..e431541690a63213d65048a04a4d1c0d0161c076 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 a911b7c3af160b90ec6d563e853b55168a347769..fef85c950b2e3433edef83767c38017359479202 100644 (file)
@@ -806,12 +806,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