Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 574294 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/openvpn/ssl_openssl.c (-3 / +2 lines)
Lines 358-364 tls_ctx_check_cert_time (const struct tls_root_ctx *ctx) Link Here
358
358
359
  ASSERT (ctx);
359
  ASSERT (ctx);
360
360
361
#if OPENSSL_VERSION_NUMBER >= 0x10002000L
361
#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
362
  /* OpenSSL 1.0.2 and up */
362
  /* OpenSSL 1.0.2 and up */
363
  cert = SSL_CTX_get0_certificate (ctx->ctx);
363
  cert = SSL_CTX_get0_certificate (ctx->ctx);
364
#else
364
#else
Lines 393-399 tls_ctx_check_cert_time (const struct tls_root_ctx *ctx) Link Here
393
    }
393
    }
394
394
395
cleanup:
395
cleanup:
396
#if OPENSSL_VERSION_NUMBER < 0x10002000L
396
#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
397
  SSL_free (ssl);
397
  SSL_free (ssl);
398
#endif
398
#endif
399
  return;
399
  return;
400
- 

Return to bug 574294