office-gobmx/config_host/config_crypto.h.in
Michael Stahl 1472e2d68b vcl,openssl: set SSL_CERT_FILE for bundled OpenSSL
OpenSSL may read a CA certificate file from $SSL_CERT_FILE, if the
client library calls SSL_CTX_set_default_verify_paths(); python's ssl
module does it but apparently libcurl does not.

So split the code from commit 3fc632c0261c75fb4079a5305e814698e791f75c
and set the environment variable in ImplSVMain(), hopefully before
any threads are spawned; seems to work for PyMailSMTPService.

This needs to have SYSTEM_OPENSSL available in a config header.

Change-Id: I63b747cb61bb236cf4f605bb9858e5b0083388fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159149
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-11-09 16:54:47 +01:00

38 lines
840 B
C

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef CONFIG_CRYPTO_H
#define CONFIG_CRYPTO_H
/*
* Whether NSS is available
*/
#define HAVE_FEATURE_NSS 0
/*
* Use MS CAPI for crypto operations
*/
#define USE_CRYPTO_MSCAPI 0
/*
* Use Mozilla for crypto operations
*/
#define USE_CRYPTO_NSS 0
#if USE_CRYPTO_MSCAPI || USE_CRYPTO_NSS
#define USE_CRYPTO_ANY 1
#else
#define USE_CRYPTO_ANY 0
#endif
#endif
#undef SYSTEM_OPENSSL
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */