summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-24 16:06:28 +0000
committerjsing <jsing@openbsd.org>2014-05-24 16:06:28 +0000
commit03e4e561cfb71e1a89df41c64ba5d69c7e75650a (patch)
tree4b89bccc6d0ab36289b73432e82ef37e05b9736c /lib/libssl/s3_lib.c
parentRemove the _shadow_ indirection, which is unnecessary in a world without (diff)
downloadwireguard-openbsd-03e4e561cfb71e1a89df41c64ba5d69c7e75650a.tar.xz
wireguard-openbsd-03e4e561cfb71e1a89df41c64ba5d69c7e75650a.zip
Use C99 initialisers for SSL3_ENC_METHOD structs.
ok miod@
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r--lib/libssl/s3_lib.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c
index f14cbd0c99c..1a0bb5195d8 100644
--- a/lib/libssl/s3_lib.c
+++ b/lib/libssl/s3_lib.c
@@ -2254,20 +2254,22 @@ SSL_CIPHER ssl3_ciphers[] = {
};
SSL3_ENC_METHOD SSLv3_enc_data = {
- ssl3_enc,
- n_ssl3_mac,
- ssl3_setup_key_block,
- ssl3_generate_master_secret,
- ssl3_change_cipher_state,
- ssl3_final_finish_mac,
- MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH,
- ssl3_cert_verify_mac,
- SSL3_MD_CLIENT_FINISHED_CONST, 4,
- SSL3_MD_SERVER_FINISHED_CONST, 4,
- ssl3_alert_code,
- (int (*)(SSL *, unsigned char *, size_t, const char *,
- size_t, const unsigned char *, size_t,
- int use_context))ssl_undefined_function,
+ .enc = ssl3_enc,
+ .mac = n_ssl3_mac,
+ .setup_key_block = ssl3_setup_key_block,
+ .generate_master_secret = ssl3_generate_master_secret,
+ .change_cipher_state = ssl3_change_cipher_state,
+ .final_finish_mac = ssl3_final_finish_mac,
+ .finish_mac_length = MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH,
+ .cert_verify_mac = ssl3_cert_verify_mac,
+ .client_finished_label = SSL3_MD_CLIENT_FINISHED_CONST,
+ .client_finished_label_len = 4,
+ .server_finished_label = SSL3_MD_SERVER_FINISHED_CONST,
+ .server_finished_label_len = 4,
+ .alert_value = ssl3_alert_code,
+ .export_keying_material = (int (*)(SSL *, unsigned char *, size_t,
+ const char *, size_t, const unsigned char *, size_t,
+ int use_context))ssl_undefined_function,
};
long