Logo Search packages:      
Sourcecode: openssl version File versions

ssl_lib.c File Reference


Detailed Description

Version independent SSL functions.

Definition in file ssl_lib.c.

#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/fips.h>

Go to the source code of this file.

Functions

static IMPLEMENT_LHASH_HASH_FN (SSL_SESSION_hash, SSL_SESSION *)
int SSL_accept (SSL *s)
SSL_METHOD * ssl_bad_method (int ver)
long SSL_callback_ctrl (SSL *s, int cmd, void(*fp)())
int SSL_check_private_key (SSL *ssl)
int ssl_cipher_id_cmp (const SSL_CIPHER *a, const SSL_CIPHER *b)
int ssl_cipher_list_to_bytes (SSL *s, STACK_OF(SSL_CIPHER)*sk, unsigned char *p)
int ssl_cipher_ptr_id_cmp (const SSL_CIPHER *const *ap, const SSL_CIPHER *const *bp)
int SSL_clear (SSL *s)
void ssl_clear_cipher_ctx (SSL *s)
int SSL_connect (SSL *s)
void SSL_copy_session_id (SSL *t, SSL *f)
long SSL_ctrl (SSL *s, int cmd, long larg, void *parg)
long SSL_CTX_callback_ctrl (SSL_CTX *ctx, int cmd, void(*fp)())
int SSL_CTX_check_private_key (SSL_CTX *ctx)
long SSL_CTX_ctrl (SSL_CTX *ctx, int cmd, long larg, void *parg)
void SSL_CTX_free (SSL_CTX *a)
X509_STORE * SSL_CTX_get_cert_store (SSL_CTX *ctx)
void * SSL_CTX_get_ex_data (SSL_CTX *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_get_quiet_shutdown (SSL_CTX *ctx)
int(*)(int, X509_STORE_CTX *) SSL_CTX_get_verify_callback (SSL_CTX *ctx)
int SSL_CTX_get_verify_depth (SSL_CTX *ctx)
int SSL_CTX_get_verify_mode (SSL_CTX *ctx)
int SSL_CTX_load_verify_locations (SSL_CTX *ctx, const char *CAfile, const char *CApath)
struct lhash_st * SSL_CTX_sessions (SSL_CTX *ctx)
void SSL_CTX_set_cert_store (SSL_CTX *ctx, X509_STORE *store)
void SSL_CTX_set_cert_verify_callback (SSL_CTX *ctx, int(*cb)(X509_STORE_CTX *, void *), void *arg)
int SSL_CTX_set_cipher_list (SSL_CTX *ctx, const char *str)
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)
int SSL_CTX_set_default_verify_paths (SSL_CTX *ctx)
int SSL_CTX_set_ex_data (SSL_CTX *s, int idx, void *arg)
int SSL_CTX_set_generate_session_id (SSL_CTX *ctx, GEN_SESSION_CB cb)
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))
int SSL_CTX_set_purpose (SSL_CTX *s, int purpose)
void SSL_CTX_set_quiet_shutdown (SSL_CTX *ctx, int mode)
int SSL_CTX_set_session_id_context (SSL_CTX *ctx, const unsigned char *sid_ctx, unsigned int sid_ctx_len)
int SSL_CTX_set_ssl_version (SSL_CTX *ctx, SSL_METHOD *meth)
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_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.
int SSL_CTX_set_trust (SSL_CTX *s, int trust)
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)
int SSL_do_handshake (SSL *s)
SSL * SSL_dup (SSL *s)
void SSL_free (SSL *s)
void ssl_free_wbio_buffer (SSL *s)
X509 * SSL_get_certificate (SSL *s)
const char * SSL_get_cipher_list (SSL *s, int n)
SSL_CIPHER * SSL_get_current_cipher (SSL *s)
long SSL_get_default_timeout (SSL *s)
int SSL_get_error (SSL *s, int i)
void * SSL_get_ex_data (SSL *s, int idx)
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_get_fd (SSL *s)
size_t SSL_get_finished (SSL *s, void *buf, size_t count)
void(*)(const SSL *ssl, int
type, int val) 
SSL_get_info_callback (SSL *ssl)
X509 * SSL_get_peer_certificate (SSL *s)
size_t SSL_get_peer_finished (SSL *s, void *buf, size_t count)
EVP_PKEY * SSL_get_privatekey (SSL *s)
int SSL_get_quiet_shutdown (SSL *s)
BIO * SSL_get_rbio (SSL *s)
int SSL_get_read_ahead (SSL *s)
int SSL_get_rfd (SSL *s)
X509 * ssl_get_server_send_cert (SSL *s)
char * SSL_get_shared_ciphers (SSL *s, char *buf, int len)
int SSL_get_shutdown (SSL *s)
EVP_PKEY * ssl_get_sign_pkey (SSL *s, SSL_CIPHER *cipher)
SSL_CTX * SSL_get_SSL_CTX (SSL *ssl)
SSL_METHOD * SSL_get_ssl_method (SSL *s)
int(*)(int, X509_STORE_CTX *) SSL_get_verify_callback (SSL *s)
int SSL_get_verify_depth (SSL *s)
int SSL_get_verify_mode (SSL *s)
long SSL_get_verify_result (SSL *ssl)
const char * SSL_get_version (SSL *s)
BIO * SSL_get_wbio (SSL *s)
int SSL_get_wfd (SSL *s)
int SSL_has_matching_session_id (const SSL *ssl, const unsigned char *id, unsigned int id_len)
int ssl_init_wbio_buffer (SSL *s, int push)
SSL * SSL_new (SSL_CTX *ctx)
int ssl_ok (SSL *s)
int SSL_peek (SSL *s, void *buf, int num)
int SSL_pending (SSL *s)
int SSL_read (SSL *s, void *buf, int num)
int SSL_renegotiate (SSL *s)
int SSL_renegotiate_pending (SSL *s)
int SSL_SESSION_cmp (SSL_SESSION *a, SSL_SESSION *b)
unsigned long SSL_SESSION_hash (SSL_SESSION *a)
void SSL_set_accept_state (SSL *s)
void SSL_set_bio (SSL *s, BIO *rbio, BIO *wbio)
void ssl_set_cert_masks (CERT *c, SSL_CIPHER *cipher)
int SSL_set_cipher_list (SSL *s, const char *str)
void SSL_set_connect_state (SSL *s)
int SSL_set_ex_data (SSL *s, int idx, void *arg)
int SSL_set_fd (SSL *s, int fd)
int SSL_set_generate_session_id (SSL *ssl, GEN_SESSION_CB cb)
void SSL_set_info_callback (SSL *ssl, void(*cb)(const SSL *ssl, int type, int val))
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))
int SSL_set_purpose (SSL *s, int purpose)
void SSL_set_quiet_shutdown (SSL *s, int mode)
void SSL_set_read_ahead (SSL *s, int yes)
int SSL_set_rfd (SSL *s, int fd)
int SSL_set_session_id_context (SSL *ssl, const unsigned char *sid_ctx, unsigned int sid_ctx_len)
void SSL_set_shutdown (SSL *s, int mode)
int SSL_set_ssl_method (SSL *s, SSL_METHOD *meth)
void SSL_set_tmp_dh_callback (SSL *ssl, DH *(*dh)(SSL *ssl, int is_export, int keylength))
void SSL_set_tmp_rsa_callback (SSL *ssl, RSA *(*cb)(SSL *ssl, int is_export, int keylength))
int SSL_set_trust (SSL *s, int trust)
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_verify_result (SSL *ssl, long arg)
int SSL_set_wfd (SSL *s, int fd)
int SSL_shutdown (SSL *s)
int SSL_state (SSL *ssl)
int ssl_undefined_function (SSL *s)
void ssl_update_cache (SSL *s, int mode)
int SSL_version (SSL *s)
int SSL_want (SSL *s)
int SSL_write (SSL *s, const void *buf, int num)
 STACK_OF (SSL_CIPHER)
 STACK_OF (X509)

Variables

OPENSSL_GLOBAL SSL3_ENC_METHOD ssl3_undef_enc_method
const char * SSL_version_str = OPENSSL_VERSION_TEXT


Generated by  Doxygen 1.6.0   Back to index