1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00
transmission/libtransmission/crypto-utils-fallback.cc
Charles Kerr 2bcab6be7e
refactor: remove tr_dh code (#3443)
Refactor the MSE handshake Diffie-Hellman key code.
2022-07-14 19:54:10 -05:00

40 lines
929 B
C++

// This file Copyright © 2014-2022 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 */