• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenSSL098-52/src/ssl/

Lines Matching refs:SSL

5  * This package is an SSL implementation written
7 * The implementation was written so as to conform with Netscapes SSL.
12 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
369 int (*ssl_new)(SSL *s);
370 void (*ssl_clear)(SSL *s);
371 void (*ssl_free)(SSL *s);
372 int (*ssl_accept)(SSL *s);
373 int (*ssl_connect)(SSL *s);
374 int (*ssl_read)(SSL *s,void *buf,int len);
375 int (*ssl_peek)(SSL *s,void *buf,int len);
376 int (*ssl_write)(SSL *s,const void *buf,int len);
377 int (*ssl_shutdown)(SSL *s);
378 int (*ssl_renegotiate)(SSL *s);
379 int (*ssl_renegotiate_check)(SSL *s);
380 long (*ssl_get_message)(SSL *s, int st1, int stn, int mt, long
382 int (*ssl_read_bytes)(SSL *s, int type, unsigned char *buf, int len,
384 int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len);
385 int (*ssl_dispatch_alert)(SSL *s);
386 long (*ssl_ctrl)(SSL *s,int cmd,long larg,void *parg);
390 int (*ssl_pending)(const SSL *s);
397 long (*ssl_callback_ctrl)(SSL *s, int cb_id, void (*fp)(void));
404 * SSLversion INTEGER, -- SSL version number
501 /* Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added
503 * the workaround is not needed. Unfortunately some broken SSL/TLS
568 /* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value,
602 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));
603 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));
617 /* This callback type is used inside SSL_CTX, SSL, and in the functions that set
618 * them. It is used to override the generation of SSL/TLS session IDs in a
621 * the SSL handshake will fail with an error - callbacks can do this using the
630 typedef int (*GEN_SESSION_CB)(const SSL *ssl, unsigned char *id,
689 int sess_connect; /* SSL new conn - started */
690 int sess_connect_renegotiate;/* SSL reneg - requested */
691 int sess_connect_good; /* SSL new conne/reneg - finished */
692 int sess_accept; /* SSL new accept - started */
693 int sess_accept_renegotiate;/* SSL reneg - requested */
694 int sess_accept_good; /* SSL accept/reneg - finished */
722 int (*client_cert_cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
725 int (*app_gen_cookie_cb)(SSL *ssl, unsigned char *cookie,
729 int (*app_verify_cookie_cb)(SSL *ssl, unsigned char *cookie,
742 /* Default values used when no per-SSL value is defined follow */
744 void (*info_callback)(const SSL *ssl,int type,int val); /* used if SSL's info_callback is NULL */
750 /* Default values to use in SSL structures follow (these are copied by SSL_new) */
760 void (*msg_callback)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg);
766 int (*default_verify_callback)(int ok,X509_STORE_CTX *ctx); /* called 'verify_callback' in the SSL */
788 int (*tlsext_servername_callback)(SSL*, int *, void *);
795 int (*tlsext_ticket_key_cb)(SSL *ssl,
802 int (*tlsext_status_cb)(SSL *ssl, void *arg);
851 void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*cb)(const SSL *ssl,int type,int val));
852 void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,int type,int val);
853 void SSL_CTX_set_client_cert_cb(SSL_CTX *ctx, int (*client_cert_cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey));
854 int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx))(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
858 void SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx, int (*app_gen_cookie_cb)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len));
859 void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx, int (*app_verify_cookie_cb)(SSL *ssl, unsigned char *cookie, unsigned int cookie_len));
904 int (*handshake_func)(SSL *);
945 void (*msg_callback)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg);
1002 void (*info_callback)(const SSL *ssl,int type,int val); /* optional informational callback */
1032 void (*tlsext_debug_cb)(SSL *s, int client_server, int type,
1086 * used to indicate where we are up to in the SSL connection establishment.
1132 size_t SSL_get_finished(const SSL *s, void *buf, size_t count);
1133 size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);
1355 int SSL_want(const SSL *s);
1356 int SSL_clear(SSL *s);
1360 SSL_CIPHER *SSL_get_current_cipher(const SSL *s);
1365 int SSL_get_fd(const SSL *s);
1366 int SSL_get_rfd(const SSL *s);
1367 int SSL_get_wfd(const SSL *s);
1368 const char * SSL_get_cipher_list(const SSL *s,int n);
1369 char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
1370 int SSL_get_read_ahead(const SSL * s);
1371 int SSL_pending(const SSL *s);
1373 int SSL_set_fd(SSL *s, int fd);
1374 int SSL_set_rfd(SSL *s, int fd);
1375 int SSL_set_wfd(SSL *s, int fd);
1378 void SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio);
1379 BIO * SSL_get_rbio(const SSL *s);
1380 BIO * SSL_get_wbio(const SSL *s);
1382 int SSL_set_cipher_list(SSL *s, const char *str);
1383 void SSL_set_read_ahead(SSL *s, int yes);
1384 int SSL_get_verify_mode(const SSL *s);
1385 int SSL_get_verify_depth(const SSL *s);
1386 int (*SSL_get_verify_callback(const SSL *s))(int,X509_STORE_CTX *);
1387 void SSL_set_verify(SSL *s, int mode,
1389 void SSL_set_verify_depth(SSL *s, int depth);
1391 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
1393 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len);
1394 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
1395 int SSL_use_PrivateKey_ASN1(int pk,SSL *ssl, const unsigned char *d, long len);
1396 int SSL_use_certificate(SSL *ssl, X509 *x);
1397 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
1400 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
1401 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
1402 int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
1420 const char *SSL_state_string(const SSL *s);
1421 const char *SSL_rstate_string(const SSL *s);
1422 const char *SSL_state_string_long(const SSL *s);
1423 const char *SSL_rstate_string_long(const SSL *s);
1428 void SSL_copy_session_id(SSL *to,const SSL *from);
1442 int SSL_set_session(SSL *to, SSL_SESSION *session);
1446 int SSL_set_generate_session_id(SSL *, GEN_SESSION_CB);
1447 int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
1453 X509 * SSL_get_peer_certificate(const SSL *s);
1456 STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);
1479 int SSL_check_private_key(const SSL *ctx);
1484 SSL * SSL_new(SSL_CTX *ctx);
1485 int SSL_set_session_id_context(SSL *ssl,const unsigned char *sid_ctx,
1489 int SSL_set_purpose(SSL *s, int purpose);
1491 int SSL_set_trust(SSL *s, int trust);
1493 void SSL_free(SSL *ssl);
1494 int SSL_accept(SSL *ssl);
1495 int SSL_connect(SSL *ssl);
1496 int SSL_read(SSL *ssl,void *buf,int num);
1497 int SSL_peek(SSL *ssl,void *buf,int num);
1498 int SSL_write(SSL *ssl,const void *buf,int num);
1499 long SSL_ctrl(SSL *ssl,int cmd, long larg, void *parg);
1500 long SSL_callback_ctrl(SSL *, int, void (*)(void));
1504 int SSL_get_error(const SSL *s,int ret_code);
1505 const char *SSL_get_version(const SSL *s);
1507 /* This sets the 'default' SSL version that SSL_new() will create */
1530 STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);
1532 int SSL_do_handshake(SSL *s);
1533 int SSL_renegotiate(SSL *s);
1534 int SSL_renegotiate_pending(SSL *s);
1535 int SSL_shutdown(SSL *s);
1537 SSL_METHOD *SSL_get_ssl_method(SSL *s);
1538 int SSL_set_ssl_method(SSL *s,SSL_METHOD *method);
1544 void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
1546 STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);
1548 int SSL_add_client_CA(SSL *ssl,X509 *x);
1551 void SSL_set_connect_state(SSL *s);
1552 void SSL_set_accept_state(SSL *s);
1554 long SSL_get_default_timeout(const SSL *s);
1561 SSL *SSL_dup(SSL *ssl);
1563 X509 *SSL_get_certificate(const SSL *ssl);
1564 /* EVP_PKEY */ struct evp_pkey_st *SSL_get_privatekey(SSL *ssl);
1568 void SSL_set_quiet_shutdown(SSL *ssl,int mode);
1569 int SSL_get_quiet_shutdown(const SSL *ssl);
1570 void SSL_set_shutdown(SSL *ssl,int mode);
1571 int SSL_get_shutdown(const SSL *ssl);
1572 int SSL_version(const SSL *ssl);
1577 SSL_SESSION *SSL_get_session(const SSL *ssl);
1578 SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
1579 SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
1580 SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx);
1581 void SSL_set_info_callback(SSL *ssl,
1582 void (*cb)(const SSL *ssl,int type,int val));
1583 void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl,int type,int val);
1584 int SSL_state(const SSL *ssl);
1586 void SSL_set_verify_result(SSL *ssl,long v);
1587 long SSL_get_verify_result(const SSL *ssl);
1589 int SSL_set_ex_data(SSL *ssl,int idx,void *data);
1590 void *SSL_get_ex_data(const SSL *ssl,int idx);
1633 RSA *(*cb)(SSL *ssl,int is_export,
1636 void SSL_set_tmp_rsa_callback(SSL *ssl,
1637 RSA *(*cb)(SSL *ssl,int is_export,
1642 DH *(*dh)(SSL *ssl,int is_export,
1644 void SSL_set_tmp_dh_callback(SSL *ssl,
1645 DH *(*dh)(SSL *ssl,int is_export,
1650 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
1652 void SSL_set_tmp_ecdh_callback(SSL *ssl,
1653 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
1658 const COMP_METHOD *SSL_get_current_compression(SSL *s);
1659 const COMP_METHOD *SSL_get_current_expansion(SSL *s);
1664 const void *SSL_get_current_compression(SSL *s);
1665 const void *SSL_get_current_expansion(SSL *s);
1677 /* Error codes for the SSL functions. */