• Home
  • Raw
  • Download

Lines Matching refs:ssl

216 OPENSSL_EXPORT void SSL_free(SSL *ssl);
221 OPENSSL_EXPORT SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
224 OPENSSL_EXPORT void SSL_set_connect_state(SSL *ssl);
227 OPENSSL_EXPORT void SSL_set_accept_state(SSL *ssl);
231 OPENSSL_EXPORT int SSL_is_server(SSL *ssl);
241 OPENSSL_EXPORT void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
244 OPENSSL_EXPORT BIO *SSL_get_rbio(const SSL *ssl);
247 OPENSSL_EXPORT BIO *SSL_get_wbio(const SSL *ssl);
250 OPENSSL_EXPORT int SSL_get_fd(const SSL *ssl);
255 OPENSSL_EXPORT int SSL_get_rfd(const SSL *ssl);
260 OPENSSL_EXPORT int SSL_get_wfd(const SSL *ssl);
265 OPENSSL_EXPORT int SSL_set_fd(SSL *ssl, int fd);
269 OPENSSL_EXPORT int SSL_set_rfd(SSL *ssl, int fd);
273 OPENSSL_EXPORT int SSL_set_wfd(SSL *ssl, int fd);
289 OPENSSL_EXPORT int SSL_do_handshake(SSL *ssl);
293 OPENSSL_EXPORT int SSL_connect(SSL *ssl);
297 OPENSSL_EXPORT int SSL_accept(SSL *ssl);
306 OPENSSL_EXPORT int SSL_read(SSL *ssl, void *buf, int num);
309 OPENSSL_EXPORT int SSL_peek(SSL *ssl, void *buf, int num);
313 OPENSSL_EXPORT int SSL_pending(const SSL *ssl);
341 OPENSSL_EXPORT int SSL_write(SSL *ssl, const void *buf, int num);
364 OPENSSL_EXPORT int SSL_shutdown(SSL *ssl);
378 OPENSSL_EXPORT void SSL_set_quiet_shutdown(SSL *ssl, int mode);
382 OPENSSL_EXPORT int SSL_get_quiet_shutdown(const SSL *ssl);
387 OPENSSL_EXPORT int SSL_get_error(const SSL *ssl, int ret_code);
473 OPENSSL_EXPORT int SSL_set_mtu(SSL *ssl, unsigned mtu);
484 OPENSSL_EXPORT int DTLSv1_get_timeout(const SSL *ssl, struct timeval *out);
503 OPENSSL_EXPORT int DTLSv1_handle_timeout(SSL *ssl);
529 OPENSSL_EXPORT void SSL_set_min_version(SSL *ssl, uint16_t version);
533 OPENSSL_EXPORT void SSL_set_max_version(SSL *ssl, uint16_t version);
538 OPENSSL_EXPORT int SSL_version(const SSL *ssl);
579 OPENSSL_EXPORT uint32_t SSL_set_options(SSL *ssl, uint32_t options);
584 OPENSSL_EXPORT uint32_t SSL_clear_options(SSL *ssl, uint32_t options);
588 OPENSSL_EXPORT uint32_t SSL_get_options(const SSL *ssl);
660 OPENSSL_EXPORT uint32_t SSL_set_mode(SSL *ssl, uint32_t mode);
665 OPENSSL_EXPORT uint32_t SSL_clear_mode(SSL *ssl, uint32_t mode);
669 OPENSSL_EXPORT uint32_t SSL_get_mode(const SSL *ssl);
688 OPENSSL_EXPORT int SSL_use_certificate(SSL *ssl, X509 *x509);
696 OPENSSL_EXPORT int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
711 OPENSSL_EXPORT int SSL_set0_chain(SSL *ssl, STACK_OF(X509) *chain);
716 OPENSSL_EXPORT int SSL_set1_chain(SSL *ssl, STACK_OF(X509) *chain);
730 OPENSSL_EXPORT int SSL_add0_chain_cert(SSL *ssl, X509 *x509);
738 OPENSSL_EXPORT int SSL_add1_chain_cert(SSL *ssl, X509 *x509);
748 OPENSSL_EXPORT int SSL_clear_chain_certs(SSL *ssl);
759 int (*cb)(SSL *ssl, void *arg),
770 OPENSSL_EXPORT void SSL_set_cert_cb(SSL *ssl, int (*cb)(SSL *ssl, void *arg),
780 OPENSSL_EXPORT size_t SSL_get0_certificate_types(SSL *ssl,
785 OPENSSL_EXPORT void SSL_certs_clear(SSL *ssl);
793 OPENSSL_EXPORT int SSL_check_private_key(const SSL *ssl);
799 OPENSSL_EXPORT X509 *SSL_get_certificate(const SSL *ssl);
805 OPENSSL_EXPORT EVP_PKEY *SSL_get_privatekey(const SSL *ssl);
818 OPENSSL_EXPORT int SSL_get0_chain_certs(const SSL *ssl,
844 OPENSSL_EXPORT int SSL_set_private_key_digest_prefs(SSL *ssl,
857 OPENSSL_EXPORT int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
865 OPENSSL_EXPORT int SSL_use_certificate_ASN1(SSL *ssl, const uint8_t *der,
871 OPENSSL_EXPORT int SSL_use_PrivateKey_ASN1(int type, SSL *ssl,
877 OPENSSL_EXPORT int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const uint8_t *der,
891 OPENSSL_EXPORT int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file,
896 OPENSSL_EXPORT int SSL_use_certificate_file(SSL *ssl, const char *file,
901 OPENSSL_EXPORT int SSL_use_PrivateKey_file(SSL *ssl, const char *file,
935 int (*type)(SSL *ssl);
939 size_t (*max_signature_len)(SSL *ssl);
955 enum ssl_private_key_result_t (*sign)(SSL *ssl, uint8_t *out, size_t *out_len,
967 enum ssl_private_key_result_t (*sign_complete)(SSL *ssl, uint8_t *out,
983 enum ssl_private_key_result_t (*decrypt)(SSL *ssl, uint8_t *out,
996 enum ssl_private_key_result_t (*decrypt_complete)(SSL *ssl, uint8_t *out,
1004 SSL *ssl, const SSL_PRIVATE_KEY_METHOD *key_method);
1207 OPENSSL_EXPORT int SSL_set_cipher_list(SSL *ssl, const char *str);
1212 OPENSSL_EXPORT STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl);
1219 OPENSSL_EXPORT int SSL_is_init_finished(const SSL *ssl);
1223 OPENSSL_EXPORT int SSL_in_init(const SSL *ssl);
1231 OPENSSL_EXPORT int SSL_in_false_start(const SSL *ssl);
1236 OPENSSL_EXPORT X509 *SSL_get_peer_certificate(const SSL *ssl);
1248 OPENSSL_EXPORT STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *ssl);
1258 OPENSSL_EXPORT void SSL_get0_signed_cert_timestamp_list(const SSL *ssl,
1267 OPENSSL_EXPORT void SSL_get0_ocsp_response(const SSL *ssl, const uint8_t **out,
1287 OPENSSL_EXPORT int SSL_get_tls_unique(const SSL *ssl, uint8_t *out,
1292 OPENSSL_EXPORT int SSL_get_extms_support(const SSL *ssl);
1296 OPENSSL_EXPORT const SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
1303 OPENSSL_EXPORT int SSL_session_reused(const SSL *ssl);
1307 OPENSSL_EXPORT int SSL_get_secure_renegotiation_support(const SSL *ssl);
1316 SSL *ssl, uint8_t *out, size_t out_len, const char *label, size_t label_len,
1342 typedef int (*SSL_custom_ext_add_cb)(SSL *ssl, unsigned extension_value,
1351 typedef void (*SSL_custom_ext_free_cb)(SSL *ssl, unsigned extension_value,
1364 typedef int (*SSL_custom_ext_parse_cb)(SSL *ssl, unsigned extension_value,
1558 OPENSSL_EXPORT int SSL_set_session(SSL *ssl, SSL_SESSION *session);
1564 OPENSSL_EXPORT SSL_SESSION *SSL_get_session(const SSL *ssl);
1571 OPENSSL_EXPORT SSL_SESSION *SSL_get1_session(SSL *ssl);
1603 OPENSSL_EXPORT int SSL_set_session_id_context(SSL *ssl, const uint8_t *sid_ctx,
1658 SSL_CTX *ctx, int (*new_session_cb)(SSL *ssl, SSL_SESSION *session));
1663 SSL *ssl, SSL_SESSION *session);
1703 SSL_SESSION *(*get_session_cb)(SSL *ssl, uint8_t *id, int id_len,
1709 SSL *ssl, uint8_t *id, int id_len, int *out_copy);
1772 SSL_CTX *ctx, int (*callback)(SSL *ssl, uint8_t *key_name, uint8_t *iv,
1796 OPENSSL_EXPORT int SSL_set1_curves(SSL *ssl, const int *curves,
1822 OPENSSL_EXPORT int SSL_set_tmp_dh(SSL *ssl, const DH *dh);
1832 SSL_CTX *ctx, DH *(*callback)(SSL *ssl, int is_export, int keylength));
1841 OPENSSL_EXPORT void SSL_set_tmp_dh_callback(SSL *ssl,
1842 DH *(*dh)(SSL *ssl, int is_export,
1908 OPENSSL_EXPORT void SSL_set_verify(SSL *ssl, int mode,
1918 OPENSSL_EXPORT int SSL_get_verify_mode(const SSL *ssl);
1927 OPENSSL_EXPORT int (*SSL_get_verify_callback(const SSL *ssl))(
1938 OPENSSL_EXPORT void SSL_set_verify_depth(SSL *ssl, int depth);
1946 OPENSSL_EXPORT int SSL_get_verify_depth(const SSL *ssl);
1955 OPENSSL_EXPORT int SSL_set1_param(SSL *ssl,
1966 OPENSSL_EXPORT X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
1974 OPENSSL_EXPORT int SSL_set_purpose(SSL *ssl, int purpose);
1982 OPENSSL_EXPORT int SSL_set_trust(SSL *ssl, int trust);
2013 OPENSSL_EXPORT long SSL_get_verify_result(const SSL *ssl);
2016 OPENSSL_EXPORT void SSL_set_verify_result(SSL *ssl, long result);
2041 OPENSSL_EXPORT int SSL_enable_signed_cert_timestamps(SSL *ssl);
2056 OPENSSL_EXPORT int SSL_enable_ocsp_stapling(SSL *ssl);
2074 OPENSSL_EXPORT void SSL_set_client_CA_list(SSL *ssl,
2090 OPENSSL_EXPORT STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *ssl);
2099 OPENSSL_EXPORT int SSL_add_client_CA(SSL *ssl, X509 *x509);
2139 OPENSSL_EXPORT int SSL_set_tlsext_host_name(SSL *ssl, const char *name);
2144 OPENSSL_EXPORT const char *SSL_get_servername(const SSL *ssl, const int type);
2148 OPENSSL_EXPORT int SSL_get_servername_type(const SSL *ssl);
2161 SSL_CTX *ctx, int (*callback)(SSL *ssl, int *out_alert, void *arg));
2197 OPENSSL_EXPORT int SSL_set_alpn_protos(SSL *ssl, const uint8_t *protos,
2212 SSL_CTX *ctx, int (*cb)(SSL *ssl, const uint8_t **out, uint8_t *out_len,
2220 OPENSSL_EXPORT void SSL_get0_alpn_selected(const SSL *ssl,
2241 int (*cb)(SSL *ssl, const uint8_t **out, unsigned *out_len, void *arg),
2256 SSL_CTX *ctx, int (*cb)(SSL *ssl, uint8_t **out, uint8_t *out_len,
2267 OPENSSL_EXPORT void SSL_get0_next_proto_negotiated(const SSL *ssl,
2322 OPENSSL_EXPORT int SSL_enable_tls_channel_id(SSL *ssl);
2333 OPENSSL_EXPORT int SSL_set1_tls_channel_id(SSL *ssl, EVP_PKEY *private_key);
2340 OPENSSL_EXPORT size_t SSL_get_tls_channel_id(SSL *ssl, uint8_t *out,
2350 SSL_CTX *ctx, void (*channel_id_cb)(SSL *ssl, EVP_PKEY **out_pkey));
2355 SSL *ssl, EVP_PKEY **out_pkey);
2390 OPENSSL_EXPORT int SSL_set_srtp_profiles(SSL *ssl, const char *profiles);
2394 SSL *ssl);
2399 SSL *ssl);
2433 SSL *ssl, const char *hint, char *identity,
2440 SSL *ssl, unsigned (*psk_client_callback)(SSL *ssl, const char *hint,
2455 unsigned (*psk_server_callback)(SSL *ssl, const char *identity,
2463 SSL *ssl,
2464 unsigned (*psk_server_callback)(SSL *ssl, const char *identity,
2477 OPENSSL_EXPORT int SSL_use_psk_identity_hint(SSL *ssl,
2482 OPENSSL_EXPORT const char *SSL_get_psk_identity_hint(const SSL *ssl);
2486 OPENSSL_EXPORT const char *SSL_get_psk_identity(const SSL *ssl);
2553 OPENSSL_EXPORT int SSL_set_ex_data(SSL *ssl, int idx, void *data);
2554 OPENSSL_EXPORT void *SSL_get_ex_data(const SSL *ssl, int idx);
2582 OPENSSL_EXPORT int SSL_get_rc4_state(const SSL *ssl, const RC4_KEY **read_key,
2591 OPENSSL_EXPORT int SSL_get_ivs(const SSL *ssl, const uint8_t **out_read_iv,
2618 const void *buf, size_t len, SSL *ssl, void *arg));
2627 SSL *ssl, void (*cb)(int write_p, int version, int content_type,
2628 const void *buf, size_t len, SSL *ssl, void *arg));
2631 OPENSSL_EXPORT void SSL_set_msg_callback_arg(SSL *ssl, void *arg);
2641 SSL_CTX *ctx, void (*cb)(const SSL *ssl, const char *line));
2663 OPENSSL_EXPORT void SSL_set_renegotiate_mode(SSL *ssl,
2668 OPENSSL_EXPORT int SSL_renegotiate_pending(SSL *ssl);
2672 OPENSSL_EXPORT int SSL_total_renegotiations(const SSL *ssl);
2690 OPENSSL_EXPORT size_t SSL_get_max_cert_list(const SSL *ssl);
2695 OPENSSL_EXPORT void SSL_set_max_cert_list(SSL *ssl, size_t max_cert_list);
2706 OPENSSL_EXPORT void SSL_set_max_send_fragment(SSL *ssl,
2713 SSL *ssl; member
2814 SSL_CTX *ctx, void (*cb)(const SSL *ssl, int type, int value));
2818 OPENSSL_EXPORT void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,
2825 SSL *ssl, void (*cb)(const SSL *ssl, int type, int value));
2828 OPENSSL_EXPORT void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl,
2834 OPENSSL_EXPORT const char *SSL_state_string_long(const SSL *ssl);
2848 OPENSSL_EXPORT SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
2856 OPENSSL_EXPORT int SSL_get_shutdown(const SSL *ssl);
2861 OPENSSL_EXPORT uint8_t SSL_get_server_key_exchange_hash(const SSL *ssl);
2872 OPENSSL_EXPORT void SSL_set_reject_peer_renegotiations(SSL *ssl, int reject);
2936 OPENSSL_EXPORT int SSL_clear(SSL *ssl);
2940 SSL_CTX *ctx, RSA *(*cb)(SSL *ssl, int is_export, int keylength));
2943 OPENSSL_EXPORT void SSL_set_tmp_rsa_callback(SSL *ssl,
2944 RSA *(*cb)(SSL *ssl, int is_export,
2984 OPENSSL_EXPORT int SSL_num_renegotiations(const SSL *ssl);
2990 OPENSSL_EXPORT int SSL_need_tmp_RSA(const SSL *ssl);
2996 OPENSSL_EXPORT int SSL_set_tmp_rsa(SSL *ssl, const RSA *rsa);
3011 OPENSSL_EXPORT int SSL_renegotiate(SSL *ssl);
3014 OPENSSL_EXPORT void SSL_set_state(SSL *ssl, int state);
3066 OPENSSL_EXPORT int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles);
3086 #define SSL_get_cipher(ssl) SSL_CIPHER_get_name(SSL_get_current_cipher(ssl)) argument
3087 #define SSL_get_cipher_bits(ssl, out_alg_bits) \ argument
3088 SSL_CIPHER_get_bits(SSL_get_current_cipher(ssl), out_alg_bits)
3089 #define SSL_get_cipher_version(ssl) \ argument
3090 SSL_CIPHER_get_version(SSL_get_current_cipher(ssl))
3091 #define SSL_get_cipher_name(ssl) \ argument
3092 SSL_CIPHER_get_name(SSL_get_current_cipher(ssl))
3151 OPENSSL_EXPORT int SSL_cache_hit(SSL *ssl);
3154 OPENSSL_EXPORT long SSL_get_default_timeout(const SSL *ssl);
3158 OPENSSL_EXPORT const char *SSL_get_version(const SSL *ssl);
3162 OPENSSL_EXPORT const char *SSL_get_cipher_list(const SSL *ssl, int n);
3179 int (*client_cert_cb)(SSL *ssl, X509 **out_x509, EVP_PKEY **out_pkey));
3184 SSL *ssl, X509 **out_x509, EVP_PKEY **out_pkey);
3197 OPENSSL_EXPORT int SSL_want(const SSL *ssl);
3199 #define SSL_want_nothing(ssl) (SSL_want(ssl) == SSL_NOTHING) argument
3200 #define SSL_want_read(ssl) (SSL_want(ssl) == SSL_READING) argument
3201 #define SSL_want_write(ssl) (SSL_want(ssl) == SSL_WRITING) argument
3202 #define SSL_want_x509_lookup(ssl) (SSL_want(ssl) == SSL_X509_LOOKUP) argument
3203 #define SSL_want_channel_id_lookup(ssl) (SSL_want(ssl) == SSL_CHANNEL_ID_LOOKUP) argument
3204 #define SSL_want_session(ssl) (SSL_want(ssl) == SSL_PENDING_SESSION) argument
3205 #define SSL_want_certificate(ssl) \ argument
3206 (SSL_want(ssl) == SSL_CERTIFICATE_SELECTION_PENDING)
3207 #define SSL_want_private_key_operation(ssl) \ argument
3208 (SSL_want(ssl) == SSL_PRIVATE_KEY_OPERATION)
3215 OPENSSL_EXPORT size_t SSL_get_finished(const SSL *ssl, void *buf, size_t count);
3222 OPENSSL_EXPORT size_t SSL_get_peer_finished(const SSL *ssl, void *buf,
3277 OPENSSL_EXPORT int SSL_state(const SSL *ssl);
3279 #define SSL_get_state(ssl) SSL_state(ssl) argument
3284 OPENSSL_EXPORT const char *SSL_state_string(const SSL *ssl);
3296 OPENSSL_EXPORT void SSL_set_shutdown(SSL *ssl, int mode);
3304 OPENSSL_EXPORT int SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ec_key);
3529 int (*new_session_cb)(SSL *ssl, SSL_SESSION *sess);
3531 SSL_SESSION *(*get_session_cb)(SSL *ssl, uint8_t *data, int len,
3547 int (*client_cert_cb)(SSL *ssl, X509 **out_x509, EVP_PKEY **out_pkey);
3550 void (*channel_id_cb)(SSL *ssl, EVP_PKEY **out_pkey);
3561 void (*info_callback)(const SSL *ssl, int type, int value);
3578 const void *buf, size_t len, SSL *ssl, void *arg);
3614 int (*tlsext_ticket_key_cb)(SSL *ssl, uint8_t *name, uint8_t *iv,
3621 unsigned int (*psk_client_callback)(SSL *ssl, const char *hint,
3625 unsigned int (*psk_server_callback)(SSL *ssl, const char *identity,
3639 int (*next_protos_advertised_cb)(SSL *ssl, const uint8_t **out,
3644 int (*next_proto_select_cb)(SSL *ssl, uint8_t **out, uint8_t *out_len,
3688 void (*keylog_callback)(const SSL *ssl, const char *line);
3692 void (*current_time_cb)(const SSL *ssl, struct timeval *out_clock);
3769 const void *buf, size_t len, SSL *ssl, void *arg);
3803 void (*info_callback)(const SSL *ssl, int type, int value);
3809 unsigned int (*psk_client_callback)(SSL *ssl, const char *hint,
3813 unsigned int (*psk_server_callback)(SSL *ssl, const char *identity,