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-12-11 09:20:52 +0300
committerAdam Langley <agl@google.com>2014-12-14 01:28:58 +0300
commit338fcafe763be2ba6e65f00e6a8c9b820e530fcc (patch)
tree399f6c361097f30c6822222b34dfaa8fd3216105 /ssl/t1_lib.c
parentf080ecd86d053a4c6961cd0a00423972752eb796 (diff)
Mark SSL3_ENC_METHODs const and remove an unused one.
There's an undefined one not used anywhere. The others ought to be const. Also move the forward declaration to ssl.h so we don't have to use the struct name. Change-Id: I76684cf65255535c677ec19154cac74317c289ba Reviewed-on: https://boringssl-review.googlesource.com/2561 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r--ssl/t1_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index dbaadf22..c8a4feaf 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -124,7 +124,7 @@ static int tls_decrypt_ticket(SSL *s, const unsigned char *tick, int ticklen,
static int ssl_check_clienthello_tlsext(SSL *s);
static int ssl_check_serverhello_tlsext(SSL *s);
-SSL3_ENC_METHOD TLSv1_enc_data={
+const SSL3_ENC_METHOD TLSv1_enc_data = {
tls1_enc,
tls1_mac,
tls1_setup_key_block,
@@ -144,7 +144,7 @@ SSL3_ENC_METHOD TLSv1_enc_data={
ssl3_add_to_finished_hash,
};
-SSL3_ENC_METHOD TLSv1_1_enc_data={
+const SSL3_ENC_METHOD TLSv1_1_enc_data = {
tls1_enc,
tls1_mac,
tls1_setup_key_block,
@@ -164,7 +164,7 @@ SSL3_ENC_METHOD TLSv1_1_enc_data={
ssl3_add_to_finished_hash,
};
-SSL3_ENC_METHOD TLSv1_2_enc_data={
+const SSL3_ENC_METHOD TLSv1_2_enc_data = {
tls1_enc,
tls1_mac,
tls1_setup_key_block,