diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-01 17:30:46 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-01 17:30:46 +0000 |
commit | caa612e37f319671c405117f48032a5e901164ff (patch) | |
tree | 151792b8df5305a50c6b54063cf070d03878fece /lib/libssl | |
parent | 1d6b70a412205961dc019f44108bf1442568e13e (diff) |
In the explanatory comment of ssl_get_prev_session fix the spelling of
the function name, document alert and make it fit into 80 columns.
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/ssl_sess.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index 327164da250..be00c8a6ad1 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.93 2020/09/01 17:25:17 tb Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.94 2020/09/01 17:30:45 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -492,13 +492,14 @@ ssl_session_by_id(SSL *s, CBS *session_id) } /* - * ssl_get_prev attempts to find an SSL_SESSION to be used to resume this - * connection. It is only called by servers. + * ssl_get_prev_session attempts to find an SSL_SESSION to be used to resume + * this connection. It is only called by servers. * * session_id: points at the session ID in the ClientHello. This code will * read past the end of this in order to parse out the session ticket * extension, if any. * ext_block: a CBS for the ClientHello extensions block. + * alert: alert that the caller should send in case of failure. * * Returns: * -1: error @@ -508,8 +509,8 @@ ssl_session_by_id(SSL *s, CBS *session_id) * - If a session is found then s->session is pointed at it (after freeing * an existing session if need be) and s->verify_result is set from the * session. - * - Both for new and resumed sessions, s->internal->tlsext_ticket_expected is set - * to 1 if the server should issue a new session ticket (to 0 otherwise). + * - For both new and resumed sessions, s->internal->tlsext_ticket_expected + * indicates whether the server should issue a new session ticket or not. */ int ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block, int *alert) |