diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-06-27 14:13:16 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-19 22:45:01 +0200 |
commit | d494c31501635cbd5ae0e864849901bb3a4d3565 (patch) | |
tree | aaa0c769da341771945a537b529b5e42a1ef89cc /ssl_backend.h | |
parent | d1013cfe957ab3961b8b78486704ddcdecba513b (diff) | |
download | openvpn-d494c31501635cbd5ae0e864849901bb3a4d3565.tar.gz openvpn-d494c31501635cbd5ae0e864849901bb3a4d3565.tar.xz openvpn-d494c31501635cbd5ae0e864849901bb3a4d3565.zip |
Refactored windows cert loading
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl_backend.h')
-rw-r--r-- | ssl_backend.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ssl_backend.h b/ssl_backend.h index 027026b..127647f 100644 --- a/ssl_backend.h +++ b/ssl_backend.h @@ -162,6 +162,17 @@ int tls_ctx_load_pkcs11(struct tls_root_ctx *ctx, #endif /* ENABLE_PKCS11 */ /** + * Use Windows cryptoapi for key and cert, and add to library-specific TLS + * context. + * + * @param ctx TLS context to use + * @param crypto_api_cert String representing the certificate to load. + */ +#ifdef WIN32 +void tls_ctx_load_cryptoapi(struct tls_root_ctx *ctx, const char *cryptoapi_cert); +#endif /* WIN32 */ + +/** * Show the TLS ciphers that are available for us to use in the OpenSSL * library. */ |