OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
ssl_lib.c File Reference

Version independent SSL functions. More...

#include <stdio.h>
#include "ssl_locl.h"
#include "kssl_lcl.h"
#include <openssl/objects.h>
#include <openssl/lhash.h>
#include <openssl/x509v3.h>
#include <openssl/rand.h>
#include <openssl/ocsp.h>
#include <openssl/dh.h>
#include <openssl/engine.h>

Go to the source code of this file.

Macros

#define ku_reject(x, usage)   (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage)))
 

Functions

int SSL_clear (SSL *s)
 
int SSL_CTX_set_ssl_version (SSL_CTX *ctx, const SSL_METHOD *meth)
 
SSLSSL_new (SSL_CTX *ctx)
 
int SSL_CTX_set_session_id_context (SSL_CTX *ctx, const unsigned char *sid_ctx, unsigned int sid_ctx_len)
 
int SSL_set_session_id_context (SSL *ssl, const unsigned char *sid_ctx, unsigned int sid_ctx_len)
 
int SSL_CTX_set_generate_session_id (SSL_CTX *ctx, GEN_SESSION_CB cb)
 
int SSL_set_generate_session_id (SSL *ssl, GEN_SESSION_CB cb)
 
int SSL_has_matching_session_id (const SSL *ssl, const unsigned char *id, unsigned int id_len)
 
int SSL_CTX_set_purpose (SSL_CTX *s, int purpose)
 
int SSL_set_purpose (SSL *s, int purpose)
 
int SSL_CTX_set_trust (SSL_CTX *s, int trust)
 
int SSL_set_trust (SSL *s, int trust)
 
int SSL_CTX_set1_param (SSL_CTX *ctx, X509_VERIFY_PARAM *vpm)
 
int SSL_set1_param (SSL *ssl, X509_VERIFY_PARAM *vpm)
 
void SSL_free (SSL *s)
 
void SSL_set_bio (SSL *s, BIO *rbio, BIO *wbio)
 
BIOSSL_get_rbio (const SSL *s)
 
BIOSSL_get_wbio (const SSL *s)
 
int SSL_get_fd (const SSL *s)
 
int SSL_get_rfd (const SSL *s)
 
int SSL_get_wfd (const SSL *s)
 
int SSL_set_fd (SSL *s, int fd)
 
int SSL_set_wfd (SSL *s, int fd)
 
int SSL_set_rfd (SSL *s, int fd)
 
size_t SSL_get_finished (const SSL *s, void *buf, size_t count)
 
size_t SSL_get_peer_finished (const SSL *s, void *buf, size_t count)
 
int SSL_get_verify_mode (const SSL *s)
 
int SSL_get_verify_depth (const SSL *s)
 
int SSL_CTX_get_verify_mode (const SSL_CTX *ctx)
 
int SSL_CTX_get_verify_depth (const SSL_CTX *ctx)
 
void SSL_set_verify (SSL *s, int mode, int(*callback)(int ok, X509_STORE_CTX *ctx))
 
void SSL_set_verify_depth (SSL *s, int depth)
 
void SSL_set_read_ahead (SSL *s, int yes)
 
int SSL_get_read_ahead (const SSL *s)
 
int SSL_pending (const SSL *s)
 
X509SSL_get_peer_certificate (const SSL *s)
 
 STACK_OF (X509)
 
void SSL_copy_session_id (SSL *t, const SSL *f)
 
int SSL_CTX_check_private_key (const SSL_CTX *ctx)
 
int SSL_check_private_key (const SSL *ssl)
 
int SSL_accept (SSL *s)
 
int SSL_connect (SSL *s)
 
long SSL_get_default_timeout (const SSL *s)
 
int SSL_read (SSL *s, void *buf, int num)
 
int SSL_peek (SSL *s, void *buf, int num)
 
int SSL_write (SSL *s, const void *buf, int num)
 
int SSL_shutdown (SSL *s)
 
int SSL_renegotiate (SSL *s)
 
int SSL_renegotiate_abbreviated (SSL *s)
 
int SSL_renegotiate_pending (SSL *s)
 
long SSL_ctrl (SSL *s, int cmd, long larg, void *parg)
 
long SSL_callback_ctrl (SSL *s, int cmd, void(*fp)(void))
 
 LHASH_OF (SSL_SESSION)
 
long SSL_CTX_ctrl (SSL_CTX *ctx, int cmd, long larg, void *parg)
 
long SSL_CTX_callback_ctrl (SSL_CTX *ctx, int cmd, void(*fp)(void))
 
int ssl_cipher_id_cmp (const SSL_CIPHER *a, const SSL_CIPHER *b)
 
int ssl_cipher_ptr_id_cmp (const SSL_CIPHER *const *ap, const SSL_CIPHER *const *bp)
 
 STACK_OF (SSL_CIPHER)
 
const char * SSL_get_cipher_list (const SSL *s, int n)
 
int SSL_CTX_set_cipher_list (SSL_CTX *ctx, const char *str)
 
int SSL_set_cipher_list (SSL *s, const char *str)
 
char * SSL_get_shared_ciphers (const SSL *s, char *buf, int len)
 
int ssl_cipher_list_to_bytes (SSL *s, STACK_OF(SSL_CIPHER)*sk, unsigned char *p, int(*put_cb)(const SSL_CIPHER *, unsigned char *))
 
const char * SSL_get_servername (const SSL *s, const int type)
 
int SSL_get_servername_type (const SSL *s)
 
int SSL_select_next_proto (unsigned char **out, unsigned char *outlen, const unsigned char *server, unsigned int server_len, const unsigned char *client, unsigned int client_len)
 
void SSL_get0_next_proto_negotiated (const SSL *s, const unsigned char **data, unsigned *len)
 
void SSL_CTX_set_next_protos_advertised_cb (SSL_CTX *ctx, int(*cb)(SSL *ssl, const unsigned char **out, unsigned int *outlen, void *arg), void *arg)
 
void SSL_CTX_set_next_proto_select_cb (SSL_CTX *ctx, int(*cb)(SSL *s, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg), void *arg)
 
int SSL_export_keying_material (SSL *s, unsigned char *out, size_t olen, const char *label, size_t llen, const unsigned char *p, size_t plen, int use_context)
 
void SSL_CTX_free (SSL_CTX *a)
 
void SSL_CTX_set_default_passwd_cb (SSL_CTX *ctx, pem_password_cb *cb)
 
void SSL_CTX_set_default_passwd_cb_userdata (SSL_CTX *ctx, void *u)
 
void SSL_CTX_set_cert_verify_callback (SSL_CTX *ctx, int(*cb)(X509_STORE_CTX *, void *), void *arg)
 
void SSL_CTX_set_verify (SSL_CTX *ctx, int mode, int(*cb)(int, X509_STORE_CTX *))
 
void SSL_CTX_set_verify_depth (SSL_CTX *ctx, int depth)
 
void ssl_set_cert_masks (CERT *c, const SSL_CIPHER *cipher)
 
int ssl_check_srvr_ecc_cert_and_alg (X509 *x, SSL *s)
 
X509ssl_get_server_send_cert (SSL *s)
 
EVP_PKEYssl_get_sign_pkey (SSL *s, const SSL_CIPHER *cipher, const EVP_MD **pmd)
 
void ssl_update_cache (SSL *s, int mode)
 
const SSL_METHODSSL_get_ssl_method (SSL *s)
 
int SSL_set_ssl_method (SSL *s, const SSL_METHOD *meth)
 
int SSL_get_error (const SSL *s, int i)
 
int SSL_do_handshake (SSL *s)
 
void SSL_set_accept_state (SSL *s)
 
void SSL_set_connect_state (SSL *s)
 
int ssl_undefined_function (SSL *s)
 
int ssl_undefined_void_function (void)
 
int ssl_undefined_const_function (const SSL *s)
 
SSL_METHODssl_bad_method (int ver)
 
const char * SSL_get_version (const SSL *s)
 
SSLSSL_dup (SSL *s)
 
void ssl_clear_cipher_ctx (SSL *s)
 
X509SSL_get_certificate (const SSL *s)
 
EVP_PKEYSSL_get_privatekey (SSL *s)
 
const SSL_CIPHERSSL_get_current_cipher (const SSL *s)
 
const COMP_METHODSSL_get_current_compression (SSL *s)
 
const COMP_METHODSSL_get_current_expansion (SSL *s)
 
int ssl_init_wbio_buffer (SSL *s, int push)
 
void ssl_free_wbio_buffer (SSL *s)
 
void SSL_CTX_set_quiet_shutdown (SSL_CTX *ctx, int mode)
 
int SSL_CTX_get_quiet_shutdown (const SSL_CTX *ctx)
 
void SSL_set_quiet_shutdown (SSL *s, int mode)
 
int SSL_get_quiet_shutdown (const SSL *s)
 
void SSL_set_shutdown (SSL *s, int mode)
 
int SSL_get_shutdown (const SSL *s)
 
int SSL_version (const SSL *s)
 
SSL_CTXSSL_get_SSL_CTX (const SSL *ssl)
 
SSL_CTXSSL_set_SSL_CTX (SSL *ssl, SSL_CTX *ctx)
 
int SSL_CTX_set_default_verify_paths (SSL_CTX *ctx)
 
int SSL_CTX_load_verify_locations (SSL_CTX *ctx, const char *CAfile, const char *CApath)
 
void SSL_set_info_callback (SSL *ssl, void(*cb)(const SSL *ssl, int type, int val))
 
int SSL_state (const SSL *ssl)
 
void SSL_set_state (SSL *ssl, int state)
 
void SSL_set_verify_result (SSL *ssl, long arg)
 
long SSL_get_verify_result (const SSL *ssl)
 
int SSL_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
 
int SSL_set_ex_data (SSL *s, int idx, void *arg)
 
voidSSL_get_ex_data (const SSL *s, int idx)
 
int SSL_CTX_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
 
int SSL_CTX_set_ex_data (SSL_CTX *s, int idx, void *arg)
 
voidSSL_CTX_get_ex_data (const SSL_CTX *s, int idx)
 
int ssl_ok (SSL *s)
 
X509_STORESSL_CTX_get_cert_store (const SSL_CTX *ctx)
 
void SSL_CTX_set_cert_store (SSL_CTX *ctx, X509_STORE *store)
 
int SSL_want (const SSL *s)
 
void SSL_CTX_set_tmp_rsa_callback (SSL_CTX *ctx, RSA *(*cb)(SSL *ssl, int is_export, int keylength))
 Set the callback for generating temporary RSA keys.
 
void SSL_set_tmp_rsa_callback (SSL *ssl, RSA *(*cb)(SSL *ssl, int is_export, int keylength))
 
void SSL_CTX_set_tmp_dh_callback (SSL_CTX *ctx, DH *(*dh)(SSL *ssl, int is_export, int keylength))
 Set the callback for generating temporary DH keys.
 
void SSL_set_tmp_dh_callback (SSL *ssl, DH *(*dh)(SSL *ssl, int is_export, int keylength))
 
void SSL_CTX_set_tmp_ecdh_callback (SSL_CTX *ctx, EC_KEY *(*ecdh)(SSL *ssl, int is_export, int keylength))
 
void SSL_set_tmp_ecdh_callback (SSL *ssl, EC_KEY *(*ecdh)(SSL *ssl, int is_export, int keylength))
 
int SSL_CTX_use_psk_identity_hint (SSL_CTX *ctx, const char *identity_hint)
 
int SSL_use_psk_identity_hint (SSL *s, const char *identity_hint)
 
const char * SSL_get_psk_identity_hint (const SSL *s)
 
const char * SSL_get_psk_identity (const SSL *s)
 
void SSL_set_psk_client_callback (SSL *s, unsigned int(*cb)(SSL *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len))
 
void SSL_CTX_set_psk_client_callback (SSL_CTX *ctx, unsigned int(*cb)(SSL *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len))
 
void SSL_set_psk_server_callback (SSL *s, unsigned int(*cb)(SSL *ssl, const char *identity, unsigned char *psk, unsigned int max_psk_len))
 
void SSL_CTX_set_psk_server_callback (SSL_CTX *ctx, unsigned int(*cb)(SSL *ssl, const char *identity, unsigned char *psk, unsigned int max_psk_len))
 
void SSL_CTX_set_msg_callback (SSL_CTX *ctx, void(*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg))
 
void SSL_set_msg_callback (SSL *ssl, void(*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg))
 
EVP_MD_CTXssl_replace_hash (EVP_MD_CTX **hash, const EVP_MD *md)
 
void ssl_clear_hash_ctx (EVP_MD_CTX **hash)
 
void SSL_set_debug (SSL *s, int debug)
 
int SSL_cache_hit (SSL *s)
 
 IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN (SSL_CIPHER, SSL_CIPHER, ssl_cipher_id)
 

Variables

const char * SSL_version_str =OPENSSL_VERSION_TEXT
 
SSL3_ENC_METHOD ssl3_undef_enc_method
 
int(*)(int, X509_STORE_CTX *) SSL_get_verify_callback (const SSL *s)
 
int(*)(int, X509_STORE_CTX *) SSL_CTX_get_verify_callback (const SSL_CTX *ctx)
 
void(*)(const SSL *, int, int) SSL_get_info_callback (const SSL *ssl)
 

Detailed Description

Version independent SSL functions.

Definition in file ssl_lib.c.

Macro Definition Documentation

#define ku_reject (   x,
  usage 
)    (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage)))

Definition at line 2213 of file ssl_lib.c.

Function Documentation

IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN ( SSL_CIPHER  ,
SSL_CIPHER  ,
ssl_cipher_id   
)
LHASH_OF ( SSL_SESSION  )

Definition at line 1121 of file ssl_lib.c.

int SSL_accept ( SSL s)

Definition at line 932 of file ssl_lib.c.

SSL_METHOD* ssl_bad_method ( int  ver)

Definition at line 2599 of file ssl_lib.c.

int SSL_cache_hit ( SSL s)

Definition at line 3239 of file ssl_lib.c.

long SSL_callback_ctrl ( SSL s,
int  cmd,
void(*)(void fp 
)

Definition at line 1108 of file ssl_lib.c.

int SSL_check_private_key ( const SSL ssl)

Definition at line 906 of file ssl_lib.c.

int ssl_check_srvr_ecc_cert_and_alg ( X509 x,
SSL s 
)

Definition at line 2218 of file ssl_lib.c.

int ssl_cipher_id_cmp ( const SSL_CIPHER a,
const SSL_CIPHER b 
)

Definition at line 1218 of file ssl_lib.c.

int ssl_cipher_list_to_bytes ( SSL s,
STACK_OF(SSL_CIPHER)*  sk,
unsigned char *  p,
int(*)(const SSL_CIPHER *, unsigned char *)  put_cb 
)

Definition at line 1372 of file ssl_lib.c.

int ssl_cipher_ptr_id_cmp ( const SSL_CIPHER *const *  ap,
const SSL_CIPHER *const *  bp 
)

Definition at line 1229 of file ssl_lib.c.

int SSL_clear ( SSL s)

Definition at line 185 of file ssl_lib.c.

void ssl_clear_cipher_ctx ( SSL s)

Definition at line 2752 of file ssl_lib.c.

void ssl_clear_hash_ctx ( EVP_MD_CTX **  hash)

Definition at line 3227 of file ssl_lib.c.

int SSL_connect ( SSL s)

Definition at line 941 of file ssl_lib.c.

void SSL_copy_session_id ( SSL t,
const SSL f 
)

Definition at line 859 of file ssl_lib.c.

long SSL_ctrl ( SSL s,
int  cmd,
long  larg,
void parg 
)

Definition at line 1050 of file ssl_lib.c.

long SSL_CTX_callback_ctrl ( SSL_CTX ctx,
int  cmd,
void(*)(void fp 
)

Definition at line 1205 of file ssl_lib.c.

int SSL_CTX_check_private_key ( const SSL_CTX ctx)

Definition at line 888 of file ssl_lib.c.

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

Definition at line 1126 of file ssl_lib.c.

void SSL_CTX_free ( SSL_CTX a)

Definition at line 1897 of file ssl_lib.c.

X509_STORE* SSL_CTX_get_cert_store ( const SSL_CTX ctx)

Definition at line 3025 of file ssl_lib.c.

void* SSL_CTX_get_ex_data ( const SSL_CTX s,
int  idx 
)

Definition at line 3015 of file ssl_lib.c.

int SSL_CTX_get_ex_new_index ( long  argl,
void argp,
CRYPTO_EX_new new_func,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func 
)

Definition at line 3003 of file ssl_lib.c.

int SSL_CTX_get_quiet_shutdown ( const SSL_CTX ctx)

Definition at line 2887 of file ssl_lib.c.

int SSL_CTX_get_verify_depth ( const SSL_CTX ctx)

Definition at line 781 of file ssl_lib.c.

int SSL_CTX_get_verify_mode ( const SSL_CTX ctx)

Definition at line 776 of file ssl_lib.c.

int SSL_CTX_load_verify_locations ( SSL_CTX ctx,
const char *  CAfile,
const char *  CApath 
)

Definition at line 2946 of file ssl_lib.c.

int SSL_CTX_set1_param ( SSL_CTX ctx,
X509_VERIFY_PARAM vpm 
)

Definition at line 495 of file ssl_lib.c.

void SSL_CTX_set_cert_store ( SSL_CTX ctx,
X509_STORE store 
)

Definition at line 3030 of file ssl_lib.c.

void SSL_CTX_set_cert_verify_callback ( SSL_CTX ctx,
int(*)(X509_STORE_CTX *, void *)  cb,
void arg 
)

Definition at line 1990 of file ssl_lib.c.

int SSL_CTX_set_cipher_list ( SSL_CTX ctx,
const char *  str 
)

specify the ciphers to be used by default by the SSL_CTX

Definition at line 1295 of file ssl_lib.c.

void SSL_CTX_set_default_passwd_cb ( SSL_CTX ctx,
pem_password_cb cb 
)

Definition at line 1980 of file ssl_lib.c.

void SSL_CTX_set_default_passwd_cb_userdata ( SSL_CTX ctx,
void u 
)

Definition at line 1985 of file ssl_lib.c.

int SSL_CTX_set_default_verify_paths ( SSL_CTX ctx)

Definition at line 2941 of file ssl_lib.c.

int SSL_CTX_set_ex_data ( SSL_CTX s,
int  idx,
void arg 
)

Definition at line 3010 of file ssl_lib.c.

int SSL_CTX_set_generate_session_id ( SSL_CTX ctx,
GEN_SESSION_CB  cb 
)

Definition at line 425 of file ssl_lib.c.

void SSL_CTX_set_msg_callback ( SSL_CTX ctx,
void(*)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg cb 
)

Definition at line 3205 of file ssl_lib.c.

void SSL_CTX_set_next_proto_select_cb ( SSL_CTX ctx,
int(*)(SSL *s, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg cb,
void arg 
)

Definition at line 1624 of file ssl_lib.c.

void SSL_CTX_set_next_protos_advertised_cb ( SSL_CTX ctx,
int(*)(SSL *ssl, const unsigned char **out, unsigned int *outlen, void *arg cb,
void arg 
)

Definition at line 1608 of file ssl_lib.c.

void SSL_CTX_set_psk_client_callback ( SSL_CTX ctx,
unsigned int(*)(SSL *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len)  cb 
)

Definition at line 3182 of file ssl_lib.c.

void SSL_CTX_set_psk_server_callback ( SSL_CTX ctx,
unsigned int(*)(SSL *ssl, const char *identity, unsigned char *psk, unsigned int max_psk_len)  cb 
)

Definition at line 3197 of file ssl_lib.c.

int SSL_CTX_set_purpose ( SSL_CTX s,
int  purpose 
)

Definition at line 475 of file ssl_lib.c.

void SSL_CTX_set_quiet_shutdown ( SSL_CTX ctx,
int  mode 
)

Definition at line 2882 of file ssl_lib.c.

int SSL_CTX_set_session_id_context ( SSL_CTX ctx,
const unsigned char *  sid_ctx,
unsigned int  sid_ctx_len 
)

Definition at line 397 of file ssl_lib.c.

int SSL_CTX_set_ssl_version ( SSL_CTX ctx,
const SSL_METHOD meth 
)

Used to change an SSL_CTXs default SSL method type

Definition at line 258 of file ssl_lib.c.

void SSL_CTX_set_tmp_dh_callback ( SSL_CTX ctx,
DH *(*)(SSL *ssl, int is_export, int keylength)  dh 
)

Set the callback for generating temporary DH keys.

Parameters
ctxthe SSL context.
dhthe callback

Definition at line 3086 of file ssl_lib.c.

void SSL_CTX_set_tmp_ecdh_callback ( SSL_CTX ctx,
EC_KEY *(*)(SSL *ssl, int is_export, int keylength)  ecdh 
)

Definition at line 3100 of file ssl_lib.c.

void SSL_CTX_set_tmp_rsa_callback ( SSL_CTX ctx,
RSA *(*)(SSL *ssl, int is_export, int keylength)  cb 
)

Set the callback for generating temporary RSA keys.

Parameters
ctxthe SSL context.
cbthe callback

Definition at line 3049 of file ssl_lib.c.

int SSL_CTX_set_trust ( SSL_CTX s,
int  trust 
)

Definition at line 485 of file ssl_lib.c.

void SSL_CTX_set_verify ( SSL_CTX ctx,
int  mode,
int(*)(int, X509_STORE_CTX *)  cb 
)

Definition at line 1996 of file ssl_lib.c.

void SSL_CTX_set_verify_depth ( SSL_CTX ctx,
int  depth 
)

Definition at line 2002 of file ssl_lib.c.

int SSL_CTX_use_psk_identity_hint ( SSL_CTX ctx,
const char *  identity_hint 
)

Definition at line 3114 of file ssl_lib.c.

int SSL_do_handshake ( SSL s)

Definition at line 2536 of file ssl_lib.c.

SSL* SSL_dup ( SSL s)

Definition at line 2621 of file ssl_lib.c.

int SSL_export_keying_material ( SSL s,
unsigned char *  out,
size_t  olen,
const char *  label,
size_t  llen,
const unsigned char *  p,
size_t  plen,
int  use_context 
)

Definition at line 1632 of file ssl_lib.c.

void SSL_free ( SSL s)

Definition at line 505 of file ssl_lib.c.

void ssl_free_wbio_buffer ( SSL s)

Definition at line 2866 of file ssl_lib.c.

void SSL_get0_next_proto_negotiated ( const SSL s,
const unsigned char **  data,
unsigned *  len 
)

Definition at line 1589 of file ssl_lib.c.

X509* SSL_get_certificate ( const SSL s)

Definition at line 2781 of file ssl_lib.c.

const char* SSL_get_cipher_list ( const SSL s,
int  n 
)

The old interface to get the same thing as SSL_get_ciphers()

Definition at line 1280 of file ssl_lib.c.

const SSL_CIPHER* SSL_get_current_cipher ( const SSL s)

Definition at line 2798 of file ssl_lib.c.

const COMP_METHOD* SSL_get_current_compression ( SSL s)

Definition at line 2815 of file ssl_lib.c.

const COMP_METHOD* SSL_get_current_expansion ( SSL s)

Definition at line 2822 of file ssl_lib.c.

long SSL_get_default_timeout ( const SSL s)

Definition at line 950 of file ssl_lib.c.

int SSL_get_error ( const SSL s,
int  i 
)

Definition at line 2449 of file ssl_lib.c.

void* SSL_get_ex_data ( const SSL s,
int  idx 
)

Definition at line 2998 of file ssl_lib.c.

int SSL_get_ex_new_index ( long  argl,
void argp,
CRYPTO_EX_new new_func,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func 
)

Definition at line 2986 of file ssl_lib.c.

int SSL_get_fd ( const SSL s)

Definition at line 632 of file ssl_lib.c.

size_t SSL_get_finished ( const SSL s,
void buf,
size_t  count 
)

Definition at line 731 of file ssl_lib.c.

X509* SSL_get_peer_certificate ( const SSL s)

Definition at line 826 of file ssl_lib.c.

size_t SSL_get_peer_finished ( const SSL s,
void buf,
size_t  count 
)

Definition at line 746 of file ssl_lib.c.

EVP_PKEY* SSL_get_privatekey ( SSL s)
read

Definition at line 2790 of file ssl_lib.c.

const char* SSL_get_psk_identity ( const SSL s)

Definition at line 3167 of file ssl_lib.c.

const char* SSL_get_psk_identity_hint ( const SSL s)

Definition at line 3160 of file ssl_lib.c.

int SSL_get_quiet_shutdown ( const SSL s)

Definition at line 2897 of file ssl_lib.c.

BIO* SSL_get_rbio ( const SSL s)

Definition at line 626 of file ssl_lib.c.

int SSL_get_read_ahead ( const SSL s)

Definition at line 809 of file ssl_lib.c.

int SSL_get_rfd ( const SSL s)

Definition at line 637 of file ssl_lib.c.

X509* ssl_get_server_send_cert ( SSL s)

Definition at line 2290 of file ssl_lib.c.

const char* SSL_get_servername ( const SSL s,
const int  type 
)

return a servername extension value if provided in Client Hello, or NULL. So far, only host_name types are defined (RFC 3546).

Definition at line 1497 of file ssl_lib.c.

int SSL_get_servername_type ( const SSL s)

Definition at line 1507 of file ssl_lib.c.

char* SSL_get_shared_ciphers ( const SSL s,
char *  buf,
int  len 
)

Definition at line 1337 of file ssl_lib.c.

int SSL_get_shutdown ( const SSL s)

Definition at line 2907 of file ssl_lib.c.

EVP_PKEY* ssl_get_sign_pkey ( SSL s,
const SSL_CIPHER cipher,
const EVP_MD **  pmd 
)

Definition at line 2353 of file ssl_lib.c.

SSL_CTX* SSL_get_SSL_CTX ( const SSL ssl)

Definition at line 2917 of file ssl_lib.c.

const SSL_METHOD* SSL_get_ssl_method ( SSL s)

Definition at line 2417 of file ssl_lib.c.

int SSL_get_verify_depth ( const SSL s)

Definition at line 766 of file ssl_lib.c.

int SSL_get_verify_mode ( const SSL s)

Definition at line 761 of file ssl_lib.c.

long SSL_get_verify_result ( const SSL ssl)

Definition at line 2981 of file ssl_lib.c.

const char* SSL_get_version ( const SSL s)

Definition at line 2605 of file ssl_lib.c.

BIO* SSL_get_wbio ( const SSL s)

Definition at line 629 of file ssl_lib.c.

int SSL_get_wfd ( const SSL s)

Definition at line 649 of file ssl_lib.c.

int SSL_has_matching_session_id ( const SSL ssl,
const unsigned char *  id,
unsigned int  id_len 
)

Definition at line 441 of file ssl_lib.c.

int ssl_init_wbio_buffer ( SSL s,
int  push 
)

Definition at line 2830 of file ssl_lib.c.

SSL* SSL_new ( SSL_CTX ctx)

Definition at line 275 of file ssl_lib.c.

int ssl_ok ( SSL s)

Definition at line 3020 of file ssl_lib.c.

int SSL_peek ( SSL s,
void buf,
int  num 
)

Definition at line 971 of file ssl_lib.c.

int SSL_pending ( const SSL s)

Definition at line 814 of file ssl_lib.c.

int SSL_read ( SSL s,
void buf,
int  num 
)

Definition at line 955 of file ssl_lib.c.

int SSL_renegotiate ( SSL s)

Definition at line 1023 of file ssl_lib.c.

int SSL_renegotiate_abbreviated ( SSL s)

Definition at line 1033 of file ssl_lib.c.

int SSL_renegotiate_pending ( SSL s)

Definition at line 1043 of file ssl_lib.c.

EVP_MD_CTX* ssl_replace_hash ( EVP_MD_CTX **  hash,
const EVP_MD md 
)

Definition at line 3220 of file ssl_lib.c.

int SSL_select_next_proto ( unsigned char **  out,
unsigned char *  outlen,
const unsigned char *  server,
unsigned int  server_len,
const unsigned char *  client,
unsigned int  client_len 
)

Definition at line 1545 of file ssl_lib.c.

int SSL_set1_param ( SSL ssl,
X509_VERIFY_PARAM vpm 
)

Definition at line 500 of file ssl_lib.c.

void SSL_set_accept_state ( SSL s)

Definition at line 2557 of file ssl_lib.c.

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

Definition at line 606 of file ssl_lib.c.

void ssl_set_cert_masks ( CERT c,
const SSL_CIPHER cipher 
)

Definition at line 2007 of file ssl_lib.c.

int SSL_set_cipher_list ( SSL s,
const char *  str 
)

specify the ciphers to be used by the SSL

Definition at line 1319 of file ssl_lib.c.

void SSL_set_connect_state ( SSL s)

Definition at line 2569 of file ssl_lib.c.

void SSL_set_debug ( SSL s,
int  debug 
)

Definition at line 3234 of file ssl_lib.c.

int SSL_set_ex_data ( SSL s,
int  idx,
void arg 
)

Definition at line 2993 of file ssl_lib.c.

int SSL_set_fd ( SSL s,
int  fd 
)

Definition at line 662 of file ssl_lib.c.

int SSL_set_generate_session_id ( SSL ssl,
GEN_SESSION_CB  cb 
)

Definition at line 433 of file ssl_lib.c.

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

Definition at line 2953 of file ssl_lib.c.

void SSL_set_msg_callback ( SSL ssl,
void(*)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg cb 
)

Definition at line 3209 of file ssl_lib.c.

void SSL_set_psk_client_callback ( SSL s,
unsigned int(*)(SSL *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len)  cb 
)

Definition at line 3174 of file ssl_lib.c.

void SSL_set_psk_server_callback ( SSL s,
unsigned int(*)(SSL *ssl, const char *identity, unsigned char *psk, unsigned int max_psk_len)  cb 
)

Definition at line 3190 of file ssl_lib.c.

int SSL_set_purpose ( SSL s,
int  purpose 
)

Definition at line 480 of file ssl_lib.c.

void SSL_set_quiet_shutdown ( SSL s,
int  mode 
)

Definition at line 2892 of file ssl_lib.c.

void SSL_set_read_ahead ( SSL s,
int  yes 
)

Definition at line 804 of file ssl_lib.c.

int SSL_set_rfd ( SSL s,
int  fd 
)

Definition at line 703 of file ssl_lib.c.

int SSL_set_session_id_context ( SSL ssl,
const unsigned char *  sid_ctx,
unsigned int  sid_ctx_len 
)

Definition at line 411 of file ssl_lib.c.

void SSL_set_shutdown ( SSL s,
int  mode 
)

Definition at line 2902 of file ssl_lib.c.

SSL_CTX* SSL_set_SSL_CTX ( SSL ssl,
SSL_CTX ctx 
)

Definition at line 2922 of file ssl_lib.c.

int SSL_set_ssl_method ( SSL s,
const SSL_METHOD meth 
)

Definition at line 2422 of file ssl_lib.c.

void SSL_set_state ( SSL ssl,
int  state 
)

Definition at line 2971 of file ssl_lib.c.

void SSL_set_tmp_dh_callback ( SSL ssl,
DH *(*)(SSL *ssl, int is_export, int keylength)  dh 
)

Definition at line 3092 of file ssl_lib.c.

void SSL_set_tmp_ecdh_callback ( SSL ssl,
EC_KEY *(*)(SSL *ssl, int is_export, int keylength)  ecdh 
)

Definition at line 3106 of file ssl_lib.c.

void SSL_set_tmp_rsa_callback ( SSL ssl,
RSA *(*)(SSL *ssl, int is_export, int keylength)  cb 
)

Definition at line 3056 of file ssl_lib.c.

int SSL_set_trust ( SSL s,
int  trust 
)

Definition at line 490 of file ssl_lib.c.

void SSL_set_verify ( SSL s,
int  mode,
int(*)(int ok, X509_STORE_CTX *ctx)  callback 
)

Definition at line 791 of file ssl_lib.c.

void SSL_set_verify_depth ( SSL s,
int  depth 
)

Definition at line 799 of file ssl_lib.c.

void SSL_set_verify_result ( SSL ssl,
long  arg 
)

Definition at line 2976 of file ssl_lib.c.

int SSL_set_wfd ( SSL s,
int  fd 
)

Definition at line 681 of file ssl_lib.c.

int SSL_shutdown ( SSL s)

Definition at line 1003 of file ssl_lib.c.

int SSL_state ( const SSL ssl)

Definition at line 2966 of file ssl_lib.c.

int ssl_undefined_const_function ( const SSL s)

Definition at line 2593 of file ssl_lib.c.

int ssl_undefined_function ( SSL s)

Definition at line 2581 of file ssl_lib.c.

int ssl_undefined_void_function ( void  )

Definition at line 2587 of file ssl_lib.c.

void ssl_update_cache ( SSL s,
int  mode 
)

Definition at line 2385 of file ssl_lib.c.

int SSL_use_psk_identity_hint ( SSL s,
const char *  identity_hint 
)

Definition at line 3134 of file ssl_lib.c.

int SSL_version ( const SSL s)

Definition at line 2912 of file ssl_lib.c.

int SSL_want ( const SSL s)

Definition at line 3037 of file ssl_lib.c.

int SSL_write ( SSL s,
const void buf,
int  num 
)

Definition at line 986 of file ssl_lib.c.

STACK_OF ( X509  )

Definition at line 842 of file ssl_lib.c.

STACK_OF ( SSL_CIPHER  )

return a STACK of the ciphers available for the SSL and in order of preference

return a STACK of the ciphers available for the SSL and in order of algorithm id

Definition at line 1243 of file ssl_lib.c.

Variable Documentation

SSL3_ENC_METHOD ssl3_undef_enc_method
Initial value:
={
(int (*)(SSL *,int))ssl_undefined_function,
(int (*)(SSL *, unsigned char *, int))ssl_undefined_function,
(int (*)(SSL *, unsigned char *, unsigned char *, int))ssl_undefined_function,
(int (*)(SSL*, int))ssl_undefined_function,
(int (*)(SSL *, const char*, int, unsigned char *))ssl_undefined_function,
0,
(int (*)(SSL *, int, unsigned char *))ssl_undefined_function,
NULL,
0,
NULL,
0,
(int (*)(int))ssl_undefined_function,
(int (*)(SSL *, unsigned char *, size_t, const char *,
size_t, const unsigned char *, size_t,
int use_context)) ssl_undefined_function,
}

Definition at line 165 of file ssl_lib.c.

int(*)(int, X509_STORE_CTX *) SSL_CTX_get_verify_callback(const SSL_CTX *ctx)

Definition at line 786 of file ssl_lib.c.

void(*)(const SSL * , int , int ) SSL_get_info_callback(const SSL *ssl)

Definition at line 2961 of file ssl_lib.c.

int(*)(int, X509_STORE_CTX *) SSL_get_verify_callback(const SSL *s)

Definition at line 771 of file ssl_lib.c.

const char* SSL_version_str =OPENSSL_VERSION_TEXT

Definition at line 163 of file ssl_lib.c.