Lines Matching refs:SSL

2  * ! \file ssl/ssl_lib.c \brief Version independent SSL functions.
7 * This package is an SSL implementation written
9 * The implementation was written so as to conform with Netscapes SSL.
14 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
170 (int (*)(SSL *, int))ssl_undefined_function,
171 (int (*)(SSL *, unsigned char *, int))ssl_undefined_function,
173 (int (*)(SSL *, unsigned char *, unsigned char *, int))
175 (int (*)(SSL *, int))ssl_undefined_function,
176 (int (*)(SSL *, const char *, int, unsigned char *))
179 (int (*)(SSL *, int, unsigned char *))ssl_undefined_function,
185 (int (*)(SSL *, unsigned char *, size_t, const char *,
190 int SSL_clear(SSL *s)
265 /** Used to change an SSL_CTXs default SSL method type */
285 SSL *SSL_new(SSL_CTX *ctx)
287 SSL *s;
298 s = (SSL *)OPENSSL_malloc(sizeof(SSL));
301 memset(s, 0, sizeof(SSL));
315 * its contents; only when setting new parameters for the per-SSL
412 int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,
434 int SSL_set_generate_session_id(SSL *ssl, GEN_SESSION_CB cb)
442 int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
450 * by this SSL.
483 int SSL_set_purpose(SSL *s, int purpose)
493 int SSL_set_trust(SSL *s, int trust)
503 int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm)
508 void SSL_free(SSL *s)
517 REF_PRINT("SSL", s);
617 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio)
636 BIO *SSL_get_rbio(const SSL *s)
641 BIO *SSL_get_wbio(const SSL *s)
646 int SSL_get_fd(const SSL *s)
651 int SSL_get_rfd(const SSL *s)
663 int SSL_get_wfd(const SSL *s)
676 int SSL_set_fd(SSL *s, int fd)
694 int SSL_set_wfd(SSL *s, int fd)
716 int SSL_set_rfd(SSL *s, int fd)
740 size_t SSL_get_finished(const SSL *s, void *buf, size_t count)
754 size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count)
767 int SSL_get_verify_mode(const SSL *s)
772 int SSL_get_verify_depth(const SSL *s)
777 int (*SSL_get_verify_callback(const SSL *s)) (int, X509_STORE_CTX *) {
795 void SSL_set_verify(SSL *s, int mode,
803 void SSL_set_verify_depth(SSL *s, int depth)
808 void SSL_set_read_ahead(SSL *s, int yes)
813 int SSL_get_read_ahead(const SSL *s)
818 int SSL_pending(const SSL *s)
830 X509 *SSL_get_peer_certificate(const SSL *s)
847 STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s)
869 void SSL_copy_session_id(SSL *t, const SSL *f)
873 /* Do we need to to SSL locking? */
915 int SSL_check_private_key(const SSL *ssl)
937 int SSL_accept(SSL *s)
946 int SSL_connect(SSL *s)
955 long SSL_get_default_timeout(const SSL *s)
960 int SSL_read(SSL *s, void *buf, int num)
974 int SSL_peek(SSL *s, void *buf, int num)
987 int SSL_write(SSL *s, const void *buf, int num)
1002 int SSL_shutdown(SSL *s)
1022 int SSL_renegotiate(SSL *s)
1032 int SSL_renegotiate_abbreviated(SSL *s)
1042 int SSL_renegotiate_pending(SSL *s)
1051 long SSL_ctrl(SSL *s, int cmd, long larg, void *parg)
1096 long SSL_callback_ctrl(SSL *s, int cmd, void (*fp) (void))
1102 const void *buf, size_t len, SSL *ssl,
1200 const void *buf, size_t len, SSL *ssl,
1232 /** return a STACK of the ciphers available for the SSL and in order of
1234 STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s)
1246 /** return a STACK of the ciphers available for the SSL and in order of
1248 STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s)
1261 const char *SSL_get_cipher_list(const SSL *s, int n)
1300 /** specify the ciphers to be used by the SSL */
1301 int SSL_set_cipher_list(SSL *s, const char *str)
1318 char *SSL_get_shared_ciphers(const SSL *s, char *buf, int len)
1354 int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk,
1426 STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, unsigned char *p,
1519 const char *SSL_get_servername(const SSL *s, const int type)
1528 int SSL_get_servername_type(const SSL *s)
1605 void SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,
1621 * memory will not be modified, but one should assume that the SSL* keeps a
1627 int (*cb) (SSL *ssl,
1648 int (*cb) (SSL *s, unsigned char **out,
1660 int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
2260 int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s)
2328 CERT_PKEY *ssl_get_server_send_pkey(const SSL *s)
2379 X509 *ssl_get_server_send_cert(const SSL *s)
2388 EVP_PKEY *ssl_get_sign_pkey(SSL *s, const SSL_CIPHER *cipher,
2418 void ssl_update_cache(SSL *s, int mode)
2449 const SSL_METHOD *SSL_get_ssl_method(SSL *s)
2454 int SSL_set_ssl_method(SSL *s, const SSL_METHOD *meth)
2479 int SSL_get_error(const SSL *s, int i)
2561 int SSL_do_handshake(SSL *s)
2582 void SSL_set_accept_state(SSL *s)
2594 void SSL_set_connect_state(SSL *s)
2606 int ssl_undefined_function(SSL *s)
2619 int ssl_undefined_const_function(const SSL *s)
2632 const char *SSL_get_version(const SSL *s)
2648 SSL *SSL_dup(SSL *s)
2652 SSL *ret;
2770 void ssl_clear_cipher_ctx(SSL *s)
2795 X509 *SSL_get_certificate(const SSL *s)
2804 EVP_PKEY *SSL_get_privatekey(SSL *s)
2812 const SSL_CIPHER *SSL_get_current_cipher(const SSL *s)
2820 const void *SSL_get_current_compression(SSL *s)
2825 const void *SSL_get_current_expansion(SSL *s)
2831 const COMP_METHOD *SSL_get_current_compression(SSL *s)
2838 const COMP_METHOD *SSL_get_current_expansion(SSL *s)
2846 int ssl_init_wbio_buffer(SSL *s, int push)
2876 void ssl_free_wbio_buffer(SSL *s)
2903 void SSL_set_quiet_shutdown(SSL *s, int mode)
2908 int SSL_get_quiet_shutdown(const SSL *s)
2913 void SSL_set_shutdown(SSL *s, int mode)
2918 int SSL_get_shutdown(const SSL *s)
2923 int SSL_version(const SSL *s)
2928 SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl)
2933 SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx)
2994 void SSL_set_info_callback(SSL *ssl,
2995 void (*cb) (const SSL *ssl, int type, int val))
3004 void (*SSL_get_info_callback(const SSL *ssl)) (const SSL * /* ssl */ ,
3010 int SSL_state(const SSL *ssl)
3015 void SSL_set_state(SSL *ssl, int state)
3020 void SSL_set_verify_result(SSL *ssl, long arg)
3025 long SSL_get_verify_result(const SSL *ssl)
3037 int SSL_set_ex_data(SSL *s, int idx, void *arg)
3042 void *SSL_get_ex_data(const SSL *s, int idx)
3065 int ssl_ok(SSL *s)
3082 int SSL_want(const SSL *s)
3089 * \param ctx the SSL context.
3094 void SSL_CTX_set_tmp_rsa_callback(SSL_CTX *ctx, RSA *(*cb) (SSL *ssl,
3101 void SSL_set_tmp_rsa_callback(SSL *ssl, RSA *(*cb) (SSL *ssl,
3112 * \param ssl the SSL session.
3120 RSA *cb(SSL *ssl, int is_export, int keylength)
3127 * \param ctx the SSL context.
3133 DH *(*dh) (SSL *ssl, int is_export,
3139 void SSL_set_tmp_dh_callback(SSL *ssl, DH *(*dh) (SSL *ssl, int is_export,
3148 EC_KEY *(*ecdh) (SSL *ssl, int is_export,
3155 void SSL_set_tmp_ecdh_callback(SSL *ssl,
3156 EC_KEY *(*ecdh) (SSL *ssl, int is_export,
3182 int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint)
3205 const char *SSL_get_psk_identity_hint(const SSL *s)
3212 const char *SSL_get_psk_identity(const SSL *s)
3219 void SSL_set_psk_client_callback(SSL *s,
3220 unsigned int (*cb) (SSL *ssl,
3233 unsigned int (*cb) (SSL *ssl,
3245 void SSL_set_psk_server_callback(SSL *s,
3246 unsigned int (*cb) (SSL *ssl,
3256 unsigned int (*cb) (SSL *ssl,
3269 size_t len, SSL *ssl, void *arg))
3274 void SSL_set_msg_callback(SSL *ssl,
3277 size_t len, SSL *ssl, void *arg))
3309 void SSL_set_debug(SSL *s, int debug)
3314 int SSL_cache_hit(SSL *s)