OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions | Variables
t1_lib.c File Reference
#include <stdio.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/ocsp.h>
#include <openssl/rand.h>
#include "ssl_locl.h"

Go to the source code of this file.

Classes

struct  tls12_lookup
 

Macros

#define tlsext_sigalg_rsa(md)   md, TLSEXT_signature_rsa,
 
#define tlsext_sigalg_dsa(md)   md, TLSEXT_signature_dsa,
 
#define tlsext_sigalg_ecdsa(md)   md, TLSEXT_signature_ecdsa,
 
#define tlsext_sigalg(md)
 

Functions

long tls1_default_timeout (void)
 
int tls1_new (SSL *s)
 
void tls1_free (SSL *s)
 
void tls1_clear (SSL *s)
 
int tls1_ec_curve_id2nid (int curve_id)
 
int tls1_ec_nid2curve_id (int nid)
 
int tls12_get_req_sig_algs (SSL *s, unsigned char *p)
 
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 **p, unsigned char *d, int n, int *al)
 
int ssl_parse_serverhello_tlsext (SSL *s, unsigned char **p, 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_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)
 
int tls1_process_sigalgs (SSL *s, const unsigned char *data, int dsize)
 
int tls1_process_heartbeat (SSL *s)
 
int tls1_heartbeat (SSL *s)
 

Variables

const char tls1_version_str [] ="TLSv1" OPENSSL_VERSION_PTEXT
 
SSL3_ENC_METHOD TLSv1_enc_data
 

Macro Definition Documentation

#define tlsext_sigalg (   md)
Value:
tlsext_sigalg_dsa(md) \
tlsext_sigalg_ecdsa(md)

Definition at line 328 of file t1_lib.c.

#define tlsext_sigalg_dsa (   md)    md, TLSEXT_signature_dsa,

Definition at line 319 of file t1_lib.c.

#define tlsext_sigalg_ecdsa (   md)    md, TLSEXT_signature_ecdsa,

Definition at line 325 of file t1_lib.c.

#define tlsext_sigalg_rsa (   md)    md, TLSEXT_signature_rsa,

Definition at line 313 of file t1_lib.c.

Function Documentation

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

Definition at line 363 of file t1_lib.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_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_parse_clienthello_tlsext ( SSL s,
unsigned char **  p,
unsigned char *  d,
int  n,
int *  al 
)

Definition at line 865 of file t1_lib.c.

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

Definition at line 1379 of file t1_lib.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.

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.

void tls1_clear ( SSL s)

Definition at line 168 of file t1_lib.c.

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.

void tls1_free ( SSL s)

Definition at line 157 of file t1_lib.c.

int tls1_heartbeat ( SSL s)

Definition at line 2506 of file t1_lib.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.

Variable Documentation

const char tls1_version_str[] ="TLSv1" OPENSSL_VERSION_PTEXT

Definition at line 120 of file t1_lib.c.

SSL3_ENC_METHOD TLSv1_enc_data