NCBI C++ ToolKit
Macros | Functions
ncbi_tls.c File Reference
#include "ncbi_ansi_ext.h"
#include "ncbi_connssl.h"
#include "ncbi_priv.h"
#include "ncbi_servicep.h"
#include <connect/ncbi_gnutls.h>
#include <connect/ncbi_mbedtls.h>
#include <connect/ncbi_tls.h>
#include <stdlib.h>
+ Include dependency graph for ncbi_tls.c:

Go to the source code of this file.

Go to the SVN repository for this file.


#define NCBI_USE_ERRCODE_X   Connect_TLS
#define NcbiSetupDefaultTls   NcbiSetupMbedTls


static EIO_Status s_NoTlsInit (FSSLPull unused_pull, FSSLPush unused_push)
static SOCKSSL x_SetupNoTls (void)
static FSSLSetup x_NcbiSetupTls (void)
SOCKSSL NcbiSetupTls (void)
 Setup a TLS (Transport Layer Security) provider library to support SSL in ncbi_socket.h[pp]. More...
NCBI_CRED NcbiCreateTlsCertCredentials (const void *cert, size_t certsz, const void *pkey, size_t pkeysz)
 Build NCBI_CRED from memory buffers containing X.509 certificate and private key, respectively, in either PEM or DER format (independently of each other). More...
void NcbiDeleteTlsCertCredentials (NCBI_CRED cred)
 Delete a NCBI_CRED handle created by NcbiCreateTlsCertCredentials(). More...

Macro Definition Documentation


#define NCBI_USE_ERRCODE_X   Connect_TLS

Definition at line 42 of file ncbi_tls.c.

◆ NcbiSetupDefaultTls

#define NcbiSetupDefaultTls   NcbiSetupMbedTls

Definition at line 47 of file ncbi_tls.c.

Function Documentation

◆ s_NoTlsInit()

static EIO_Status s_NoTlsInit ( FSSLPull  unused_pull,
FSSLPush  unused_push 

Definition at line 61 of file ncbi_tls.c.

References CORE_LOG_X, eIO_NotSupported, and eLOG_Critical.

Referenced by x_SetupNoTls().

◆ x_NcbiSetupTls()

static FSSLSetup x_NcbiSetupTls ( void  )

◆ x_SetupNoTls()

static SOCKSSL x_SetupNoTls ( void  )

Definition at line 68 of file ncbi_tls.c.

References CORE_LOG_X, eLOG_Trace, and s_NoTlsInit().

Referenced by x_NcbiSetupTls().

Modified on Sun Jul 14 05:00:25 2024 by rev. 669887