1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/libtransmission/crypto-utils-fallback.cc
2023-02-11 14:49:42 -06:00

38 lines
921 B
C++

// This file Copyright © 2014-2023 Mnemosyne LLC.
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
/* This file is designed specifically to be included by other source files to
implement missing (or duplicate) functionality without exposing internal
details in header files. */
#include "transmission.h"
#include "crypto-utils.h"
#include "tr-macros.h"
// ---
#ifdef TR_CRYPTO_X509_FALLBACK
tr_x509_store_t tr_ssl_get_x509_store(tr_ssl_ctx_t /*handle*/)
{
return nullptr;
}
bool tr_x509_store_add(tr_x509_store_t /*handle*/, tr_x509_cert_t /*cert*/)
{
return false;
}
tr_x509_cert_t tr_x509_cert_new(void const* /*der*/, size_t /*der_length*/)
{
return nullptr;
}
void tr_x509_cert_free(tr_x509_cert_t /*handle*/)
{
}
#endif /* TR_CRYPTO_X509_FALLBACK */