diff options
author | Alon Bar-Lev | 2012-02-29 22:12:10 +0200 |
---|---|---|
committer | David Sommerseth | 2012-03-22 22:53:39 +0100 |
commit | 9b33b5a4b1aa170080d18b0f32f6599b519589f0 (patch) | |
tree | bf033b98d14a56d7adb18d3345be2a94df850c0d /src/openvpn/ssl_backend.h | |
parent | 74bbc71b75bac49f5c9df81827fa184b8a365d36 (diff) | |
download | openvpn-9b33b5a4b1aa170080d18b0f32f6599b519589f0.zip openvpn-9b33b5a4b1aa170080d18b0f32f6599b519589f0.tar.gz |
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_backend.h')
-rw-r--r-- | src/openvpn/ssl_backend.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/openvpn/ssl_backend.h b/src/openvpn/ssl_backend.h index 243c9e3..5ea6a06 100644 --- a/src/openvpn/ssl_backend.h +++ b/src/openvpn/ssl_backend.h @@ -33,11 +33,11 @@ #include "buffer.h" -#ifdef USE_OPENSSL +#ifdef ENABLE_CRYPTO_OPENSSL #include "ssl_openssl.h" #include "ssl_verify_openssl.h" #endif -#ifdef USE_POLARSSL +#ifdef ENABLE_CRYPTO_POLARSSL #include "ssl_polarssl.h" #include "ssl_verify_polarssl.h" #endif @@ -193,7 +193,7 @@ void tls_ctx_load_cert_file (struct tls_root_ctx *ctx, const char *cert_file, #if ENABLE_INLINE_FILES const char *cert_file_inline, #endif - x509_cert_t **x509 + openvpn_x509_cert_t **x509 ); /** @@ -201,7 +201,7 @@ void tls_ctx_load_cert_file (struct tls_root_ctx *ctx, const char *cert_file, * * @param x509 certificate to free */ -void tls_ctx_free_cert_file (x509_cert_t *x509); +void tls_ctx_free_cert_file (openvpn_x509_cert_t *x509); /** * Load private key file into the given TLS context. @@ -233,7 +233,7 @@ int tls_ctx_load_priv_file (struct tls_root_ctx *ctx, const char *priv_key_file * @return 1 if an error occurred, 0 if parsing was * successful. */ -int tls_ctx_use_external_private_key (struct tls_root_ctx *ctx, x509_cert_t *cert); +int tls_ctx_use_external_private_key (struct tls_root_ctx *ctx, openvpn_x509_cert_t *cert); #endif |