TianoCore EDK2 master
Loading...
Searching...
No Matches
SslNull.c File Reference
#include <Base.h>
#include <Library/DebugLib.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>

Go to the source code of this file.

Functions

int OPENSSL_init_ssl (uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
 
__owur uint32_t SSL_CIPHER_get_id (const SSL_CIPHER *c)
 
__owur int SSL_COMP_add_compression_method (int id, COMP_METHOD *cm)
 
long SSL_CTX_ctrl (SSL_CTX *ctx, int cmd, long larg, void *parg)
 
void SSL_CTX_free (SSL_CTX *x)
 
__owur X509_STORE * SSL_CTX_get_cert_store (const SSL_CTX *x)
 
__owur SSL_CTX * SSL_CTX_new (const SSL_METHOD *meth)
 
uint64_t SSL_CTX_set_options (SSL_CTX *ctx, uint64_t op)
 
const unsigned char * SSL_SESSION_get_id (const SSL_SESSION *s, unsigned int *len)
 
__owur size_t SSL_SESSION_get_master_key (const SSL_SESSION *sess, unsigned char *out, size_t outlen)
 
__owur int SSL_SESSION_set1_id (SSL_SESSION *s, const unsigned char *sid, unsigned int sid_len)
 
long SSL_ctrl (SSL *ssl, int cmd, long larg, void *parg)
 
__owur int SSL_do_handshake (SSL *s)
 
void SSL_free (SSL *ssl)
 
__owur X509 * SSL_get_certificate (const SSL *ssl)
 
__owur size_t SSL_get_client_random (const SSL *ssl, unsigned char *out, size_t outlen)
 
__owur const SSL_CIPHER * SSL_get_current_cipher (const SSL *s)
 
__owur int SSL_get_error (const SSL *s, int ret_code)
 
__owur size_t SSL_get_server_random (const SSL *ssl, unsigned char *out, size_t outlen)
 
__owur SSL_SESSION * SSL_get_session (const SSL *ssl)
 
__owur SSL_CTX * SSL_get_SSL_CTX (const SSL *ssl)
 
__owur OSSL_HANDSHAKE_STATE SSL_get_state (const SSL *ssl)
 
__owur int SSL_get_verify_mode (const SSL *s)
 
__owur X509_VERIFY_PARAM * SSL_get0_param (SSL *ssl)
 
int SSL_is_init_finished (const SSL *s)
 
__owur int SSL_is_server (const SSL *s)
 
SSL * SSL_new (SSL_CTX *ctx)
 
__owur int SSL_read (SSL *ssl, void *buf, int num)
 
void SSL_set_bio (SSL *s, BIO *rbio, BIO *wbio)
 
__owur int SSL_set_cipher_list (SSL *s, const char *str)
 
void SSL_set_connect_state (SSL *s)
 
void SSL_set_hostflags (SSL *s, unsigned int flags)
 
void SSL_set_info_callback (SSL *ssl, void(*cb)(const SSL *ssl, int type, int val))
 
void SSL_set_security_level (SSL *s, int level)
 
void SSL_set_verify (SSL *s, int mode, SSL_verify_cb callback)
 
int SSL_shutdown (SSL *s)
 
__owur int SSL_use_certificate (SSL *ssl, X509 *x)
 
__owur int SSL_version (const SSL *ssl)
 
__owur int SSL_write (SSL *ssl, const void *buf, int num)
 
__owur const SSL_METHOD * TLS_client_method (void)
 

Detailed Description

Null implementation of SSL functions called by BaseCryptLib.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SslNull.c.

Function Documentation

◆ OPENSSL_init_ssl()

int OPENSSL_init_ssl ( uint64_t  opts,
const OPENSSL_INIT_SETTINGS *  settings 
)

Definition at line 16 of file SslNull.c.

◆ SSL_CIPHER_get_id()

__owur uint32_t SSL_CIPHER_get_id ( const SSL_CIPHER *  c)

Definition at line 26 of file SslNull.c.

◆ SSL_COMP_add_compression_method()

__owur int SSL_COMP_add_compression_method ( int  id,
COMP_METHOD *  cm 
)

Definition at line 35 of file SslNull.c.

◆ SSL_ctrl()

long SSL_ctrl ( SSL *  ssl,
int  cmd,
long  larg,
void *  parg 
)

Definition at line 126 of file SslNull.c.

◆ SSL_CTX_ctrl()

long SSL_CTX_ctrl ( SSL_CTX *  ctx,
int  cmd,
long  larg,
void *  parg 
)

Definition at line 45 of file SslNull.c.

◆ SSL_CTX_free()

void SSL_CTX_free ( SSL_CTX *  x)

Definition at line 57 of file SslNull.c.

◆ SSL_CTX_get_cert_store()

__owur X509_STORE * SSL_CTX_get_cert_store ( const SSL_CTX *  x)

Definition at line 66 of file SslNull.c.

◆ SSL_CTX_new()

__owur SSL_CTX * SSL_CTX_new ( const SSL_METHOD *  meth)

Definition at line 75 of file SslNull.c.

◆ SSL_CTX_set_options()

uint64_t SSL_CTX_set_options ( SSL_CTX *  ctx,
uint64_t  op 
)

Definition at line 84 of file SslNull.c.

◆ SSL_do_handshake()

__owur int SSL_do_handshake ( SSL *  s)

Definition at line 138 of file SslNull.c.

◆ SSL_free()

void SSL_free ( SSL *  ssl)

Definition at line 147 of file SslNull.c.

◆ SSL_get0_param()

__owur X509_VERIFY_PARAM * SSL_get0_param ( SSL *  ssl)

Definition at line 242 of file SslNull.c.

◆ SSL_get_certificate()

__owur X509 * SSL_get_certificate ( const SSL *  ssl)

Definition at line 156 of file SslNull.c.

◆ SSL_get_client_random()

__owur size_t SSL_get_client_random ( const SSL *  ssl,
unsigned char *  out,
size_t  outlen 
)

Definition at line 165 of file SslNull.c.

◆ SSL_get_current_cipher()

__owur const SSL_CIPHER * SSL_get_current_cipher ( const SSL *  s)

Definition at line 176 of file SslNull.c.

◆ SSL_get_error()

__owur int SSL_get_error ( const SSL *  s,
int  ret_code 
)

Definition at line 185 of file SslNull.c.

◆ SSL_get_server_random()

__owur size_t SSL_get_server_random ( const SSL *  ssl,
unsigned char *  out,
size_t  outlen 
)

Definition at line 195 of file SslNull.c.

◆ SSL_get_session()

__owur SSL_SESSION * SSL_get_session ( const SSL *  ssl)

Definition at line 206 of file SslNull.c.

◆ SSL_get_SSL_CTX()

__owur SSL_CTX * SSL_get_SSL_CTX ( const SSL *  ssl)

Definition at line 215 of file SslNull.c.

◆ SSL_get_state()

__owur OSSL_HANDSHAKE_STATE SSL_get_state ( const SSL *  ssl)

Definition at line 224 of file SslNull.c.

◆ SSL_get_verify_mode()

__owur int SSL_get_verify_mode ( const SSL *  s)

Definition at line 233 of file SslNull.c.

◆ SSL_is_init_finished()

int SSL_is_init_finished ( const SSL *  s)

Definition at line 251 of file SslNull.c.

◆ SSL_is_server()

__owur int SSL_is_server ( const SSL *  s)

Definition at line 260 of file SslNull.c.

◆ SSL_new()

SSL * SSL_new ( SSL_CTX *  ctx)

Definition at line 269 of file SslNull.c.

◆ SSL_read()

__owur int SSL_read ( SSL *  ssl,
void *  buf,
int  num 
)

Definition at line 278 of file SslNull.c.

◆ SSL_SESSION_get_id()

const unsigned char * SSL_SESSION_get_id ( const SSL_SESSION *  s,
unsigned int *  len 
)

Definition at line 94 of file SslNull.c.

◆ SSL_SESSION_get_master_key()

__owur size_t SSL_SESSION_get_master_key ( const SSL_SESSION *  sess,
unsigned char *  out,
size_t  outlen 
)

Definition at line 104 of file SslNull.c.

◆ SSL_SESSION_set1_id()

__owur int SSL_SESSION_set1_id ( SSL_SESSION *  s,
const unsigned char *  sid,
unsigned int  sid_len 
)

Definition at line 115 of file SslNull.c.

◆ SSL_set_bio()

void SSL_set_bio ( SSL *  s,
BIO *  rbio,
BIO *  wbio 
)

Definition at line 289 of file SslNull.c.

◆ SSL_set_cipher_list()

__owur int SSL_set_cipher_list ( SSL *  s,
const char *  str 
)

Definition at line 300 of file SslNull.c.

◆ SSL_set_connect_state()

void SSL_set_connect_state ( SSL *  s)

Definition at line 310 of file SslNull.c.

◆ SSL_set_hostflags()

void SSL_set_hostflags ( SSL *  s,
unsigned int  flags 
)

Definition at line 319 of file SslNull.c.

◆ SSL_set_info_callback()

void SSL_set_info_callback ( SSL *  ssl,
void(*)(const SSL *ssl, int type, int val)  cb 
)

Definition at line 329 of file SslNull.c.

◆ SSL_set_security_level()

void SSL_set_security_level ( SSL *  s,
int  level 
)

Definition at line 339 of file SslNull.c.

◆ SSL_set_verify()

void SSL_set_verify ( SSL *  s,
int  mode,
SSL_verify_cb  callback 
)

Definition at line 349 of file SslNull.c.

◆ SSL_shutdown()

int SSL_shutdown ( SSL *  s)

Definition at line 360 of file SslNull.c.

◆ SSL_use_certificate()

__owur int SSL_use_certificate ( SSL *  ssl,
X509 *  x 
)

Definition at line 369 of file SslNull.c.

◆ SSL_version()

__owur int SSL_version ( const SSL *  ssl)

Definition at line 379 of file SslNull.c.

◆ SSL_write()

__owur int SSL_write ( SSL *  ssl,
const void *  buf,
int  num 
)

Definition at line 388 of file SslNull.c.

◆ TLS_client_method()

__owur const SSL_METHOD * TLS_client_method ( void  )

Definition at line 399 of file SslNull.c.