Skip to content

Commit

Permalink
Move ASSERT so external-key with OpenSSL works again
Browse files Browse the repository at this point in the history
Acked-by: Steffan Karger <[email protected]>
Message-Id: <[email protected]>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8069

Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
schwabe authored and cron2 committed Nov 29, 2013
1 parent 23d61c5 commit 68793f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openvpn/ssl_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,11 @@ tls_ctx_use_external_private_key (struct tls_root_ctx *ctx,
X509 *cert = NULL;

ASSERT (NULL != ctx);
ASSERT (NULL != cert);

tls_ctx_load_cert_file_and_copy (ctx, cert_file, cert_file_inline, &cert);

ASSERT (NULL != cert);

/* allocate custom RSA method object */
ALLOC_OBJ_CLEAR (rsa_meth, RSA_METHOD);
rsa_meth->name = "OpenVPN external private key RSA Method";
Expand Down

0 comments on commit 68793f4

Please sign in to comment.