From 99262928981816c37649095d90839f70c0f37857 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Sat, 5 Nov 2016 14:50:06 +0000 Subject: rename ocsp_ctx to ocsp ok jsing@ --- lib/libtls/tls.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/libtls/tls.c') diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index 6893e95b083..51717a79cb9 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.51 2016/11/03 10:05:32 jsing Exp $ */ +/* $OpenBSD: tls.c,v 1.52 2016/11/05 14:50:05 beck Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -446,9 +446,9 @@ tls_reset(struct tls *ctx) tls_conninfo_free(ctx->conninfo); ctx->conninfo = NULL; - tls_ocsp_ctx_free(ctx->ocsp_ctx); - ctx->ocsp_ctx = NULL; - + tls_ocsp_free(ctx->ocsp); + ctx->ocsp = NULL; + for (sni = ctx->sni_ctx; sni != NULL; sni = nsni) { nsni = sni->next; tls_sni_ctx_free(sni); @@ -531,8 +531,8 @@ tls_handshake(struct tls *ctx) ctx->ssl_peer_cert = SSL_get_peer_certificate(ctx->ssl_conn); if (tls_conninfo_populate(ctx) == -1) rv = -1; - if (ctx->ocsp_ctx == NULL) - ctx->ocsp_ctx = tls_ocsp_setup_from_peer(ctx); + if (ctx->ocsp == NULL) + ctx->ocsp = tls_ocsp_setup_from_peer(ctx); } out: /* Prevent callers from performing incorrect error handling */ -- cgit v1.2.3