summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/ssl_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/src/ssl/ssl_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/src/ssl/ssl_lib.c')
-rw-r--r--lib/libssl/src/ssl/ssl_lib.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/lib/libssl/src/ssl/ssl_lib.c b/lib/libssl/src/ssl/ssl_lib.c
index 847fb79f6ec..c2e6b407c50 100644
--- a/lib/libssl/src/ssl/ssl_lib.c
+++ b/lib/libssl/src/ssl/ssl_lib.c
@@ -163,22 +163,25 @@ SSL3_ENC_METHOD ssl3_undef_enc_method = {
* Evil casts, but these functions are only called if there's a
* library bug.
*/
- (int (*)(SSL *, int))ssl_undefined_function,
- (int (*)(SSL *, unsigned char *, int))ssl_undefined_function,
- ssl_undefined_function,
- (int (*)(SSL *, unsigned char *, unsigned char *, int))ssl_undefined_function,
- (int (*)(SSL*, int))ssl_undefined_function,
- (int (*)(SSL *, const char*, int, unsigned char *))ssl_undefined_function,
- 0, /* finish_mac_length */
- (int (*)(SSL *, int, unsigned char *))ssl_undefined_function,
- NULL, /* client_finished_label */
- 0, /* client_finished_label_len */
- NULL, /* server_finished_label */
- 0, /* server_finished_label_len */
- (int (*)(int))ssl_undefined_function,
- (int (*)(SSL *, unsigned char *, size_t, const char *,
- size_t, const unsigned char *, size_t,
- int use_context)) ssl_undefined_function,
+ .enc = (int (*)(SSL *, int))ssl_undefined_function,
+ .mac = (int (*)(SSL *, unsigned char *, int))ssl_undefined_function,
+ .setup_key_block = ssl_undefined_function,
+ .generate_master_secret = (int (*)(SSL *, unsigned char *,
+ unsigned char *, int))ssl_undefined_function,
+ .change_cipher_state = (int (*)(SSL*, int))ssl_undefined_function,
+ .final_finish_mac = (int (*)(SSL *, const char*, int,
+ unsigned char *))ssl_undefined_function,
+ .finish_mac_length = 0,
+ .cert_verify_mac = (int (*)(SSL *, int,
+ unsigned char *))ssl_undefined_function,
+ .client_finished_label = NULL,
+ .client_finished_label_len = 0,
+ .server_finished_label = NULL,
+ .server_finished_label_len = 0,
+ .alert_value = (int (*)(int))ssl_undefined_function,
+ .export_keying_material = (int (*)(SSL *, unsigned char *, size_t,
+ const char *, size_t, const unsigned char *, size_t,
+ int use_context))ssl_undefined_function,
};
int