OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
ssl_sess.c File Reference
#include <stdio.h>
#include <openssl/lhash.h>
#include <openssl/rand.h>
#include <openssl/engine.h>
#include "ssl_locl.h"

Go to the source code of this file.

Classes

struct  timeout_param_st
 

Macros

#define MAX_SESS_ID_ATTEMPTS   10
 

Typedefs

typedef struct timeout_param_st TIMEOUT_PARAM
 

Functions

SSL_SESSIONSSL_get_session (const SSL *ssl)
 
SSL_SESSIONSSL_get1_session (SSL *ssl)
 
int SSL_SESSION_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_SESSION_set_ex_data (SSL_SESSION *s, int idx, void *arg)
 
voidSSL_SESSION_get_ex_data (const SSL_SESSION *s, int idx)
 
SSL_SESSIONSSL_SESSION_new (void)
 
const unsigned char * SSL_SESSION_get_id (const SSL_SESSION *s, unsigned int *len)
 
unsigned int SSL_SESSION_get_compress_id (const SSL_SESSION *s)
 
int ssl_get_new_session (SSL *s, int session)
 
int ssl_get_prev_session (SSL *s, unsigned char *session_id, int len, const unsigned char *limit)
 
int SSL_CTX_add_session (SSL_CTX *ctx, SSL_SESSION *c)
 
int SSL_CTX_remove_session (SSL_CTX *ctx, SSL_SESSION *c)
 
void SSL_SESSION_free (SSL_SESSION *ss)
 
int SSL_set_session (SSL *s, SSL_SESSION *session)
 
long SSL_SESSION_set_timeout (SSL_SESSION *s, long t)
 
long SSL_SESSION_get_timeout (const SSL_SESSION *s)
 
long SSL_SESSION_get_time (const SSL_SESSION *s)
 
long SSL_SESSION_set_time (SSL_SESSION *s, long t)
 
X509SSL_SESSION_get0_peer (SSL_SESSION *s)
 
int SSL_SESSION_set1_id_context (SSL_SESSION *s, const unsigned char *sid_ctx, unsigned int sid_ctx_len)
 
long SSL_CTX_set_timeout (SSL_CTX *s, long t)
 
long SSL_CTX_get_timeout (const SSL_CTX *s)
 
int SSL_set_session_secret_cb (SSL *s, int(*tls_session_secret_cb)(SSL *s, void *secret, int *secret_len, STACK_OF(SSL_CIPHER)*peer_ciphers, SSL_CIPHER **cipher, void *arg), void *arg)
 
int SSL_set_session_ticket_ext_cb (SSL *s, tls_session_ticket_ext_cb_fn cb, void *arg)
 
int SSL_set_session_ticket_ext (SSL *s, void *ext_data, int ext_len)
 
int ssl_clear_bad_session (SSL *s)
 
void SSL_CTX_sess_set_new_cb (SSL_CTX *ctx, int(*cb)(struct ssl_st *ssl, SSL_SESSION *sess))
 
void SSL_CTX_sess_set_remove_cb (SSL_CTX *ctx, void(*cb)(SSL_CTX *ctx, SSL_SESSION *sess))
 
void SSL_CTX_sess_set_get_cb (SSL_CTX *ctx, SSL_SESSION *(*cb)(struct ssl_st *ssl, unsigned char *data, int len, int *copy))
 
void SSL_CTX_set_info_callback (SSL_CTX *ctx, void(*cb)(const SSL *ssl, int type, int val))
 
void SSL_CTX_set_client_cert_cb (SSL_CTX *ctx, int(*cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey))
 
int SSL_CTX_set_client_cert_engine (SSL_CTX *ctx, ENGINE *e)
 
void SSL_CTX_set_cookie_generate_cb (SSL_CTX *ctx, int(*cb)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len))
 
void SSL_CTX_set_cookie_verify_cb (SSL_CTX *ctx, int(*cb)(SSL *ssl, unsigned char *cookie, unsigned int cookie_len))
 

Variables

int(*)(SSL *ssl, SSL_SESSION *sess) SSL_CTX_sess_get_new_cb (SSL_CTX *ctx)
 
void(*)(SSL_CTX *ctx,
SSL_SESSION *sess) 
SSL_CTX_sess_get_remove_cb (SSL_CTX *ctx)
 
SSL_SESSION *(*)(SSL *ssl,
unsigned char *data, int len,
int *copy) 
SSL_CTX_sess_get_get_cb (SSL_CTX *ctx)
 
void(*)(const SSL *ssl, int
type, int val) 
SSL_CTX_get_info_callback (SSL_CTX *ctx)
 
int(*)(SSL *ssl, X509 **x509,
EVP_PKEY **pkey) 
SSL_CTX_get_client_cert_cb (SSL_CTX *ctx)
 

Macro Definition Documentation

#define MAX_SESS_ID_ATTEMPTS   10

Definition at line 248 of file ssl_sess.c.

Typedef Documentation

Function Documentation

int ssl_clear_bad_session ( SSL s)

Definition at line 1003 of file ssl_sess.c.

int SSL_CTX_add_session ( SSL_CTX ctx,
SSL_SESSION c 
)

Definition at line 633 of file ssl_sess.c.

long SSL_CTX_get_timeout ( const SSL_CTX s)

Definition at line 900 of file ssl_sess.c.

int SSL_CTX_remove_session ( SSL_CTX ctx,
SSL_SESSION c 
)

Definition at line 698 of file ssl_sess.c.

void SSL_CTX_sess_set_get_cb ( SSL_CTX ctx,
SSL_SESSION *(*)(struct ssl_st *ssl, unsigned char *data, int len, int *copy)  cb 
)

Definition at line 1093 of file ssl_sess.c.

void SSL_CTX_sess_set_new_cb ( SSL_CTX ctx,
int(*)(struct ssl_st *ssl, SSL_SESSION *sess)  cb 
)

Definition at line 1071 of file ssl_sess.c.

void SSL_CTX_sess_set_remove_cb ( SSL_CTX ctx,
void(*)(SSL_CTX *ctx, SSL_SESSION *sess)  cb 
)

Definition at line 1082 of file ssl_sess.c.

void SSL_CTX_set_client_cert_cb ( SSL_CTX ctx,
int(*)(SSL *ssl, X509 **x509, EVP_PKEY **pkey)  cb 
)

Definition at line 1117 of file ssl_sess.c.

int SSL_CTX_set_client_cert_engine ( SSL_CTX ctx,
ENGINE e 
)

Definition at line 1129 of file ssl_sess.c.

void SSL_CTX_set_cookie_generate_cb ( SSL_CTX ctx,
int(*)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len)  cb 
)

Definition at line 1147 of file ssl_sess.c.

void SSL_CTX_set_cookie_verify_cb ( SSL_CTX ctx,
int(*)(SSL *ssl, unsigned char *cookie, unsigned int cookie_len)  cb 
)

Definition at line 1153 of file ssl_sess.c.

void SSL_CTX_set_info_callback ( SSL_CTX ctx,
void(*)(const SSL *ssl, int type, int val)  cb 
)

Definition at line 1106 of file ssl_sess.c.

long SSL_CTX_set_timeout ( SSL_CTX s,
long  t 
)

Definition at line 891 of file ssl_sess.c.

SSL_SESSION* SSL_get1_session ( SSL ssl)

Definition at line 156 of file ssl_sess.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_id,
int  len,
const unsigned char *  limit 
)

Definition at line 463 of file ssl_sess.c.

SSL_SESSION* SSL_get_session ( const SSL ssl)

Definition at line 150 of file ssl_sess.c.

void SSL_SESSION_free ( SSL_SESSION ss)

Definition at line 733 of file ssl_sess.c.

X509* SSL_SESSION_get0_peer ( SSL_SESSION s)

Definition at line 872 of file ssl_sess.c.

unsigned int SSL_SESSION_get_compress_id ( const SSL_SESSION s)

Definition at line 234 of file ssl_sess.c.

void* SSL_SESSION_get_ex_data ( const SSL_SESSION s,
int  idx 
)

Definition at line 183 of file ssl_sess.c.

int SSL_SESSION_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 171 of file ssl_sess.c.

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

Definition at line 227 of file ssl_sess.c.

long SSL_SESSION_get_time ( const SSL_SESSION s)

Definition at line 859 of file ssl_sess.c.

long SSL_SESSION_get_timeout ( const SSL_SESSION s)

Definition at line 853 of file ssl_sess.c.

SSL_SESSION* SSL_SESSION_new ( void  )

Definition at line 188 of file ssl_sess.c.

int SSL_SESSION_set1_id_context ( SSL_SESSION s,
const unsigned char *  sid_ctx,
unsigned int  sid_ctx_len 
)

Definition at line 877 of file ssl_sess.c.

int SSL_SESSION_set_ex_data ( SSL_SESSION s,
int  idx,
void arg 
)

Definition at line 178 of file ssl_sess.c.

long SSL_SESSION_set_time ( SSL_SESSION s,
long  t 
)

Definition at line 865 of file ssl_sess.c.

long SSL_SESSION_set_timeout ( SSL_SESSION s,
long  t 
)

Definition at line 846 of file ssl_sess.c.

int SSL_set_session ( SSL s,
SSL_SESSION session 
)

Definition at line 785 of file ssl_sess.c.

int SSL_set_session_secret_cb ( SSL s,
int(*)(SSL *s, void *secret, int *secret_len, STACK_OF(SSL_CIPHER)*peer_ciphers, SSL_CIPHER **cipher, void *arg tls_session_secret_cb,
void arg 
)

Definition at line 907 of file ssl_sess.c.

int SSL_set_session_ticket_ext ( SSL s,
void ext_data,
int  ext_len 
)

Definition at line 925 of file ssl_sess.c.

int SSL_set_session_ticket_ext_cb ( SSL s,
tls_session_ticket_ext_cb_fn  cb,
void arg 
)

Definition at line 916 of file ssl_sess.c.

Variable Documentation

int(*)(SSL * ssl, X509 ** x509, EVP_PKEY **pkey) SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)

Definition at line 1123 of file ssl_sess.c.

void(*)(const SSL *ssl, int type, int val) SSL_CTX_get_info_callback(SSL_CTX *ctx)

Definition at line 1112 of file ssl_sess.c.

SSL_SESSION*(*)(SSL *ssl, unsigned char *data, int len, int *copy) SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)

Definition at line 1100 of file ssl_sess.c.

int(*)(SSL *ssl, SSL_SESSION *sess) SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)

Definition at line 1077 of file ssl_sess.c.

void(*)(SSL_CTX * ctx, SSL_SESSION *sess) SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)

Definition at line 1088 of file ssl_sess.c.