summaryrefslogtreecommitdiffstats
path: root/ssl_openssl.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-30 16:28:56 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 11:43:28 +0200
commit5fe5fe9e6264d45154a7ece8c85fa70173429ff8 (patch)
tree22f7fb3f6597cdf5020e1ac8e4b9237343c7660a /ssl_openssl.c
parentbb53a20a9b678da3acce6b73cb3d6f73ebdbede9 (diff)
downloadopenvpn-5fe5fe9e6264d45154a7ece8c85fa70173429ff8.tar.gz
openvpn-5fe5fe9e6264d45154a7ece8c85fa70173429ff8.tar.xz
openvpn-5fe5fe9e6264d45154a7ece8c85fa70173429ff8.zip
Separated OpenSSL-specific parts of the PKCS#11 driver
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: James Yonan <james@openvpn.net> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl_openssl.c')
-rw-r--r--ssl_openssl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/ssl_openssl.c b/ssl_openssl.c
index 2d5e914..f85f81a 100644
--- a/ssl_openssl.c
+++ b/ssl_openssl.c
@@ -323,23 +323,6 @@ tls_ctx_load_pkcs12(struct tls_root_ctx *ctx, const char *pkcs12_file,
return 0;
}
-#ifdef ENABLE_PKCS11
-int
-tls_ctx_load_pkcs11(struct tls_root_ctx *ctx, bool pkcs11_id_management,
- const char *pkcs11_id)
-{
- ASSERT(NULL != ctx);
-
- /* Load Certificate and Private Key */
- if (!SSL_CTX_use_pkcs11 (ctx->ctx, pkcs11_id_management, pkcs11_id))
- {
- msg (M_WARN, "Cannot load certificate \"%s\" using PKCS#11 interface", pkcs11_id);
- return 1;
- }
- return 0;
-}
-#endif /* ENABLE_PKCS11 */
-
#ifdef WIN32
void
tls_ctx_load_cryptoapi(struct tls_root_ctx *ctx, const char *cryptoapi_cert)