diff options
author | 2015-02-06 01:37:11 +0000 | |
---|---|---|
committer | 2015-02-06 01:37:11 +0000 | |
commit | 642f72f1c19ea98cec31c6cdcbc9afede992c769 (patch) | |
tree | 5083d73abae6841100ac82e972c9b50031dd3c32 /lib/libtls | |
parent | Change rt_mpath_conflict() to not rely on an initialized rtentry when (diff) | |
download | wireguard-openbsd-642f72f1c19ea98cec31c6cdcbc9afede992c769.tar.xz wireguard-openbsd-642f72f1c19ea98cec31c6cdcbc9afede992c769.zip |
Rename SSL_CTX_use_certificate_chain() to SSL_CTX_use_certificate_chain_mem().
As discussed with beck@ jsing@ and others
OK beck@
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index 0b9f12511d6..2ca53362607 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.4 2014/12/17 17:51:33 doug Exp $ */ +/* $OpenBSD: tls.c,v 1.5 2015/02/06 01:37:11 reyk Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -116,7 +116,7 @@ tls_configure_keypair(struct tls *ctx) goto err; } - if (SSL_CTX_use_certificate_chain(ctx->ssl_ctx, + if (SSL_CTX_use_certificate_chain_mem(ctx->ssl_ctx, ctx->config->cert_mem, ctx->config->cert_len) != 1) { tls_set_error(ctx, "failed to load certificate"); goto err; |