diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2012-02-29 22:12:10 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-03-22 22:53:39 +0100 |
commit | 9b33b5a4b1aa170080d18b0f32f6599b519589f0 (patch) | |
tree | bf033b98d14a56d7adb18d3345be2a94df850c0d /src/openvpn/ssl.c | |
parent | 74bbc71b75bac49f5c9df81827fa184b8a365d36 (diff) | |
download | openvpn-9b33b5a4b1aa170080d18b0f32f6599b519589f0.tar.gz openvpn-9b33b5a4b1aa170080d18b0f32f6599b519589f0.tar.xz openvpn-9b33b5a4b1aa170080d18b0f32f6599b519589f0.zip |
build: proper crypto detection and usage
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Adriaan de Jong <dejong@fox-it.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/ssl.c')
-rw-r--r-- | src/openvpn/ssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index ba06ff7..caafd18 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -41,7 +41,7 @@ #include "syshead.h" -#if defined(USE_CRYPTO) && defined(USE_SSL) +#if defined(ENABLE_CRYPTO) && defined(ENABLE_SSL) #include "error.h" #include "common.h" @@ -342,7 +342,7 @@ init_ssl (const struct options *options, struct tls_root_ctx *new_ctx) #ifdef MANAGMENT_EXTERNAL_KEY else if ((options->management_flags & MF_EXTERNAL_KEY) && options->cert_file) { - x509_cert_t *my_cert = NULL; + openvpn_x509_cert_t *my_cert = NULL; tls_ctx_load_cert_file(new_ctx, options->cert_file, options->cert_file_inline, &my_cert); tls_ctx_use_external_private_key(new_ctx, my_cert); @@ -3370,4 +3370,4 @@ done: #else static void dummy(void) {} -#endif /* USE_CRYPTO && USE_SSL*/ +#endif /* ENABLE_CRYPTO && ENABLE_SSL*/ |