Commit fcc47578 authored by Matt Caswell's avatar Matt Caswell
Browse files

Add a SSL_SESSION_get_max_early_data() function

parent 7daf7156
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1438,6 +1438,7 @@ __owur int SSL_SESSION_has_ticket(const SSL_SESSION *s);
__owur unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);
void SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,
                            size_t *len);
__owur uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);
__owur int SSL_copy_session_id(SSL *to, const SSL *from);
__owur X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);
__owur int SSL_SESSION_set1_id_context(SSL_SESSION *s, const unsigned char *sid_ctx,
+5 −0
Original line number Diff line number Diff line
@@ -902,6 +902,11 @@ void SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,
        *tick = s->ext.tick;
}

uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s)
{
    return s->ext.max_early_data;
}

X509 *SSL_SESSION_get0_peer(SSL_SESSION *s)
{
    return s->peer;
+1 −0
Original line number Diff line number Diff line
@@ -432,3 +432,4 @@ SSL_write_early 432 1_1_1 EXIST::FUNCTION:
SSL_write_early_finish                  433	1_1_1	EXIST::FUNCTION:
SSL_read_early                          434	1_1_1	EXIST::FUNCTION:
SSL_get_early_data_status               435	1_1_1	EXIST::FUNCTION:
SSL_SESSION_get_max_early_data          436	1_1_1	EXIST::FUNCTION: