Browse code

remove unused functions

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>

Antonio Quartulli authored on 2017/08/11 18:07:43
Showing 3 changed files
... ...
@@ -429,29 +429,6 @@ construct_name_value(const char *name, const char *value, struct gc_arena *gc)
429 429
     return BSTR(&out);
430 430
 }
431 431
 
432
-bool
433
-deconstruct_name_value(const char *str, const char **name, const char **value, struct gc_arena *gc)
434
-{
435
-    char *cp;
436
-
437
-    ASSERT(str);
438
-    ASSERT(name && value);
439
-
440
-    *name = cp = string_alloc(str, gc);
441
-    *value = NULL;
442
-
443
-    while ((*cp))
444
-    {
445
-        if (*cp == '=' && !*value)
446
-        {
447
-            *cp = 0;
448
-            *value = cp + 1;
449
-        }
450
-        ++cp;
451
-    }
452
-    return *name && *value;
453
-}
454
-
455 432
 static bool
456 433
 env_string_equal(const char *s1, const char *s2)
457 434
 {
... ...
@@ -2190,16 +2190,6 @@ read_string_alloc(struct buffer *buf)
2190 2190
     return str;
2191 2191
 }
2192 2192
 
2193
-void
2194
-read_string_discard(struct buffer *buf)
2195
-{
2196
-    char *data = read_string_alloc(buf);
2197
-    if (data)
2198
-    {
2199
-        free(data);
2200
-    }
2201
-}
2202
-
2203 2193
 /*
2204 2194
  * Handle the reading and writing of key data to and from
2205 2195
  * the TLS control channel (cleartext).
... ...
@@ -803,12 +803,6 @@ tls_ctx_load_cert_file(struct tls_root_ctx *ctx, const char *cert_file,
803 803
     tls_ctx_load_cert_file_and_copy(ctx, cert_file, cert_file_inline, NULL);
804 804
 }
805 805
 
806
-void
807
-tls_ctx_free_cert_file(X509 *x509)
808
-{
809
-    X509_free(x509);
810
-}
811
-
812 806
 int
813 807
 tls_ctx_load_priv_file(struct tls_root_ctx *ctx, const char *priv_key_file,
814 808
                        const char *priv_key_file_inline