diff options
author | David Benjamin <davidben@chromium.org> | 2014-12-11 01:20:52 -0500 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-12-13 22:28:58 +0000 |
commit | 338fcafe763be2ba6e65f00e6a8c9b820e530fcc (patch) | |
tree | 399f6c361097f30c6822222b34dfaa8fd3216105 /include | |
parent | f080ecd86d053a4c6961cd0a00423972752eb796 (diff) | |
download | boringssl-338fcafe763be2ba6e65f00e6a8c9b820e530fcc.zip boringssl-338fcafe763be2ba6e65f00e6a8c9b820e530fcc.tar.gz boringssl-338fcafe763be2ba6e65f00e6a8c9b820e530fcc.tar.bz2 |
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 'include')
-rw-r--r-- | include/openssl/ssl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 0658947..39e228b 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -281,6 +281,7 @@ typedef struct ssl_cipher_st SSL_CIPHER; typedef struct ssl_session_st SSL_SESSION; typedef struct tls_sigalgs_st TLS_SIGALGS; typedef struct ssl_conf_ctx_st SSL_CONF_CTX; +typedef struct ssl3_enc_method SSL3_ENC_METHOD; DECLARE_STACK_OF(SSL_CIPHER) @@ -344,7 +345,7 @@ struct ssl_method_st int (*ssl_pending)(const SSL *s); int (*num_ciphers)(void); const SSL_CIPHER *(*get_cipher)(unsigned ncipher); - struct ssl3_enc_method *ssl3_enc; /* Extra SSLv3/TLS stuff */ + const SSL3_ENC_METHOD *ssl3_enc; /* Extra SSLv3/TLS stuff */ int (*ssl_version)(void); long (*ssl_callback_ctrl)(SSL *s, int cb_id, void (*fp)(void)); long (*ssl_ctx_callback_ctrl)(SSL_CTX *s, int cb_id, void (*fp)(void)); |