Home | History | Annotate | Download | only in openssl

Lines Matching refs:SSL_SESSION

771 // |X509| and |SSL_SESSION| objects. Basically, don't ever free |pool|.
1624 // An |SSL_SESSION| represents an SSL session that may be resumed in an
1626 // established, an |SSL_SESSION| may be shared by multiple |SSL| objects on
1629 DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
1631 // SSL_SESSION_new returns a newly-allocated blank |SSL_SESSION| or NULL on
1634 OPENSSL_EXPORT SSL_SESSION *SSL_SESSION_new(const SSL_CTX *ctx);
1638 OPENSSL_EXPORT int SSL_SESSION_up_ref(SSL_SESSION *session);
1642 OPENSSL_EXPORT void SSL_SESSION_free(SSL_SESSION *session);
1648 OPENSSL_EXPORT int SSL_SESSION_to_bytes(const SSL_SESSION *in,
1653 OPENSSL_EXPORT int SSL_SESSION_to_bytes_for_ticket(const SSL_SESSION *in,
1657 // SSL_SESSION_from_bytes parses |in_len| bytes from |in| as an SSL_SESSION. It
1658 // returns a newly-allocated |SSL_SESSION| on success or NULL on error.
1659 OPENSSL_EXPORT SSL_SESSION *SSL_SESSION_from_bytes(
1664 OPENSSL_EXPORT const char *SSL_SESSION_get_version(const SSL_SESSION *session);
1669 SSL_SESSION_get_protocol_version(const SSL_SESSION *session);
1674 OPENSSL_EXPORT int SSL_SESSION_set_protocol_version(SSL_SESSION *session,
1679 OPENSSL_EXPORT const uint8_t *SSL_SESSION_get_id(const SSL_SESSION *session,
1684 OPENSSL_EXPORT uint64_t SSL_SESSION_get_time(const SSL_SESSION *session);
1687 OPENSSL_EXPORT uint32_t SSL_SESSION_get_timeout(const SSL_SESSION *session);
1693 OPENSSL_EXPORT X509 *SSL_SESSION_get0_peer(const SSL_SESSION *session);
1698 OPENSSL_EXPORT size_t SSL_SESSION_get_master_key(const SSL_SESSION *session,
1704 OPENSSL_EXPORT uint64_t SSL_SESSION_set_time(SSL_SESSION *session,
1710 OPENSSL_EXPORT uint32_t SSL_SESSION_set_timeout(SSL_SESSION *session,
1717 OPENSSL_EXPORT int SSL_SESSION_set1_id_context(SSL_SESSION *session,
1728 OPENSSL_EXPORT int SSL_SESSION_should_be_single_use(const SSL_SESSION *session);
1732 OPENSSL_EXPORT int SSL_SESSION_is_resumable(const SSL_SESSION *session);
1736 OPENSSL_EXPORT int SSL_SESSION_has_ticket(const SSL_SESSION *session);
1741 OPENSSL_EXPORT void SSL_SESSION_get0_ticket(const SSL_SESSION *session,
1748 SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *session);
1755 // |SSL_SESSION|). The client offers a saved session, using an opaque identifier
1836 OPENSSL_EXPORT int SSL_set_session(SSL *ssl, SSL_SESSION *session);
1908 OPENSSL_EXPORT int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);
1912 OPENSSL_EXPORT int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);
1937 SSL_CTX *ctx, int (*new_session_cb)(SSL *ssl, SSL_SESSION *session));
1942 SSL *ssl, SSL_SESSION *session);
1951 void (*remove_session_cb)(SSL_CTX *ctx, SSL_SESSION *session));
1956 SSL_CTX *ctx, SSL_SESSION *session);
1960 // |SSL_SESSION| or NULL if not found. It should set |*out_copy| to zero and
1965 // library will take a new reference to the returned |SSL_SESSION|, expecting
1978 SSL_CTX *ctx, SSL_SESSION *(*get_session_cb)(SSL *ssl, const uint8_t *id,
1983 OPENSSL_EXPORT SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(
1986 // SSL_magic_pending_session_ptr returns a magic |SSL_SESSION|* which indicates
1990 OPENSSL_EXPORT SSL_SESSION *SSL_magic_pending_session_ptr(void);
3160 OPENSSL_EXPORT int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx,
3162 OPENSSL_EXPORT void *SSL_SESSION_get_ex_data(const SSL_SESSION *session,
3212 // SSL_SESSION structures so that a test can ensure that outside code agrees on
3535 // completes. See the |peer_sha256| field of |SSL_SESSION| for the hash.
3543 // completes. See the |peer_sha256| field of |SSL_SESSION| for the hash.
3746 OPENSSL_EXPORT int i2d_SSL_SESSION(SSL_SESSION *in, uint8_t **pp);
3749 // to by |*pp|. It returns the new |SSL_SESSION| and advances |*pp| by the
3753 // If |a| is non-NULL, |*a| is released and set the new |SSL_SESSION|.
3756 OPENSSL_EXPORT SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const uint8_t **pp,
3761 OPENSSL_EXPORT int i2d_SSL_SESSION_bio(BIO *bio, const SSL_SESSION *session);
3763 // d2i_SSL_SESSION_bio reads a serialized |SSL_SESSION| from |bio| and returns a
3764 // newly-allocated |SSL_SESSION| or NULL on error. If |out| is not NULL, it also
3765 // frees |*out| and sets |*out| to the new |SSL_SESSION|.
3766 OPENSSL_EXPORT SSL_SESSION *d2i_SSL_SESSION_bio(BIO *bio, SSL_SESSION **out);
4084 OPENSSL_EXPORT SSL_SESSION *SSL_get_session(const SSL *ssl);
4091 OPENSSL_EXPORT SSL_SESSION *SSL_get1_session(SSL *ssl);
4107 SSL_CTX *ctx, SSL_SESSION *(*get_session_cb)(SSL *ssl, uint8_t *id,
4117 // TODO(davidben): Remove this forward declaration when |SSL_SESSION| is opaque.
4195 SSL_SESSION *prev, *next;
4401 BORINGSSL_MAKE_DELETER(SSL_SESSION, SSL_SESSION_free)