Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Quartulli <[email protected]>
Acked-by: Steffan Karger <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg15205.html
Signed-off-by: David Sommerseth <[email protected]>
  • Loading branch information
ordex authored and dsommers committed Aug 11, 2017
1 parent e2a0cad commit 4158f46
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
23 changes: 0 additions & 23 deletions src/openvpn/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 0 additions & 10 deletions src/openvpn/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
6 changes: 0 additions & 6 deletions src/openvpn/ssl_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4158f46

Please sign in to comment.