Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-08-15 21:49:12 +0400
committerAdam Langley <agl@google.com>2014-08-18 21:55:05 +0400
commit6f2600199c82330240de9a7f65a801b6f606b7b3 (patch)
tree4bac211624f6854a0294d89d9ce6ca640fe3742e /ssl/ssl_sess.c
parentfb4ea28bb84875a844cd65a9e4a2167ec884cd48 (diff)
Mark all SSL_CIPHERs as const.
This lets us put the SSL_CIPHER table in the data section. For type-checking, make STACK_OF(SSL_CIPHER) cast everything to const SSL_CIPHER*. Note that this will require some changes in consumers which weren't using a const SSL_CIPHER *. Change-Id: Iff734ac0e36f9e5c4a0f3c8411c7f727b820469c Reviewed-on: https://boringssl-review.googlesource.com/1541 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r--ssl/ssl_sess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
index 0b6a6e39..50d9190b 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -851,7 +851,7 @@ long SSL_CTX_get_timeout(const SSL_CTX *s)
}
int SSL_set_session_secret_cb(SSL *s, int (*tls_session_secret_cb)(SSL *s, void *secret, int *secret_len,
- STACK_OF(SSL_CIPHER) *peer_ciphers, SSL_CIPHER **cipher, void *arg), void *arg)
+ STACK_OF(SSL_CIPHER) *peer_ciphers, const SSL_CIPHER **cipher, void *arg), void *arg)
{
if (s == NULL) return(0);
s->tls_session_secret_cb = tls_session_secret_cb;