Document that SSL_CTX_sess_set_get_cb's id parameter should be const.
See also upstream's bf0fc41266f17311c5db1e0541d3dd12eb27deb6. Change-Id: Ib692b0ad608f2e3291f2aeab2ad98a7e177d5851 Reviewed-on: https://boringssl-review.googlesource.com/6150 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
f88b81aa75
commit
b735b1b6e4
@ -1576,7 +1576,10 @@ OPENSSL_EXPORT void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(
|
||||
* |SSL_ERROR_PENDING_SESSION|.
|
||||
*
|
||||
* If the internal session cache is enabled, the callback is only consulted if
|
||||
* the internal cache does not return a match. */
|
||||
* the internal cache does not return a match.
|
||||
*
|
||||
* The callback's |id| parameter is not const for historical reasons, but the
|
||||
* contents may not be modified. */
|
||||
OPENSSL_EXPORT void SSL_CTX_sess_set_get_cb(
|
||||
SSL_CTX *ctx,
|
||||
SSL_SESSION *(*get_session_cb)(SSL *ssl, uint8_t *id, int id_len,
|
||||
|
Loading…
Reference in New Issue
Block a user