Lines Matching refs:ssl

0 /* ssl/ssl.h */
421 * Look in ssl/ssl_asn1.c for more details
425 int ssl_version; /* what ssl version session info is being
598 # define SSL_set_options(ssl,op) \
599 SSL_ctrl((ssl),SSL_CTRL_OPTIONS,(op),NULL)
600 # define SSL_clear_options(ssl,op) \
601 SSL_ctrl((ssl),SSL_CTRL_CLEAR_OPTIONS,(op),NULL)
602 # define SSL_get_options(ssl) \
603 SSL_ctrl((ssl),SSL_CTRL_OPTIONS,0,NULL)
611 # define SSL_clear_mode(ssl,op) \
612 SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)
613 # define SSL_set_mode(ssl,op) \
614 SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
615 # define SSL_get_mode(ssl) \
616 SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
617 # define SSL_set_mtu(ssl, mtu) \
618 SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)
620 # define SSL_get_secure_renegotiation_support(ssl) \
621 SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)
626 size_t len, SSL *ssl, void *arg));
627 void SSL_set_msg_callback(SSL *ssl,
630 size_t len, SSL *ssl, void *arg));
632 # define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))
650 * this using the 'ssl' value they're passed by;
651 * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in
659 typedef int (*GEN_SESSION_CB) (const SSL *ssl, unsigned char *id,
709 int (*new_session_cb) (struct ssl_st *ssl, SSL_SESSION *sess);
711 SSL_SESSION *(*get_session_cb) (struct ssl_st *ssl,
748 int (*client_cert_cb) (SSL *ssl, X509 **x509, EVP_PKEY **pkey);
751 int (*app_gen_cookie_cb) (SSL *ssl, unsigned char *cookie,
755 int (*app_verify_cookie_cb) (SSL *ssl, unsigned char *cookie,
770 void (*info_callback) (const SSL *ssl, int type, int val);
789 const void *buf, size_t len, SSL *ssl, void *arg);
826 int (*tlsext_ticket_key_cb) (SSL *ssl,
833 int (*tlsext_status_cb) (SSL *ssl, void *arg);
877 int (*new_session_cb) (struct ssl_st *ssl,
879 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
890 *ssl,
894 SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
898 void (*cb) (const SSL *ssl, int type,
900 void (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,
903 int (*client_cert_cb) (SSL *ssl, X509 **x509,
905 int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,
911 int (*app_gen_cookie_cb) (SSL *ssl,
917 int (*app_verify_cookie_cb) (SSL *ssl,
1012 const void *buf, size_t len, SSL *ssl, void *arg);
1064 void (*info_callback) (const SSL *ssl, int type, int val);
1149 * The following are the possible values for ssl->state are are used to
1187 * The following 2 states are kept in ssl->rstate when reads fail, you should
1390 # define DTLSv1_get_timeout(ssl, arg) \
1391 SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)arg)
1392 # define DTLSv1_handle_timeout(ssl) \
1393 SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL)
1394 # define DTLSv1_listen(ssl, peer) \
1395 SSL_ctrl(ssl,DTLS_CTRL_LISTEN,0, (void *)peer)
1397 # define SSL_session_reused(ssl) \
1398 SSL_ctrl((ssl),SSL_CTRL_GET_SESSION_REUSED,0,NULL)
1399 # define SSL_num_renegotiations(ssl) \
1400 SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL)
1401 # define SSL_clear_num_renegotiations(ssl) \
1402 SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL)
1403 # define SSL_total_renegotiations(ssl) \
1404 SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL)
1415 # define SSL_need_tmp_RSA(ssl) \
1416 SSL_ctrl(ssl,SSL_CTRL_NEED_TMP_RSA,0,NULL)
1417 # define SSL_set_tmp_rsa(ssl,rsa) \
1418 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_RSA,0,(char *)rsa)
1419 # define SSL_set_tmp_dh(ssl,dh) \
1420 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)dh)
1421 # define SSL_set_tmp_ecdh(ssl,ecdh) \
1422 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
1480 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
1482 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len);
1483 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
1484 int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,
1486 int SSL_use_certificate(SSL *ssl, X509 *x);
1487 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
1490 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
1491 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
1492 int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
1540 int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
1583 int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,
1591 void SSL_free(SSL *ssl);
1592 int SSL_accept(SSL *ssl);
1593 int SSL_connect(SSL *ssl);
1594 int SSL_read(SSL *ssl, void *buf, int num);
1595 int SSL_peek(SSL *ssl, void *buf, int num);
1596 int SSL_write(SSL *ssl, const void *buf, int num);
1597 long SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);
1646 int SSL_add_client_CA(SSL *ssl, X509 *x);
1659 SSL *SSL_dup(SSL *ssl);
1661 X509 *SSL_get_certificate(const SSL *ssl);
1664 */ struct evp_pkey_st *SSL_get_privatekey(SSL *ssl);
1668 void SSL_set_quiet_shutdown(SSL *ssl, int mode);
1669 int SSL_get_quiet_shutdown(const SSL *ssl);
1670 void SSL_set_shutdown(SSL *ssl, int mode);
1671 int SSL_get_shutdown(const SSL *ssl);
1672 int SSL_version(const SSL *ssl);
1677 SSL_SESSION *SSL_get_session(const SSL *ssl);
1678 SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
1679 SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
1680 SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
1681 void SSL_set_info_callback(SSL *ssl,
1682 void (*cb) (const SSL *ssl, int type, int val));
1683 void (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,
1685 int SSL_state(const SSL *ssl);
1687 void SSL_set_verify_result(SSL *ssl, long v);
1688 long SSL_get_verify_result(const SSL *ssl);
1690 int SSL_set_ex_data(SSL *ssl, int idx, void *data);
1691 void *SSL_get_ex_data(const SSL *ssl, int idx);
1702 int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);
1703 void *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);
1729 # define SSL_get_max_cert_list(ssl) \
1730 SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)
1731 # define SSL_set_max_cert_list(ssl,m) \
1732 SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)
1737 RSA *(*cb) (SSL *ssl, int is_export,
1740 void SSL_set_tmp_rsa_callback(SSL *ssl,
1741 RSA *(*cb) (SSL *ssl, int is_export,
1746 DH *(*dh) (SSL *ssl, int is_export,
1748 void SSL_set_tmp_dh_callback(SSL *ssl,
1749 DH *(*dh) (SSL *ssl, int is_export,
1754 EC_KEY *(*ecdh) (SSL *ssl, int is_export,
1756 void SSL_set_tmp_ecdh_callback(SSL *ssl,
1757 EC_KEY *(*ecdh) (SSL *ssl, int is_export,