OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
ssl_locl.h File Reference
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include "e_os.h"
#include <openssl/buffer.h>
#include <openssl/comp.h>
#include <openssl/bio.h>
#include <openssl/stack.h>
#include <openssl/rsa.h>
#include <openssl/dsa.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <openssl/symhacks.h>

Go to the source code of this file.

Classes

struct  cert_pkey_st
 
struct  cert_st
 
struct  sess_cert_st
 
struct  ssl3_enc_method
 
struct  ssl3_comp_st
 
struct  ssl3_buf_freelist_st
 
struct  ssl3_buf_freelist_entry_st
 

Macros

#define c2l(c, l)
 
#define c2ln(c, l1, l2, n)
 
#define l2c(l, c)
 
#define n2l(c, l)
 
#define l2n(l, c)
 
#define l2n6(l, c)
 
#define n2l6(c, l)
 
#define l2cn(l1, l2, c, n)
 
#define n2s(c, s)
 
#define s2n(s, c)
 
#define n2l3(c, l)
 
#define l2n3(l, c)
 
#define SSL_DECRYPT   0
 
#define SSL_ENCRYPT   1
 
#define TWO_BYTE_BIT   0x80
 
#define SEC_ESC_BIT   0x40
 
#define TWO_BYTE_MASK   0x7fff
 
#define THREE_BYTE_MASK   0x3fff
 
#define INC32(a)   ((a)=((a)+1)&0xffffffffL)
 
#define DEC32(a)   ((a)=((a)-1)&0xffffffffL)
 
#define MAX_MAC_SIZE   20 /* up from 16 for SSLv3 */
 
#define SSL_kRSA   0x00000001L /* RSA key exchange */
 
#define SSL_kDHr   0x00000002L /* DH cert, RSA CA cert */ /* no such ciphersuites supported! */
 
#define SSL_kDHd   0x00000004L /* DH cert, DSA CA cert */ /* no such ciphersuite supported! */
 
#define SSL_kEDH   0x00000008L /* tmp DH key no DH cert */
 
#define SSL_kKRB5   0x00000010L /* Kerberos5 key exchange */
 
#define SSL_kECDHr   0x00000020L /* ECDH cert, RSA CA cert */
 
#define SSL_kECDHe   0x00000040L /* ECDH cert, ECDSA CA cert */
 
#define SSL_kEECDH   0x00000080L /* ephemeral ECDH */
 
#define SSL_kPSK   0x00000100L /* PSK */
 
#define SSL_kGOST   0x00000200L /* GOST key exchange */
 
#define SSL_kSRP   0x00000400L /* SRP */
 
#define SSL_aRSA   0x00000001L /* RSA auth */
 
#define SSL_aDSS   0x00000002L /* DSS auth */
 
#define SSL_aNULL   0x00000004L /* no auth (i.e. use ADH or AECDH) */
 
#define SSL_aDH   0x00000008L /* Fixed DH auth (kDHd or kDHr) */ /* no such ciphersuites supported! */
 
#define SSL_aECDH   0x00000010L /* Fixed ECDH auth (kECDHe or kECDHr) */
 
#define SSL_aKRB5   0x00000020L /* KRB5 auth */
 
#define SSL_aECDSA   0x00000040L /* ECDSA auth*/
 
#define SSL_aPSK   0x00000080L /* PSK auth */
 
#define SSL_aGOST94   0x00000100L /* GOST R 34.10-94 signature auth */
 
#define SSL_aGOST01   0x00000200L /* GOST R 34.10-2001 signature auth */
 
#define SSL_DES   0x00000001L
 
#define SSL_3DES   0x00000002L
 
#define SSL_RC4   0x00000004L
 
#define SSL_RC2   0x00000008L
 
#define SSL_IDEA   0x00000010L
 
#define SSL_eNULL   0x00000020L
 
#define SSL_AES128   0x00000040L
 
#define SSL_AES256   0x00000080L
 
#define SSL_CAMELLIA128   0x00000100L
 
#define SSL_CAMELLIA256   0x00000200L
 
#define SSL_eGOST2814789CNT   0x00000400L
 
#define SSL_SEED   0x00000800L
 
#define SSL_AES128GCM   0x00001000L
 
#define SSL_AES256GCM   0x00002000L
 
#define SSL_AES   (SSL_AES128|SSL_AES256|SSL_AES128GCM|SSL_AES256GCM)
 
#define SSL_CAMELLIA   (SSL_CAMELLIA128|SSL_CAMELLIA256)
 
#define SSL_MD5   0x00000001L
 
#define SSL_SHA1   0x00000002L
 
#define SSL_GOST94   0x00000004L
 
#define SSL_GOST89MAC   0x00000008L
 
#define SSL_SHA256   0x00000010L
 
#define SSL_SHA384   0x00000020L
 
#define SSL_AEAD   0x00000040L
 
#define SSL_SSLV2   0x00000001L
 
#define SSL_SSLV3   0x00000002L
 
#define SSL_TLSV1   SSL_SSLV3 /* for now */
 
#define SSL_TLSV1_2   0x00000004L
 
#define SSL_HANDSHAKE_MAC_MD5   0x10
 
#define SSL_HANDSHAKE_MAC_SHA   0x20
 
#define SSL_HANDSHAKE_MAC_GOST94   0x40
 
#define SSL_HANDSHAKE_MAC_SHA256   0x80
 
#define SSL_HANDSHAKE_MAC_SHA384   0x100
 
#define SSL_HANDSHAKE_MAC_DEFAULT   (SSL_HANDSHAKE_MAC_MD5 | SSL_HANDSHAKE_MAC_SHA)
 
#define SSL_MAX_DIGEST   6
 
#define TLS1_PRF_DGST_MASK   (0xff << TLS1_PRF_DGST_SHIFT)
 
#define TLS1_PRF_DGST_SHIFT   10
 
#define TLS1_PRF_MD5   (SSL_HANDSHAKE_MAC_MD5 << TLS1_PRF_DGST_SHIFT)
 
#define TLS1_PRF_SHA1   (SSL_HANDSHAKE_MAC_SHA << TLS1_PRF_DGST_SHIFT)
 
#define TLS1_PRF_SHA256   (SSL_HANDSHAKE_MAC_SHA256 << TLS1_PRF_DGST_SHIFT)
 
#define TLS1_PRF_SHA384   (SSL_HANDSHAKE_MAC_SHA384 << TLS1_PRF_DGST_SHIFT)
 
#define TLS1_PRF_GOST94   (SSL_HANDSHAKE_MAC_GOST94 << TLS1_PRF_DGST_SHIFT)
 
#define TLS1_PRF   (TLS1_PRF_MD5 | TLS1_PRF_SHA1)
 
#define TLS1_STREAM_MAC   0x04
 
#define SSL_EXP_MASK   0x00000003L
 
#define SSL_STRONG_MASK   0x000001fcL
 
#define SSL_NOT_EXP   0x00000001L
 
#define SSL_EXPORT   0x00000002L
 
#define SSL_STRONG_NONE   0x00000004L
 
#define SSL_EXP40   0x00000008L
 
#define SSL_MICRO   (SSL_EXP40)
 
#define SSL_EXP56   0x00000010L
 
#define SSL_MINI   (SSL_EXP56)
 
#define SSL_LOW   0x00000020L
 
#define SSL_MEDIUM   0x00000040L
 
#define SSL_HIGH   0x00000080L
 
#define SSL_FIPS   0x00000100L
 
#define SSL_IS_EXPORT(a)   ((a)&SSL_EXPORT)
 
#define SSL_IS_EXPORT56(a)   ((a)&SSL_EXP56)
 
#define SSL_IS_EXPORT40(a)   ((a)&SSL_EXP40)
 
#define SSL_C_IS_EXPORT(c)   SSL_IS_EXPORT((c)->algo_strength)
 
#define SSL_C_IS_EXPORT56(c)   SSL_IS_EXPORT56((c)->algo_strength)
 
#define SSL_C_IS_EXPORT40(c)   SSL_IS_EXPORT40((c)->algo_strength)
 
#define SSL_EXPORT_KEYLENGTH(a, s)
 
#define SSL_EXPORT_PKEYLENGTH(a)   (SSL_IS_EXPORT40(a) ? 512 : 1024)
 
#define SSL_C_EXPORT_KEYLENGTH(c)
 
#define SSL_C_EXPORT_PKEYLENGTH(c)   SSL_EXPORT_PKEYLENGTH((c)->algo_strength)
 
#define SSL_PKEY_RSA_ENC   0
 
#define SSL_PKEY_RSA_SIGN   1
 
#define SSL_PKEY_DSA_SIGN   2
 
#define SSL_PKEY_DH_RSA   3
 
#define SSL_PKEY_DH_DSA   4
 
#define SSL_PKEY_ECC   5
 
#define SSL_PKEY_GOST94   6
 
#define SSL_PKEY_GOST01   7
 
#define SSL_PKEY_NUM   8
 
#define EXPLICIT_PRIME_CURVE_TYPE   1
 
#define EXPLICIT_CHAR2_CURVE_TYPE   2
 
#define NAMED_CURVE_TYPE   3
 
#define FP_ICC   (int (*)(const void *,const void *))
 
#define ssl_put_cipher_by_char(ssl, ciph, ptr)   ((ssl)->method->put_cipher_by_char((ciph),(ptr)))
 
#define ssl_get_cipher_by_char(ssl, ptr)   ((ssl)->method->get_cipher_by_char(ptr))
 
#define IMPLEMENT_tls_meth_func(version, func_name, s_accept, s_connect, s_get_meth)
 
#define IMPLEMENT_ssl3_meth_func(func_name, s_accept, s_connect, s_get_meth)
 
#define IMPLEMENT_ssl23_meth_func(func_name, s_accept, s_connect, s_get_meth)
 
#define IMPLEMENT_ssl2_meth_func(func_name, s_accept, s_connect, s_get_meth)
 
#define IMPLEMENT_dtls1_meth_func(func_name, s_accept, s_connect, s_get_meth)
 
#define tlsext_tick_md   EVP_sha256
 

Typedefs

typedef struct cert_pkey_st CERT_PKEY
 
typedef struct cert_st CERT
 
typedef struct sess_cert_st SESS_CERT
 
typedef struct ssl3_enc_method SSL3_ENC_METHOD
 
typedef struct ssl3_comp_st SSL3_COMP
 
typedef struct ssl3_buf_freelist_st SSL3_BUF_FREELIST
 
typedef struct
ssl3_buf_freelist_entry_st 
SSL3_BUF_FREELIST_ENTRY
 

Functions

SSL_METHODssl_bad_method (int ver)
 
void ssl_clear_cipher_ctx (SSL *s)
 
int ssl_clear_bad_session (SSL *s)
 
CERTssl_cert_new (void)
 
CERTssl_cert_dup (CERT *cert)
 
int ssl_cert_inst (CERT **o)
 
void ssl_cert_free (CERT *c)
 
SESS_CERTssl_sess_cert_new (void)
 
void ssl_sess_cert_free (SESS_CERT *sc)
 
int ssl_set_peer_cert_type (SESS_CERT *c, int type)
 
int ssl_get_new_session (SSL *s, int session)
 
int ssl_get_prev_session (SSL *s, unsigned char *session, int len, const unsigned char *limit)
 
int ssl_cipher_id_cmp (const SSL_CIPHER *a, const SSL_CIPHER *b)
 
 DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN (SSL_CIPHER, SSL_CIPHER, ssl_cipher_id)
 
int ssl_cipher_ptr_id_cmp (const SSL_CIPHER *const *ap, const SSL_CIPHER *const *bp)
 
 STACK_OF (SSL_CIPHER)*ssl_bytes_to_cipher_list(SSL *s
 
int ssl_cipher_list_to_bytes (SSL *s, STACK_OF(SSL_CIPHER)*sk, unsigned char *p, int(*put_cb)(const SSL_CIPHER *, unsigned char *))
 
void ssl_update_cache (SSL *s, int mode)
 
int ssl_cipher_get_evp (const SSL_SESSION *s, const EVP_CIPHER **enc, const EVP_MD **md, int *mac_pkey_type, int *mac_secret_size, SSL_COMP **comp)
 
int ssl_get_handshake_digest (int i, long *mask, const EVP_MD **md)
 
int ssl_verify_cert_chain (SSL *s, STACK_OF(X509)*sk)
 
int ssl_undefined_function (SSL *s)
 
int ssl_undefined_void_function (void)
 
int ssl_undefined_const_function (const SSL *s)
 
X509ssl_get_server_send_cert (SSL *)
 
EVP_PKEYssl_get_sign_pkey (SSL *s, const SSL_CIPHER *c, const EVP_MD **pmd)
 
int ssl_cert_type (X509 *x, EVP_PKEY *pkey)
 
void ssl_set_cert_masks (CERT *c, const SSL_CIPHER *cipher)
 
int ssl_verify_alarm_type (long type)
 
void ssl_load_ciphers (void)
 
int ssl2_enc_init (SSL *s, int client)
 
int ssl2_generate_key_material (SSL *s)
 
void ssl2_enc (SSL *s, int send_data)
 
void ssl2_mac (SSL *s, unsigned char *mac, int send_data)
 
const SSL_CIPHERssl2_get_cipher_by_char (const unsigned char *p)
 
int ssl2_put_cipher_by_char (const SSL_CIPHER *c, unsigned char *p)
 
int ssl2_part_read (SSL *s, unsigned long f, int i)
 
int ssl2_do_write (SSL *s)
 
int ssl2_set_certificate (SSL *s, int type, int len, const unsigned char *data)
 
void ssl2_return_error (SSL *s, int reason)
 
void ssl2_write_error (SSL *s)
 
int ssl2_num_ciphers (void)
 
const SSL_CIPHERssl2_get_cipher (unsigned int u)
 
int ssl2_new (SSL *s)
 
void ssl2_free (SSL *s)
 
int ssl2_accept (SSL *s)
 
int ssl2_connect (SSL *s)
 
int ssl2_read (SSL *s, void *buf, int len)
 
int ssl2_peek (SSL *s, void *buf, int len)
 
int ssl2_write (SSL *s, const void *buf, int len)
 
int ssl2_shutdown (SSL *s)
 
void ssl2_clear (SSL *s)
 
long ssl2_ctrl (SSL *s, int cmd, long larg, void *parg)
 
long ssl2_ctx_ctrl (SSL_CTX *s, int cmd, long larg, void *parg)
 
long ssl2_callback_ctrl (SSL *s, int cmd, void(*fp)(void))
 
long ssl2_ctx_callback_ctrl (SSL_CTX *s, int cmd, void(*fp)(void))
 
int ssl2_pending (const SSL *s)
 
long ssl2_default_timeout (void)
 
const SSL_CIPHERssl3_get_cipher_by_char (const unsigned char *p)
 
int ssl3_put_cipher_by_char (const SSL_CIPHER *c, unsigned char *p)
 
void ssl3_init_finished_mac (SSL *s)
 
int ssl3_send_server_certificate (SSL *s)
 
int ssl3_send_newsession_ticket (SSL *s)
 
int ssl3_send_cert_status (SSL *s)
 
int ssl3_get_finished (SSL *s, int state_a, int state_b)
 
int ssl3_setup_key_block (SSL *s)
 
int ssl3_send_change_cipher_spec (SSL *s, int state_a, int state_b)
 
int ssl3_change_cipher_state (SSL *s, int which)
 
void ssl3_cleanup_key_block (SSL *s)
 
int ssl3_do_write (SSL *s, int type)
 
int ssl3_send_alert (SSL *s, int level, int desc)
 
int ssl3_generate_master_secret (SSL *s, unsigned char *out, unsigned char *p, int len)
 
int ssl3_get_req_cert_type (SSL *s, unsigned char *p)
 
long ssl3_get_message (SSL *s, int st1, int stn, int mt, long max, int *ok)
 
int ssl3_send_finished (SSL *s, int a, int b, const char *sender, int slen)
 
int ssl3_num_ciphers (void)
 
const SSL_CIPHERssl3_get_cipher (unsigned int u)
 
int ssl3_renegotiate (SSL *ssl)
 
int ssl3_renegotiate_check (SSL *ssl)
 
int ssl3_dispatch_alert (SSL *s)
 
int ssl3_read_bytes (SSL *s, int type, unsigned char *buf, int len, int peek)
 
int ssl3_write_bytes (SSL *s, int type, const void *buf, int len)
 
int ssl3_final_finish_mac (SSL *s, const char *sender, int slen, unsigned char *p)
 
int ssl3_cert_verify_mac (SSL *s, int md_nid, unsigned char *p)
 
void ssl3_finish_mac (SSL *s, const unsigned char *buf, int len)
 
int ssl3_enc (SSL *s, int send_data)
 
int n_ssl3_mac (SSL *ssl, unsigned char *md, int send_data)
 
void ssl3_free_digest_list (SSL *s)
 
unsigned long ssl3_output_cert_chain (SSL *s, X509 *x)
 
SSL_CIPHERssl3_choose_cipher (SSL *ssl, STACK_OF(SSL_CIPHER)*clnt, STACK_OF(SSL_CIPHER)*srvr)
 
int ssl3_setup_buffers (SSL *s)
 
int ssl3_setup_read_buffer (SSL *s)
 
int ssl3_setup_write_buffer (SSL *s)
 
int ssl3_release_read_buffer (SSL *s)
 
int ssl3_release_write_buffer (SSL *s)
 
int ssl3_digest_cached_records (SSL *s)
 
int ssl3_new (SSL *s)
 
void ssl3_free (SSL *s)
 
int ssl3_accept (SSL *s)
 
int ssl3_connect (SSL *s)
 
int ssl3_read (SSL *s, void *buf, int len)
 
int ssl3_peek (SSL *s, void *buf, int len)
 
int ssl3_write (SSL *s, const void *buf, int len)
 
int ssl3_shutdown (SSL *s)
 
void ssl3_clear (SSL *s)
 
long ssl3_ctrl (SSL *s, int cmd, long larg, void *parg)
 
long ssl3_ctx_ctrl (SSL_CTX *s, int cmd, long larg, void *parg)
 
long ssl3_callback_ctrl (SSL *s, int cmd, void(*fp)(void))
 
long ssl3_ctx_callback_ctrl (SSL_CTX *s, int cmd, void(*fp)(void))
 
int ssl3_pending (const SSL *s)
 
void ssl3_record_sequence_update (unsigned char *seq)
 
int ssl3_do_change_cipher_spec (SSL *ssl)
 
long ssl3_default_timeout (void)
 
int ssl23_num_ciphers (void)
 
const SSL_CIPHERssl23_get_cipher (unsigned int u)
 
int ssl23_read (SSL *s, void *buf, int len)
 
int ssl23_peek (SSL *s, void *buf, int len)
 
int ssl23_write (SSL *s, const void *buf, int len)
 
int ssl23_put_cipher_by_char (const SSL_CIPHER *c, unsigned char *p)
 
const SSL_CIPHERssl23_get_cipher_by_char (const unsigned char *p)
 
long ssl23_default_timeout (void)
 
long tls1_default_timeout (void)
 
int dtls1_do_write (SSL *s, int type)
 
int ssl3_read_n (SSL *s, int n, int max, int extend)
 
int dtls1_read_bytes (SSL *s, int type, unsigned char *buf, int len, int peek)
 
int ssl3_do_compress (SSL *ssl)
 
int ssl3_do_uncompress (SSL *ssl)
 
int ssl3_write_pending (SSL *s, int type, const unsigned char *buf, unsigned int len)
 
unsigned char * dtls1_set_message_header (SSL *s, unsigned char *p, unsigned char mt, unsigned long len, unsigned long frag_off, unsigned long frag_len)
 
int dtls1_write_app_data_bytes (SSL *s, int type, const void *buf, int len)
 
int dtls1_write_bytes (SSL *s, int type, const void *buf, int len)
 
int dtls1_send_change_cipher_spec (SSL *s, int a, int b)
 
int dtls1_send_finished (SSL *s, int a, int b, const char *sender, int slen)
 
unsigned long dtls1_output_cert_chain (SSL *s, X509 *x)
 
int dtls1_read_failed (SSL *s, int code)
 
int dtls1_buffer_message (SSL *s, int ccs)
 
int dtls1_retransmit_message (SSL *s, unsigned short seq, unsigned long frag_off, int *found)
 
int dtls1_get_queue_priority (unsigned short seq, int is_ccs)
 
int dtls1_retransmit_buffered_messages (SSL *s)
 
void dtls1_clear_record_buffer (SSL *s)
 
void dtls1_get_message_header (unsigned char *data, struct hm_header_st *msg_hdr)
 
void dtls1_get_ccs_header (unsigned char *data, struct ccs_header_st *ccs_hdr)
 
void dtls1_reset_seq_numbers (SSL *s, int rw)
 
long dtls1_default_timeout (void)
 
struct timeval * dtls1_get_timeout (SSL *s, struct timeval *timeleft)
 
int dtls1_check_timeout_num (SSL *s)
 
int dtls1_handle_timeout (SSL *s)
 
const SSL_CIPHERdtls1_get_cipher (unsigned int u)
 
void dtls1_start_timer (SSL *s)
 
void dtls1_stop_timer (SSL *s)
 
int dtls1_is_timer_expired (SSL *s)
 
void dtls1_double_timeout (SSL *s)
 
int dtls1_send_newsession_ticket (SSL *s)
 
unsigned int dtls1_min_mtu (void)
 
int ssl3_client_hello (SSL *s)
 
int ssl3_get_server_hello (SSL *s)
 
int ssl3_get_certificate_request (SSL *s)
 
int ssl3_get_new_session_ticket (SSL *s)
 
int ssl3_get_cert_status (SSL *s)
 
int ssl3_get_server_done (SSL *s)
 
int ssl3_send_client_verify (SSL *s)
 
int ssl3_send_client_certificate (SSL *s)
 
int ssl_do_client_cert_cb (SSL *s, X509 **px509, EVP_PKEY **ppkey)
 
int ssl3_send_client_key_exchange (SSL *s)
 
int ssl3_get_key_exchange (SSL *s)
 
int ssl3_get_server_certificate (SSL *s)
 
int ssl3_check_cert_and_algorithm (SSL *s)
 
int ssl3_check_finished (SSL *s)
 
int ssl3_send_next_proto (SSL *s)
 
int dtls1_client_hello (SSL *s)
 
int dtls1_send_client_certificate (SSL *s)
 
int dtls1_send_client_key_exchange (SSL *s)
 
int dtls1_send_client_verify (SSL *s)
 
int ssl3_get_client_hello (SSL *s)
 
int ssl3_send_server_hello (SSL *s)
 
int ssl3_send_hello_request (SSL *s)
 
int ssl3_send_server_key_exchange (SSL *s)
 
int ssl3_send_certificate_request (SSL *s)
 
int ssl3_send_server_done (SSL *s)
 
int ssl3_check_client_hello (SSL *s)
 
int ssl3_get_client_certificate (SSL *s)
 
int ssl3_get_client_key_exchange (SSL *s)
 
int ssl3_get_cert_verify (SSL *s)
 
int ssl3_get_next_proto (SSL *s)
 
int dtls1_send_hello_request (SSL *s)
 
int dtls1_send_server_hello (SSL *s)
 
int dtls1_send_server_certificate (SSL *s)
 
int dtls1_send_server_key_exchange (SSL *s)
 
int dtls1_send_certificate_request (SSL *s)
 
int dtls1_send_server_done (SSL *s)
 
int ssl23_accept (SSL *s)
 
int ssl23_connect (SSL *s)
 
int ssl23_read_bytes (SSL *s, int n)
 
int ssl23_write_bytes (SSL *s)
 
int tls1_new (SSL *s)
 
void tls1_free (SSL *s)
 
void tls1_clear (SSL *s)
 
long tls1_ctrl (SSL *s, int cmd, long larg, void *parg)
 
long tls1_callback_ctrl (SSL *s, int cmd, void(*fp)(void))
 
int dtls1_new (SSL *s)
 
int dtls1_accept (SSL *s)
 
int dtls1_connect (SSL *s)
 
void dtls1_free (SSL *s)
 
void dtls1_clear (SSL *s)
 
long dtls1_ctrl (SSL *s, int cmd, long larg, void *parg)
 
int dtls1_shutdown (SSL *s)
 
long dtls1_get_message (SSL *s, int st1, int stn, int mt, long max, int *ok)
 
int dtls1_get_record (SSL *s)
 
int do_dtls1_write (SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragement)
 
int dtls1_dispatch_alert (SSL *s)
 
int dtls1_enc (SSL *s, int snd)
 
int ssl_init_wbio_buffer (SSL *s, int push)
 
void ssl_free_wbio_buffer (SSL *s)
 
int tls1_change_cipher_state (SSL *s, int which)
 
int tls1_setup_key_block (SSL *s)
 
int tls1_enc (SSL *s, int snd)
 
int tls1_final_finish_mac (SSL *s, const char *str, int slen, unsigned char *p)
 
int tls1_cert_verify_mac (SSL *s, int md_nid, unsigned char *p)
 
int tls1_mac (SSL *ssl, unsigned char *md, int snd)
 
int tls1_generate_master_secret (SSL *s, unsigned char *out, unsigned char *p, int len)
 
int tls1_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)
 
int tls1_alert_code (int code)
 
int ssl3_alert_code (int code)
 
int ssl_ok (SSL *s)
 
int ssl_check_srvr_ecc_cert_and_alg (X509 *x, SSL *s)
 
SSL_COMPssl3_comp_find (STACK_OF(SSL_COMP)*sk, int n)
 
int tls1_ec_curve_id2nid (int curve_id)
 
int tls1_ec_nid2curve_id (int nid)
 
unsigned char * ssl_add_clienthello_tlsext (SSL *s, unsigned char *p, unsigned char *limit)
 
unsigned char * ssl_add_serverhello_tlsext (SSL *s, unsigned char *p, unsigned char *limit)
 
int ssl_parse_clienthello_tlsext (SSL *s, unsigned char **data, unsigned char *d, int n, int *al)
 
int ssl_parse_serverhello_tlsext (SSL *s, unsigned char **data, unsigned char *d, int n, int *al)
 
int ssl_prepare_clienthello_tlsext (SSL *s)
 
int ssl_prepare_serverhello_tlsext (SSL *s)
 
int ssl_check_clienthello_tlsext (SSL *s)
 
int ssl_check_serverhello_tlsext (SSL *s)
 
int tls1_heartbeat (SSL *s)
 
int dtls1_heartbeat (SSL *s)
 
int tls1_process_heartbeat (SSL *s)
 
int dtls1_process_heartbeat (SSL *s)
 
int tls1_process_ticket (SSL *s, unsigned char *session_id, int len, const unsigned char *limit, SSL_SESSION **ret)
 
int tls12_get_sigandhash (unsigned char *p, const EVP_PKEY *pk, const EVP_MD *md)
 
int tls12_get_sigid (const EVP_PKEY *pk)
 
const EVP_MDtls12_get_hash (unsigned char hash_alg)
 
EVP_MD_CTXssl_replace_hash (EVP_MD_CTX **hash, const EVP_MD *md)
 
void ssl_clear_hash_ctx (EVP_MD_CTX **hash)
 
int ssl_add_serverhello_renegotiate_ext (SSL *s, unsigned char *p, int *len, int maxlen)
 
int ssl_parse_serverhello_renegotiate_ext (SSL *s, unsigned char *d, int len, int *al)
 
int ssl_add_clienthello_renegotiate_ext (SSL *s, unsigned char *p, int *len, int maxlen)
 
int ssl_parse_clienthello_renegotiate_ext (SSL *s, unsigned char *d, int len, int *al)
 
long ssl_get_algorithm2 (SSL *s)
 
int tls1_process_sigalgs (SSL *s, const unsigned char *data, int dsize)
 
int tls12_get_req_sig_algs (SSL *s, unsigned char *p)
 
int ssl_add_clienthello_use_srtp_ext (SSL *s, unsigned char *p, int *len, int maxlen)
 
int ssl_parse_clienthello_use_srtp_ext (SSL *s, unsigned char *d, int len, int *al)
 
int ssl_add_serverhello_use_srtp_ext (SSL *s, unsigned char *p, int *len, int maxlen)
 
int ssl_parse_serverhello_use_srtp_ext (SSL *s, unsigned char *d, int len, int *al)
 

Variables

SSL3_ENC_METHOD ssl3_undef_enc_method
 
OPENSSL_EXTERN const SSL_CIPHER ssl2_ciphers []
 
OPENSSL_EXTERN SSL_CIPHER ssl3_ciphers []
 
SSL3_ENC_METHOD TLSv1_enc_data
 
SSL3_ENC_METHOD SSLv3_enc_data
 
SSL3_ENC_METHOD DTLSv1_enc_data
 
unsigned char * p
 
unsigned char int num
 
const char * rule_str
 

Macro Definition Documentation

#define c2l (   c,
 
)
Value:
(l = ((unsigned long)(*((c)++))) , \
l|=(((unsigned long)(*((c)++)))<< 8), \
l|=(((unsigned long)(*((c)++)))<<16), \
l|=(((unsigned long)(*((c)++)))<<24))

Definition at line 175 of file ssl_locl.h.

#define c2ln (   c,
  l1,
  l2,
 
)
Value:
{ \
c+=n; \
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c))))<<24; \
case 7: l2|=((unsigned long)(*(--(c))))<<16; \
case 6: l2|=((unsigned long)(*(--(c))))<< 8; \
case 5: l2|=((unsigned long)(*(--(c)))); \
case 4: l1 =((unsigned long)(*(--(c))))<<24; \
case 3: l1|=((unsigned long)(*(--(c))))<<16; \
case 2: l1|=((unsigned long)(*(--(c))))<< 8; \
case 1: l1|=((unsigned long)(*(--(c)))); \
} \
}

Definition at line 181 of file ssl_locl.h.

#define DEC32 (   a)    ((a)=((a)-1)&0xffffffffL)

Definition at line 264 of file ssl_locl.h.

#define EXPLICIT_CHAR2_CURVE_TYPE   2

Definition at line 467 of file ssl_locl.h.

#define EXPLICIT_PRIME_CURVE_TYPE   1

Definition at line 466 of file ssl_locl.h.

#define FP_ICC   (int (*)(const void *,const void *))

Definition at line 550 of file ssl_locl.h.

#define IMPLEMENT_dtls1_meth_func (   func_name,
  s_accept,
  s_connect,
  s_get_meth 
)

Definition at line 764 of file ssl_locl.h.

#define IMPLEMENT_ssl23_meth_func (   func_name,
  s_accept,
  s_connect,
  s_get_meth 
)

Definition at line 690 of file ssl_locl.h.

#define IMPLEMENT_ssl2_meth_func (   func_name,
  s_accept,
  s_connect,
  s_get_meth 
)

Definition at line 727 of file ssl_locl.h.

#define IMPLEMENT_ssl3_meth_func (   func_name,
  s_accept,
  s_connect,
  s_get_meth 
)

Definition at line 653 of file ssl_locl.h.

#define IMPLEMENT_tls_meth_func (   version,
  func_name,
  s_accept,
  s_connect,
  s_get_meth 
)

Definition at line 615 of file ssl_locl.h.

#define INC32 (   a)    ((a)=((a)+1)&0xffffffffL)

Definition at line 263 of file ssl_locl.h.

#define l2c (   l,
  c 
)
Value:
(*((c)++)=(unsigned char)(((l) )&0xff), \
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
*((c)++)=(unsigned char)(((l)>>24)&0xff))

Definition at line 196 of file ssl_locl.h.

#define l2cn (   l1,
  l2,
  c,
 
)
Value:
{ \
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2)>>24)&0xff); \
case 7: *(--(c))=(unsigned char)(((l2)>>16)&0xff); \
case 6: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \
case 4: *(--(c))=(unsigned char)(((l1)>>24)&0xff); \
case 3: *(--(c))=(unsigned char)(((l1)>>16)&0xff); \
case 2: *(--(c))=(unsigned char)(((l1)>> 8)&0xff); \
case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \
} \
}

Definition at line 226 of file ssl_locl.h.

#define l2n (   l,
  c 
)
Value:
(*((c)++)=(unsigned char)(((l)>>24)&0xff), \
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
*((c)++)=(unsigned char)(((l) )&0xff))

Definition at line 206 of file ssl_locl.h.

#define l2n3 (   l,
  c 
)
Value:
((c[0]=(unsigned char)(((l)>>16)&0xff), \
c[1]=(unsigned char)(((l)>> 8)&0xff), \
c[2]=(unsigned char)(((l) )&0xff)),c+=3)

Definition at line 249 of file ssl_locl.h.

#define l2n6 (   l,
  c 
)
Value:
(*((c)++)=(unsigned char)(((l)>>40)&0xff), \
*((c)++)=(unsigned char)(((l)>>32)&0xff), \
*((c)++)=(unsigned char)(((l)>>24)&0xff), \
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
*((c)++)=(unsigned char)(((l) )&0xff))

Definition at line 211 of file ssl_locl.h.

#define MAX_MAC_SIZE   20 /* up from 16 for SSLv3 */

Definition at line 265 of file ssl_locl.h.

#define n2l (   c,
 
)
Value:
(l =((unsigned long)(*((c)++)))<<24, \
l|=((unsigned long)(*((c)++)))<<16, \
l|=((unsigned long)(*((c)++)))<< 8, \
l|=((unsigned long)(*((c)++))))

Definition at line 201 of file ssl_locl.h.

#define n2l3 (   c,
 
)
Value:
((l =(((unsigned long)(c[0]))<<16)| \
(((unsigned long)(c[1]))<< 8)| \
(((unsigned long)(c[2])) )),c+=3)

Definition at line 245 of file ssl_locl.h.

#define n2l6 (   c,
 
)
Value:
(l =((BN_ULLONG)(*((c)++)))<<40, \
l|=((BN_ULLONG)(*((c)++)))<<32, \
l|=((BN_ULLONG)(*((c)++)))<<24, \
l|=((BN_ULLONG)(*((c)++)))<<16, \
l|=((BN_ULLONG)(*((c)++)))<< 8, \
l|=((BN_ULLONG)(*((c)++))))

Definition at line 218 of file ssl_locl.h.

#define n2s (   c,
 
)
Value:
((s=(((unsigned int)(c[0]))<< 8)| \
(((unsigned int)(c[1])) )),c+=2)

Definition at line 240 of file ssl_locl.h.

#define NAMED_CURVE_TYPE   3

Definition at line 468 of file ssl_locl.h.

#define s2n (   s,
  c 
)
Value:
((c[0]=(unsigned char)(((s)>> 8)&0xff), \
c[1]=(unsigned char)(((s) )&0xff)),c+=2)

Definition at line 242 of file ssl_locl.h.

#define SEC_ESC_BIT   0x40

Definition at line 259 of file ssl_locl.h.

#define SSL_3DES   0x00000002L

Definition at line 309 of file ssl_locl.h.

#define SSL_aDH   0x00000008L /* Fixed DH auth (kDHd or kDHr) */ /* no such ciphersuites supported! */

Definition at line 298 of file ssl_locl.h.

#define SSL_aDSS   0x00000002L /* DSS auth */

Definition at line 296 of file ssl_locl.h.

#define SSL_AEAD   0x00000040L

Definition at line 336 of file ssl_locl.h.

#define SSL_aECDH   0x00000010L /* Fixed ECDH auth (kECDHe or kECDHr) */

Definition at line 299 of file ssl_locl.h.

#define SSL_aECDSA   0x00000040L /* ECDSA auth*/

Definition at line 301 of file ssl_locl.h.

Definition at line 323 of file ssl_locl.h.

#define SSL_AES128   0x00000040L

Definition at line 314 of file ssl_locl.h.

#define SSL_AES128GCM   0x00001000L

Definition at line 320 of file ssl_locl.h.

#define SSL_AES256   0x00000080L

Definition at line 315 of file ssl_locl.h.

#define SSL_AES256GCM   0x00002000L

Definition at line 321 of file ssl_locl.h.

#define SSL_aGOST01   0x00000200L /* GOST R 34.10-2001 signature auth */

Definition at line 304 of file ssl_locl.h.

#define SSL_aGOST94   0x00000100L /* GOST R 34.10-94 signature auth */

Definition at line 303 of file ssl_locl.h.

#define SSL_aKRB5   0x00000020L /* KRB5 auth */

Definition at line 300 of file ssl_locl.h.

#define SSL_aNULL   0x00000004L /* no auth (i.e. use ADH or AECDH) */

Definition at line 297 of file ssl_locl.h.

#define SSL_aPSK   0x00000080L /* PSK auth */

Definition at line 302 of file ssl_locl.h.

#define SSL_aRSA   0x00000001L /* RSA auth */

Definition at line 295 of file ssl_locl.h.

#define SSL_C_EXPORT_KEYLENGTH (   c)
Value:
SSL_EXPORT_KEYLENGTH((c)->algorithm_enc, \
(c)->algo_strength)

Definition at line 430 of file ssl_locl.h.

#define SSL_C_EXPORT_PKEYLENGTH (   c)    SSL_EXPORT_PKEYLENGTH((c)->algo_strength)

Definition at line 432 of file ssl_locl.h.

#define SSL_C_IS_EXPORT (   c)    SSL_IS_EXPORT((c)->algo_strength)

Definition at line 423 of file ssl_locl.h.

#define SSL_C_IS_EXPORT40 (   c)    SSL_IS_EXPORT40((c)->algo_strength)

Definition at line 425 of file ssl_locl.h.

#define SSL_C_IS_EXPORT56 (   c)    SSL_IS_EXPORT56((c)->algo_strength)

Definition at line 424 of file ssl_locl.h.

#define SSL_CAMELLIA   (SSL_CAMELLIA128|SSL_CAMELLIA256)

Definition at line 324 of file ssl_locl.h.

#define SSL_CAMELLIA128   0x00000100L

Definition at line 316 of file ssl_locl.h.

#define SSL_CAMELLIA256   0x00000200L

Definition at line 317 of file ssl_locl.h.

#define SSL_DECRYPT   0

Definition at line 255 of file ssl_locl.h.

#define SSL_DES   0x00000001L

Definition at line 308 of file ssl_locl.h.

#define SSL_eGOST2814789CNT   0x00000400L

Definition at line 318 of file ssl_locl.h.

#define SSL_ENCRYPT   1

Definition at line 256 of file ssl_locl.h.

#define SSL_eNULL   0x00000020L

Definition at line 313 of file ssl_locl.h.

#define SSL_EXP40   0x00000008L

Definition at line 396 of file ssl_locl.h.

#define SSL_EXP56   0x00000010L

Definition at line 398 of file ssl_locl.h.

#define SSL_EXP_MASK   0x00000003L

Definition at line 389 of file ssl_locl.h.

#define SSL_EXPORT   0x00000002L

Definition at line 393 of file ssl_locl.h.

#define SSL_EXPORT_KEYLENGTH (   a,
 
)
Value:
(SSL_IS_EXPORT40(s) ? 5 : \
(a) == SSL_DES ? 8 : 7)

Definition at line 427 of file ssl_locl.h.

#define SSL_EXPORT_PKEYLENGTH (   a)    (SSL_IS_EXPORT40(a) ? 512 : 1024)

Definition at line 429 of file ssl_locl.h.

#define SSL_FIPS   0x00000100L

Definition at line 403 of file ssl_locl.h.

#define ssl_get_cipher_by_char (   ssl,
  ptr 
)    ((ssl)->method->get_cipher_by_char(ptr))

Definition at line 553 of file ssl_locl.h.

#define SSL_GOST89MAC   0x00000008L

Definition at line 332 of file ssl_locl.h.

#define SSL_GOST94   0x00000004L

Definition at line 331 of file ssl_locl.h.

#define SSL_HANDSHAKE_MAC_DEFAULT   (SSL_HANDSHAKE_MAC_MD5 | SSL_HANDSHAKE_MAC_SHA)

Definition at line 352 of file ssl_locl.h.

#define SSL_HANDSHAKE_MAC_GOST94   0x40

Definition at line 349 of file ssl_locl.h.

#define SSL_HANDSHAKE_MAC_MD5   0x10

Definition at line 347 of file ssl_locl.h.

#define SSL_HANDSHAKE_MAC_SHA   0x20

Definition at line 348 of file ssl_locl.h.

#define SSL_HANDSHAKE_MAC_SHA256   0x80

Definition at line 350 of file ssl_locl.h.

#define SSL_HANDSHAKE_MAC_SHA384   0x100

Definition at line 351 of file ssl_locl.h.

#define SSL_HIGH   0x00000080L

Definition at line 402 of file ssl_locl.h.

#define SSL_IDEA   0x00000010L

Definition at line 312 of file ssl_locl.h.

#define SSL_IS_EXPORT (   a)    ((a)&SSL_EXPORT)

Definition at line 420 of file ssl_locl.h.

#define SSL_IS_EXPORT40 (   a)    ((a)&SSL_EXP40)

Definition at line 422 of file ssl_locl.h.

#define SSL_IS_EXPORT56 (   a)    ((a)&SSL_EXP56)

Definition at line 421 of file ssl_locl.h.

#define SSL_kDHd   0x00000004L /* DH cert, DSA CA cert */ /* no such ciphersuite supported! */

Definition at line 284 of file ssl_locl.h.

#define SSL_kDHr   0x00000002L /* DH cert, RSA CA cert */ /* no such ciphersuites supported! */

Definition at line 283 of file ssl_locl.h.

#define SSL_kECDHe   0x00000040L /* ECDH cert, ECDSA CA cert */

Definition at line 288 of file ssl_locl.h.

#define SSL_kECDHr   0x00000020L /* ECDH cert, RSA CA cert */

Definition at line 287 of file ssl_locl.h.

#define SSL_kEDH   0x00000008L /* tmp DH key no DH cert */

Definition at line 285 of file ssl_locl.h.

#define SSL_kEECDH   0x00000080L /* ephemeral ECDH */

Definition at line 289 of file ssl_locl.h.

#define SSL_kGOST   0x00000200L /* GOST key exchange */

Definition at line 291 of file ssl_locl.h.

#define SSL_kKRB5   0x00000010L /* Kerberos5 key exchange */

Definition at line 286 of file ssl_locl.h.

#define SSL_kPSK   0x00000100L /* PSK */

Definition at line 290 of file ssl_locl.h.

#define SSL_kRSA   0x00000001L /* RSA key exchange */

Definition at line 282 of file ssl_locl.h.

#define SSL_kSRP   0x00000400L /* SRP */

Definition at line 292 of file ssl_locl.h.

#define SSL_LOW   0x00000020L

Definition at line 400 of file ssl_locl.h.

#define SSL_MAX_DIGEST   6

Definition at line 356 of file ssl_locl.h.

#define SSL_MD5   0x00000001L

Definition at line 329 of file ssl_locl.h.

#define SSL_MEDIUM   0x00000040L

Definition at line 401 of file ssl_locl.h.

#define SSL_MICRO   (SSL_EXP40)

Definition at line 397 of file ssl_locl.h.

#define SSL_MINI   (SSL_EXP56)

Definition at line 399 of file ssl_locl.h.

#define SSL_NOT_EXP   0x00000001L

Definition at line 392 of file ssl_locl.h.

#define SSL_PKEY_DH_DSA   4

Definition at line 442 of file ssl_locl.h.

#define SSL_PKEY_DH_RSA   3

Definition at line 441 of file ssl_locl.h.

#define SSL_PKEY_DSA_SIGN   2

Definition at line 440 of file ssl_locl.h.

#define SSL_PKEY_ECC   5

Definition at line 443 of file ssl_locl.h.

#define SSL_PKEY_GOST01   7

Definition at line 445 of file ssl_locl.h.

#define SSL_PKEY_GOST94   6

Definition at line 444 of file ssl_locl.h.

#define SSL_PKEY_NUM   8

Definition at line 446 of file ssl_locl.h.

#define SSL_PKEY_RSA_ENC   0

Definition at line 438 of file ssl_locl.h.

#define SSL_PKEY_RSA_SIGN   1

Definition at line 439 of file ssl_locl.h.

#define ssl_put_cipher_by_char (   ssl,
  ciph,
  ptr 
)    ((ssl)->method->put_cipher_by_char((ciph),(ptr)))

Definition at line 551 of file ssl_locl.h.

#define SSL_RC2   0x00000008L

Definition at line 311 of file ssl_locl.h.

#define SSL_RC4   0x00000004L

Definition at line 310 of file ssl_locl.h.

#define SSL_SEED   0x00000800L

Definition at line 319 of file ssl_locl.h.

#define SSL_SHA1   0x00000002L

Definition at line 330 of file ssl_locl.h.

#define SSL_SHA256   0x00000010L

Definition at line 333 of file ssl_locl.h.

#define SSL_SHA384   0x00000020L

Definition at line 334 of file ssl_locl.h.

#define SSL_SSLV2   0x00000001L

Definition at line 339 of file ssl_locl.h.

#define SSL_SSLV3   0x00000002L

Definition at line 340 of file ssl_locl.h.

#define SSL_STRONG_MASK   0x000001fcL

Definition at line 390 of file ssl_locl.h.

#define SSL_STRONG_NONE   0x00000004L

Definition at line 395 of file ssl_locl.h.

#define SSL_TLSV1   SSL_SSLV3 /* for now */

Definition at line 341 of file ssl_locl.h.

#define SSL_TLSV1_2   0x00000004L

Definition at line 342 of file ssl_locl.h.

#define THREE_BYTE_MASK   0x3fff

Definition at line 261 of file ssl_locl.h.

#define TLS1_PRF   (TLS1_PRF_MD5 | TLS1_PRF_SHA1)

Definition at line 366 of file ssl_locl.h.

#define TLS1_PRF_DGST_MASK   (0xff << TLS1_PRF_DGST_SHIFT)

Definition at line 358 of file ssl_locl.h.

#define TLS1_PRF_DGST_SHIFT   10

Definition at line 360 of file ssl_locl.h.

#define TLS1_PRF_GOST94   (SSL_HANDSHAKE_MAC_GOST94 << TLS1_PRF_DGST_SHIFT)

Definition at line 365 of file ssl_locl.h.

#define TLS1_PRF_MD5   (SSL_HANDSHAKE_MAC_MD5 << TLS1_PRF_DGST_SHIFT)

Definition at line 361 of file ssl_locl.h.

#define TLS1_PRF_SHA1   (SSL_HANDSHAKE_MAC_SHA << TLS1_PRF_DGST_SHIFT)

Definition at line 362 of file ssl_locl.h.

#define TLS1_PRF_SHA256   (SSL_HANDSHAKE_MAC_SHA256 << TLS1_PRF_DGST_SHIFT)

Definition at line 363 of file ssl_locl.h.

#define TLS1_PRF_SHA384   (SSL_HANDSHAKE_MAC_SHA384 << TLS1_PRF_DGST_SHIFT)

Definition at line 364 of file ssl_locl.h.

#define TLS1_STREAM_MAC   0x04

Definition at line 370 of file ssl_locl.h.

#define tlsext_tick_md   EVP_sha256

Definition at line 1104 of file ssl_locl.h.

#define TWO_BYTE_BIT   0x80

Definition at line 258 of file ssl_locl.h.

#define TWO_BYTE_MASK   0x7fff

Definition at line 260 of file ssl_locl.h.

Typedef Documentation

typedef struct cert_st CERT
typedef struct cert_pkey_st CERT_PKEY
typedef struct sess_cert_st SESS_CERT
typedef struct ssl3_comp_st SSL3_COMP

Function Documentation

DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN ( SSL_CIPHER  ,
SSL_CIPHER  ,
ssl_cipher_id   
)
int do_dtls1_write ( SSL s,
int  type,
const unsigned char *  buf,
unsigned int  len,
int  create_empty_fragement 
)

Definition at line 1446 of file d1_pkt.c.

int dtls1_accept ( SSL s)
int dtls1_buffer_message ( SSL s,
int  ccs 
)

Definition at line 1156 of file d1_both.c.

int dtls1_check_timeout_num ( SSL s)

Definition at line 402 of file d1_lib.c.

void dtls1_clear ( SSL s)

Definition at line 201 of file d1_lib.c.

void dtls1_clear_record_buffer ( SSL s)

Definition at line 1312 of file d1_both.c.

int dtls1_client_hello ( SSL s)

Definition at line 771 of file d1_clnt.c.

int dtls1_connect ( SSL s)
long dtls1_ctrl ( SSL s,
int  cmd,
long  larg,
void parg 
)

Definition at line 247 of file d1_lib.c.

long dtls1_default_timeout ( void  )

Definition at line 88 of file d1_lib.c.

int dtls1_dispatch_alert ( SSL s)

Definition at line 1703 of file d1_pkt.c.

int dtls1_do_write ( SSL s,
int  type 
)

Definition at line 223 of file d1_both.c.

void dtls1_double_timeout ( SSL s)

Definition at line 383 of file d1_lib.c.

int dtls1_enc ( SSL s,
int  snd 
)

Definition at line 129 of file d1_enc.c.

void dtls1_free ( SSL s)

Definition at line 186 of file d1_lib.c.

void dtls1_get_ccs_header ( unsigned char *  data,
struct ccs_header_st ccs_hdr 
)

Definition at line 1418 of file d1_both.c.

const SSL_CIPHER* dtls1_get_cipher ( unsigned int  u)

Definition at line 280 of file d1_lib.c.

long dtls1_get_message ( SSL s,
int  st1,
int  stn,
int  mt,
long  max,
int *  ok 
)

Definition at line 408 of file d1_both.c.

void dtls1_get_message_header ( unsigned char *  data,
struct hm_header_st msg_hdr 
)

Definition at line 1406 of file d1_both.c.

int dtls1_get_queue_priority ( unsigned short  seq,
int  is_ccs 
)

Definition at line 1116 of file d1_both.c.

int dtls1_get_record ( SSL s)

Definition at line 534 of file d1_pkt.c.

struct timeval* dtls1_get_timeout ( SSL s,
struct timeval *  timeleft 
)
read

Definition at line 318 of file d1_lib.c.

int dtls1_handle_timeout ( SSL s)

Definition at line 422 of file d1_lib.c.

int dtls1_heartbeat ( SSL s)

Definition at line 1518 of file d1_both.c.

int dtls1_is_timer_expired ( SSL s)

Definition at line 363 of file d1_lib.c.

unsigned int dtls1_min_mtu ( void  )

Definition at line 1384 of file d1_both.c.

int dtls1_new ( SSL s)

Definition at line 95 of file d1_lib.c.

unsigned long dtls1_output_cert_chain ( SSL s,
X509 x 
)

Definition at line 1013 of file d1_both.c.

int dtls1_process_heartbeat ( SSL s)

Definition at line 1448 of file d1_both.c.

int dtls1_read_bytes ( SSL s,
int  type,
unsigned char *  buf,
int  len,
int  peek 
)

Definition at line 731 of file d1_pkt.c.

int dtls1_read_failed ( SSL s,
int  code 
)

Definition at line 1072 of file d1_both.c.

void dtls1_reset_seq_numbers ( SSL s,
int  rw 
)

Definition at line 1856 of file d1_pkt.c.

int dtls1_retransmit_buffered_messages ( SSL s)

Definition at line 1130 of file d1_both.c.

int dtls1_retransmit_message ( SSL s,
unsigned short  seq,
unsigned long  frag_off,
int *  found 
)

Definition at line 1219 of file d1_both.c.

int dtls1_send_certificate_request ( SSL s)

Definition at line 1468 of file d1_srvr.c.

int dtls1_send_change_cipher_spec ( SSL s,
int  a,
int  b 
)

Definition at line 963 of file d1_both.c.

int dtls1_send_client_certificate ( SSL s)

Definition at line 1629 of file d1_clnt.c.

int dtls1_send_client_key_exchange ( SSL s)

Definition at line 949 of file d1_clnt.c.

int dtls1_send_client_verify ( SSL s)

Definition at line 1532 of file d1_clnt.c.

int dtls1_send_finished ( SSL s,
int  a,
int  b,
const char *  sender,
int  slen 
)

Definition at line 898 of file d1_both.c.

int dtls1_send_hello_request ( SSL s)

Definition at line 848 of file d1_srvr.c.

int dtls1_send_newsession_ticket ( SSL s)

Definition at line 1602 of file d1_srvr.c.

int dtls1_send_server_certificate ( SSL s)

Definition at line 1569 of file d1_srvr.c.

int dtls1_send_server_done ( SSL s)

Definition at line 998 of file d1_srvr.c.

int dtls1_send_server_hello ( SSL s)

Definition at line 909 of file d1_srvr.c.

int dtls1_send_server_key_exchange ( SSL s)

Definition at line 1022 of file d1_srvr.c.

unsigned char* dtls1_set_message_header ( SSL s,
unsigned char *  p,
unsigned char  mt,
unsigned long  len,
unsigned long  frag_off,
unsigned long  frag_len 
)

Definition at line 1326 of file d1_both.c.

int dtls1_shutdown ( SSL s)

Definition at line 1425 of file d1_both.c.

void dtls1_start_timer ( SSL s)

Definition at line 293 of file d1_lib.c.

void dtls1_stop_timer ( SSL s)

Definition at line 391 of file d1_lib.c.

int dtls1_write_app_data_bytes ( SSL s,
int  type,
const void buf,
int  len 
)

Definition at line 1364 of file d1_pkt.c.

int dtls1_write_bytes ( SSL s,
int  type,
const void buf,
int  len 
)

Definition at line 1436 of file d1_pkt.c.

int n_ssl3_mac ( SSL ssl,
unsigned char *  md,
int  send_data 
)

Definition at line 712 of file s3_enc.c.

int ssl23_accept ( SSL s)
int ssl23_connect ( SSL s)
long ssl23_default_timeout ( void  )

Definition at line 63 of file s23_lib.c.

const SSL_CIPHER* ssl23_get_cipher ( unsigned int  u)

Definition at line 77 of file s23_lib.c.

const SSL_CIPHER* ssl23_get_cipher_by_char ( const unsigned char *  p)

Definition at line 93 of file s23_lib.c.

int ssl23_num_ciphers ( void  )

Definition at line 68 of file s23_lib.c.

int ssl23_peek ( SSL s,
void buf,
int  len 
)

Definition at line 143 of file s23_lib.c.

int ssl23_put_cipher_by_char ( const SSL_CIPHER c,
unsigned char *  p 
)

Definition at line 105 of file s23_lib.c.

int ssl23_read ( SSL s,
void buf,
int  len 
)

Definition at line 120 of file s23_lib.c.

int ssl23_read_bytes ( SSL s,
int  n 
)

Definition at line 93 of file s23_pkt.c.

int ssl23_write ( SSL s,
const void buf,
int  len 
)

Definition at line 166 of file s23_lib.c.

int ssl23_write_bytes ( SSL s)

Definition at line 66 of file s23_pkt.c.

int ssl2_accept ( SSL s)
long ssl2_callback_ctrl ( SSL s,
int  cmd,
void(*)(void fp 
)

Definition at line 400 of file s2_lib.c.

void ssl2_clear ( SSL s)

Definition at line 365 of file s2_lib.c.

int ssl2_connect ( SSL s)
long ssl2_ctrl ( SSL s,
int  cmd,
long  larg,
void parg 
)

Definition at line 385 of file s2_lib.c.

long ssl2_ctx_callback_ctrl ( SSL_CTX s,
int  cmd,
void(*)(void fp 
)

Definition at line 410 of file s2_lib.c.

long ssl2_ctx_ctrl ( SSL_CTX s,
int  cmd,
long  larg,
void parg 
)

Definition at line 405 of file s2_lib.c.

long ssl2_default_timeout ( void  )

Definition at line 296 of file s2_lib.c.

int ssl2_do_write ( SSL s)

Definition at line 696 of file s2_pkt.c.

void ssl2_enc ( SSL s,
int  send_data 
)

Definition at line 121 of file s2_enc.c.

int ssl2_enc_init ( SSL s,
int  client 
)

Definition at line 63 of file s2_enc.c.

void ssl2_free ( SSL s)

Definition at line 350 of file s2_lib.c.

int ssl2_generate_key_material ( SSL s)

Definition at line 448 of file s2_lib.c.

const SSL_CIPHER* ssl2_get_cipher ( unsigned int  u)

Definition at line 306 of file s2_lib.c.

const SSL_CIPHER* ssl2_get_cipher_by_char ( const unsigned char *  p)

Definition at line 417 of file s2_lib.c.

void ssl2_mac ( SSL s,
unsigned char *  mac,
int  send_data 
)

Definition at line 151 of file s2_enc.c.

int ssl2_new ( SSL s)

Definition at line 319 of file s2_lib.c.

int ssl2_num_ciphers ( void  )

Definition at line 301 of file s2_lib.c.

int ssl2_part_read ( SSL s,
unsigned long  f,
int  i 
)

Definition at line 657 of file s2_pkt.c.

int ssl2_peek ( SSL s,
void buf,
int  len 
)

Definition at line 314 of file s2_pkt.c.

int ssl2_pending ( const SSL s)

Definition at line 314 of file s2_lib.c.

int ssl2_put_cipher_by_char ( const SSL_CIPHER c,
unsigned char *  p 
)

Definition at line 433 of file s2_lib.c.

int ssl2_read ( SSL s,
void buf,
int  len 
)

Definition at line 309 of file s2_pkt.c.

void ssl2_return_error ( SSL s,
int  reason 
)

Definition at line 503 of file s2_lib.c.

int ssl2_set_certificate ( SSL s,
int  type,
int  len,
const unsigned char *  data 
)

Definition at line 1025 of file s2_clnt.c.

int ssl2_shutdown ( SSL s)

Definition at line 545 of file s2_lib.c.

int ssl2_write ( SSL s,
const void buf,
int  len 
)

Definition at line 418 of file s2_pkt.c.

void ssl2_write_error ( SSL s)

Definition at line 515 of file s2_lib.c.

int ssl3_accept ( SSL s)
int ssl3_alert_code ( int  code)

Definition at line 824 of file s3_enc.c.

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

Definition at line 3359 of file s3_lib.c.

int ssl3_cert_verify_mac ( SSL s,
int  md_nid,
unsigned char *  p 
)

Definition at line 645 of file s3_enc.c.

int ssl3_change_cipher_state ( SSL s,
int  which 
)

Definition at line 216 of file s3_enc.c.

int ssl3_check_cert_and_algorithm ( SSL s)

Definition at line 3161 of file s3_clnt.c.

int ssl3_check_client_hello ( SSL s)

Definition at line 868 of file s3_srvr.c.

int ssl3_check_finished ( SSL s)

Definition at line 3330 of file s3_clnt.c.

SSL_CIPHER* ssl3_choose_cipher ( SSL ssl,
STACK_OF(SSL_CIPHER)*  clnt,
STACK_OF(SSL_CIPHER)*  srvr 
)

Definition at line 3752 of file s3_lib.c.

void ssl3_cleanup_key_block ( SSL s)

Definition at line 457 of file s3_enc.c.

void ssl3_clear ( SSL s)

Definition at line 3002 of file s3_lib.c.

int ssl3_client_hello ( SSL s)

Definition at line 654 of file s3_clnt.c.

SSL_COMP* ssl3_comp_find ( STACK_OF(SSL_COMP)*  sk,
int  n 
)

Definition at line 1761 of file ssl_ciph.c.

int ssl3_connect ( SSL s)
long ssl3_ctrl ( SSL s,
int  cmd,
long  larg,
void parg 
)

Definition at line 3086 of file s3_lib.c.

long ssl3_ctx_callback_ctrl ( SSL_CTX s,
int  cmd,
void(*)(void fp 
)

Definition at line 3646 of file s3_lib.c.

long ssl3_ctx_ctrl ( SSL_CTX s,
int  cmd,
long  larg,
void parg 
)

Definition at line 3416 of file s3_lib.c.

long ssl3_default_timeout ( void  )

Definition at line 2912 of file s3_lib.c.

int ssl3_digest_cached_records ( SSL s)

Definition at line 595 of file s3_enc.c.

int ssl3_dispatch_alert ( SSL s)

Definition at line 1484 of file s3_pkt.c.

int ssl3_do_change_cipher_spec ( SSL ssl)

Definition at line 1416 of file s3_pkt.c.

int ssl3_do_compress ( SSL ssl)

Definition at line 553 of file s3_pkt.c.

int ssl3_do_uncompress ( SSL ssl)

Definition at line 535 of file s3_pkt.c.

int ssl3_do_write ( SSL s,
int  type 
)

Definition at line 128 of file s3_both.c.

int ssl3_enc ( SSL s,
int  send_data 
)

Definition at line 469 of file s3_enc.c.

int ssl3_final_finish_mac ( SSL s,
const char *  sender,
int  slen,
unsigned char *  p 
)

Definition at line 649 of file s3_enc.c.

void ssl3_finish_mac ( SSL s,
const unsigned char *  buf,
int  len 
)

Definition at line 578 of file s3_enc.c.

void ssl3_free ( SSL s)

Definition at line 2960 of file s3_lib.c.

void ssl3_free_digest_list ( SSL s)

Definition at line 563 of file s3_enc.c.

int ssl3_generate_master_secret ( SSL s,
unsigned char *  out,
unsigned char *  p,
int  len 
)

Definition at line 782 of file s3_enc.c.

int ssl3_get_cert_status ( SSL s)

Definition at line 2121 of file s3_clnt.c.

int ssl3_get_cert_verify ( SSL s)

Definition at line 2897 of file s3_srvr.c.

int ssl3_get_certificate_request ( SSL s)

Definition at line 1857 of file s3_clnt.c.

const SSL_CIPHER* ssl3_get_cipher ( unsigned int  u)

Definition at line 2924 of file s3_lib.c.

const SSL_CIPHER* ssl3_get_cipher_by_char ( const unsigned char *  p)

Definition at line 3720 of file s3_lib.c.

int ssl3_get_client_certificate ( SSL s)

Definition at line 3155 of file s3_srvr.c.

int ssl3_get_client_hello ( SSL s)

Definition at line 914 of file s3_srvr.c.

int ssl3_get_client_key_exchange ( SSL s)

Definition at line 2112 of file s3_srvr.c.

int ssl3_get_finished ( SSL s,
int  state_a,
int  state_b 
)

Definition at line 227 of file s3_both.c.

int ssl3_get_key_exchange ( SSL s)

Definition at line 1259 of file s3_clnt.c.

long ssl3_get_message ( SSL s,
int  st1,
int  stn,
int  mt,
long  max,
int *  ok 
)

Definition at line 417 of file s3_both.c.

int ssl3_get_new_session_ticket ( SSL s)

Definition at line 2032 of file s3_clnt.c.

int ssl3_get_next_proto ( SSL s)

Definition at line 3522 of file s3_srvr.c.

int ssl3_get_req_cert_type ( SSL s,
unsigned char *  p 
)

Definition at line 4026 of file s3_lib.c.

int ssl3_get_server_certificate ( SSL s)

Definition at line 1073 of file s3_clnt.c.

int ssl3_get_server_done ( SSL s)

Definition at line 2190 of file s3_clnt.c.

int ssl3_get_server_hello ( SSL s)

Definition at line 820 of file s3_clnt.c.

void ssl3_init_finished_mac ( SSL s)

Definition at line 555 of file s3_enc.c.

int ssl3_new ( SSL s)

Definition at line 2940 of file s3_lib.c.

int ssl3_num_ciphers ( void  )

Definition at line 2919 of file s3_lib.c.

unsigned long ssl3_output_cert_chain ( SSL s,
X509 x 
)

Definition at line 341 of file s3_both.c.

int ssl3_peek ( SSL s,
void buf,
int  len 
)

Definition at line 4230 of file s3_lib.c.

int ssl3_pending ( const SSL s)

Definition at line 2932 of file s3_lib.c.

int ssl3_put_cipher_by_char ( const SSL_CIPHER c,
unsigned char *  p 
)

Definition at line 3738 of file s3_lib.c.

int ssl3_read ( SSL s,
void buf,
int  len 
)

Definition at line 4225 of file s3_lib.c.

int ssl3_read_bytes ( SSL s,
int  type,
unsigned char *  buf,
int  len,
int  peek 
)

Definition at line 936 of file s3_pkt.c.

int ssl3_read_n ( SSL s,
int  n,
int  max,
int  extend 
)

Definition at line 124 of file s3_pkt.c.

void ssl3_record_sequence_update ( unsigned char *  seq)

Definition at line 771 of file s3_enc.c.

int ssl3_release_read_buffer ( SSL s)

Definition at line 834 of file s3_both.c.

int ssl3_release_write_buffer ( SSL s)

Definition at line 824 of file s3_both.c.

int ssl3_renegotiate ( SSL ssl)

Definition at line 4235 of file s3_lib.c.

int ssl3_renegotiate_check ( SSL ssl)

Definition at line 4247 of file s3_lib.c.

int ssl3_send_alert ( SSL s,
int  level,
int  desc 
)

Definition at line 1463 of file s3_pkt.c.

int ssl3_send_cert_status ( SSL s)

Definition at line 3484 of file s3_srvr.c.

int ssl3_send_certificate_request ( SSL s)

Definition at line 2015 of file s3_srvr.c.

int ssl3_send_change_cipher_spec ( SSL s,
int  state_a,
int  state_b 
)

Definition at line 304 of file s3_both.c.

int ssl3_send_client_certificate ( SSL s)

Definition at line 3083 of file s3_clnt.c.

int ssl3_send_client_key_exchange ( SSL s)

Definition at line 2215 of file s3_clnt.c.

int ssl3_send_client_verify ( SSL s)

Definition at line 2925 of file s3_clnt.c.

int ssl3_send_finished ( SSL s,
int  a,
int  b,
const char *  sender,
int  slen 
)

Definition at line 151 of file s3_both.c.

int ssl3_send_hello_request ( SSL s)

Definition at line 846 of file s3_srvr.c.

int ssl3_send_newsession_ticket ( SSL s)

Definition at line 3348 of file s3_srvr.c.

int ssl3_send_next_proto ( SSL s)

Definition at line 3299 of file s3_clnt.c.

int ssl3_send_server_certificate ( SSL s)

Definition at line 3317 of file s3_srvr.c.

int ssl3_send_server_done ( SSL s)

Definition at line 1518 of file s3_srvr.c.

int ssl3_send_server_hello ( SSL s)

Definition at line 1417 of file s3_srvr.c.

int ssl3_send_server_key_exchange ( SSL s)

Definition at line 1542 of file s3_srvr.c.

int ssl3_setup_buffers ( SSL s)

Definition at line 815 of file s3_both.c.

int ssl3_setup_key_block ( SSL s)

Definition at line 388 of file s3_enc.c.

int ssl3_setup_read_buffer ( SSL s)

Definition at line 732 of file s3_both.c.

int ssl3_setup_write_buffer ( SSL s)

Definition at line 774 of file s3_both.c.

int ssl3_shutdown ( SSL s)

Definition at line 4092 of file s3_lib.c.

int ssl3_write ( SSL s,
const void buf,
int  len 
)

Definition at line 4147 of file s3_lib.c.

int ssl3_write_bytes ( SSL s,
int  type,
const void buf,
int  len 
)

Definition at line 576 of file s3_pkt.c.

int ssl3_write_pending ( SSL s,
int  type,
const unsigned char *  buf,
unsigned int  len 
)

Definition at line 854 of file s3_pkt.c.

int ssl_add_clienthello_renegotiate_ext ( SSL s,
unsigned char *  p,
int *  len,
int  maxlen 
)

Definition at line 116 of file t1_reneg.c.

unsigned char* ssl_add_clienthello_tlsext ( SSL s,
unsigned char *  p,
unsigned char *  limit 
)

Definition at line 363 of file t1_lib.c.

int ssl_add_clienthello_use_srtp_ext ( SSL s,
unsigned char *  p,
int *  len,
int  maxlen 
)

Definition at line 263 of file d1_srtp.c.

int ssl_add_serverhello_renegotiate_ext ( SSL s,
unsigned char *  p,
int *  len,
int  maxlen 
)

Definition at line 196 of file t1_reneg.c.

unsigned char* ssl_add_serverhello_tlsext ( SSL s,
unsigned char *  p,
unsigned char *  limit 
)

Definition at line 678 of file t1_lib.c.

int ssl_add_serverhello_use_srtp_ext ( SSL s,
unsigned char *  p,
int *  len,
int  maxlen 
)

Definition at line 405 of file d1_srtp.c.

SSL_METHOD* ssl_bad_method ( int  ver)

Definition at line 2599 of file ssl_lib.c.

CERT* ssl_cert_dup ( CERT cert)

Definition at line 196 of file ssl_cert.c.

void ssl_cert_free ( CERT c)

Definition at line 360 of file ssl_cert.c.

int ssl_cert_inst ( CERT **  o)

Definition at line 404 of file ssl_cert.c.

CERT* ssl_cert_new ( void  )

Definition at line 178 of file ssl_cert.c.

int ssl_cert_type ( X509 x,
EVP_PKEY pkey 
)

Definition at line 559 of file s3_both.c.

int ssl_check_clienthello_tlsext ( SSL s)

Definition at line 1766 of file t1_lib.c.

int ssl_check_serverhello_tlsext ( SSL s)

Definition at line 1891 of file t1_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_get_evp ( const SSL_SESSION s,
const EVP_CIPHER **  enc,
const EVP_MD **  md,
int *  mac_pkey_type,
int *  mac_secret_size,
SSL_COMP **  comp 
)

Definition at line 486 of file ssl_ciph.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_bad_session ( SSL s)

Definition at line 1003 of file ssl_sess.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_do_client_cert_cb ( SSL s,
X509 **  px509,
EVP_PKEY **  ppkey 
)

Definition at line 3355 of file s3_clnt.c.

void ssl_free_wbio_buffer ( SSL s)

Definition at line 2866 of file ssl_lib.c.

long ssl_get_algorithm2 ( SSL s)

Definition at line 4274 of file s3_lib.c.

int ssl_get_handshake_digest ( int  i,
long *  mask,
const EVP_MD **  md 
)

Definition at line 646 of file ssl_ciph.c.

int ssl_get_new_session ( SSL s,
int  session 
)

Definition at line 272 of file ssl_sess.c.

int ssl_get_prev_session ( SSL s,
unsigned char *  session,
int  len,
const unsigned char *  limit 
)

Definition at line 463 of file ssl_sess.c.

X509* ssl_get_server_send_cert ( SSL )

Definition at line 2290 of file ssl_lib.c.

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

Definition at line 2353 of file ssl_lib.c.

int ssl_init_wbio_buffer ( SSL s,
int  push 
)

Definition at line 2830 of file ssl_lib.c.

void ssl_load_ciphers ( void  )

Definition at line 364 of file ssl_ciph.c.

int ssl_ok ( SSL s)

Definition at line 3020 of file ssl_lib.c.

int ssl_parse_clienthello_renegotiate_ext ( SSL s,
unsigned char *  d,
int  len,
int *  al 
)

Definition at line 147 of file t1_reneg.c.

int ssl_parse_clienthello_tlsext ( SSL s,
unsigned char **  data,
unsigned char *  d,
int  n,
int *  al 
)

Definition at line 865 of file t1_lib.c.

int ssl_parse_clienthello_use_srtp_ext ( SSL s,
unsigned char *  d,
int  len,
int *  al 
)

Definition at line 305 of file d1_srtp.c.

int ssl_parse_serverhello_renegotiate_ext ( SSL s,
unsigned char *  d,
int  len,
int *  al 
)

Definition at line 232 of file t1_reneg.c.

int ssl_parse_serverhello_tlsext ( SSL s,
unsigned char **  data,
unsigned char *  d,
int  n,
int *  al 
)

Definition at line 1379 of file t1_lib.c.

int ssl_parse_serverhello_use_srtp_ext ( SSL s,
unsigned char *  d,
int  len,
int *  al 
)

Definition at line 430 of file d1_srtp.c.

int ssl_prepare_clienthello_tlsext ( SSL s)

Definition at line 1642 of file t1_lib.c.

int ssl_prepare_serverhello_tlsext ( SSL s)

Definition at line 1735 of file t1_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.

void ssl_sess_cert_free ( SESS_CERT sc)

Definition at line 451 of file ssl_cert.c.

SESS_CERT* ssl_sess_cert_new ( void  )

Definition at line 433 of file ssl_cert.c.

void ssl_set_cert_masks ( CERT c,
const SSL_CIPHER cipher 
)

Definition at line 2007 of file ssl_lib.c.

int ssl_set_peer_cert_type ( SESS_CERT c,
int  type 
)

Definition at line 503 of file ssl_cert.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_verify_alarm_type ( long  type)

Definition at line 598 of file s3_both.c.

int ssl_verify_cert_chain ( SSL s,
STACK_OF(X509)*  sk 
)

Definition at line 509 of file ssl_cert.c.

STACK_OF ( SSL_CIPHER  )
const EVP_MD* tls12_get_hash ( unsigned char  hash_alg)

Definition at line 2318 of file t1_lib.c.

int tls12_get_req_sig_algs ( SSL s,
unsigned char *  p 
)

Definition at line 350 of file t1_lib.c.

int tls12_get_sigandhash ( unsigned char *  p,
const EVP_PKEY pk,
const EVP_MD md 
)

Definition at line 2295 of file t1_lib.c.

int tls12_get_sigid ( const EVP_PKEY pk)

Definition at line 2312 of file t1_lib.c.

int tls1_alert_code ( int  code)

Definition at line 1216 of file t1_enc.c.

long tls1_callback_ctrl ( SSL s,
int  cmd,
void(*)(void fp 
)
int tls1_cert_verify_mac ( SSL s,
int  md_nid,
unsigned char *  p 
)

Definition at line 904 of file t1_enc.c.

int tls1_change_cipher_state ( SSL s,
int  which 
)

Definition at line 319 of file t1_enc.c.

void tls1_clear ( SSL s)

Definition at line 168 of file t1_lib.c.

long tls1_ctrl ( SSL s,
int  cmd,
long  larg,
void parg 
)
long tls1_default_timeout ( void  )

Definition at line 143 of file t1_lib.c.

int tls1_ec_curve_id2nid ( int  curve_id)

Definition at line 234 of file t1_lib.c.

int tls1_ec_nid2curve_id ( int  nid)

Definition at line 243 of file t1_lib.c.

int tls1_enc ( SSL s,
int  snd 
)

Definition at line 670 of file t1_enc.c.

int tls1_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 1127 of file t1_enc.c.

int tls1_final_finish_mac ( SSL s,
const char *  str,
int  slen,
unsigned char *  p 
)

Definition at line 934 of file t1_enc.c.

void tls1_free ( SSL s)

Definition at line 157 of file t1_lib.c.

int tls1_generate_master_secret ( SSL s,
unsigned char *  out,
unsigned char *  p,
int  len 
)

Definition at line 1078 of file t1_enc.c.

int tls1_heartbeat ( SSL s)

Definition at line 2506 of file t1_lib.c.

int tls1_mac ( SSL ssl,
unsigned char *  md,
int  snd 
)

Definition at line 988 of file t1_enc.c.

int tls1_new ( SSL s)

Definition at line 150 of file t1_lib.c.

int tls1_process_heartbeat ( SSL s)

Definition at line 2437 of file t1_lib.c.

int tls1_process_sigalgs ( SSL s,
const unsigned char *  data,
int  dsize 
)

Definition at line 2356 of file t1_lib.c.

int tls1_process_ticket ( SSL s,
unsigned char *  session_id,
int  len,
const unsigned char *  limit,
SSL_SESSION **  ret 
)

Definition at line 2036 of file t1_lib.c.

int tls1_setup_key_block ( SSL s)

Definition at line 578 of file t1_enc.c.

Variable Documentation

SSL3_ENC_METHOD DTLSv1_enc_data

Definition at line 73 of file d1_lib.c.

unsigned char int num

Definition at line 817 of file ssl_locl.h.

unsigned char* p

Definition at line 817 of file ssl_locl.h.

const char* rule_str

Definition at line 824 of file ssl_locl.h.

OPENSSL_EXTERN const SSL_CIPHER ssl2_ciphers[]

Definition at line 605 of file ssl_locl.h.

OPENSSL_EXTERN SSL_CIPHER ssl3_ciphers[]

Definition at line 606 of file ssl_locl.h.

SSL3_ENC_METHOD ssl3_undef_enc_method

Definition at line 165 of file ssl_lib.c.

SSL3_ENC_METHOD SSLv3_enc_data

Definition at line 2895 of file s3_lib.c.

SSL3_ENC_METHOD TLSv1_enc_data

Definition at line 128 of file t1_lib.c.