diff options
| author | jsing <> | 2014-05-24 16:06:28 +0000 |
|---|---|---|
| committer | jsing <> | 2014-05-24 16:06:28 +0000 |
| commit | de11744861c431e53a32cdec0bbea20974f32288 (patch) | |
| tree | 8481e7a43fecd73b7b06d84460a78f0bd65b4f91 /src/lib/libssl/ssl_lib.c | |
| parent | 0c408a1ab1c758a3f31879039289742845dc0e1d (diff) | |
| download | openbsd-de11744861c431e53a32cdec0bbea20974f32288.tar.gz openbsd-de11744861c431e53a32cdec0bbea20974f32288.tar.bz2 openbsd-de11744861c431e53a32cdec0bbea20974f32288.zip | |
Use C99 initialisers for SSL3_ENC_METHOD structs.
ok miod@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
| -rw-r--r-- | src/lib/libssl/ssl_lib.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 847fb79f6e..c2e6b407c5 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
| @@ -163,22 +163,25 @@ SSL3_ENC_METHOD ssl3_undef_enc_method = { | |||
| 163 | * Evil casts, but these functions are only called if there's a | 163 | * Evil casts, but these functions are only called if there's a |
| 164 | * library bug. | 164 | * library bug. |
| 165 | */ | 165 | */ |
| 166 | (int (*)(SSL *, int))ssl_undefined_function, | 166 | .enc = (int (*)(SSL *, int))ssl_undefined_function, |
| 167 | (int (*)(SSL *, unsigned char *, int))ssl_undefined_function, | 167 | .mac = (int (*)(SSL *, unsigned char *, int))ssl_undefined_function, |
| 168 | ssl_undefined_function, | 168 | .setup_key_block = ssl_undefined_function, |
| 169 | (int (*)(SSL *, unsigned char *, unsigned char *, int))ssl_undefined_function, | 169 | .generate_master_secret = (int (*)(SSL *, unsigned char *, |
| 170 | (int (*)(SSL*, int))ssl_undefined_function, | 170 | unsigned char *, int))ssl_undefined_function, |
| 171 | (int (*)(SSL *, const char*, int, unsigned char *))ssl_undefined_function, | 171 | .change_cipher_state = (int (*)(SSL*, int))ssl_undefined_function, |
| 172 | 0, /* finish_mac_length */ | 172 | .final_finish_mac = (int (*)(SSL *, const char*, int, |
| 173 | (int (*)(SSL *, int, unsigned char *))ssl_undefined_function, | 173 | unsigned char *))ssl_undefined_function, |
| 174 | NULL, /* client_finished_label */ | 174 | .finish_mac_length = 0, |
| 175 | 0, /* client_finished_label_len */ | 175 | .cert_verify_mac = (int (*)(SSL *, int, |
| 176 | NULL, /* server_finished_label */ | 176 | unsigned char *))ssl_undefined_function, |
| 177 | 0, /* server_finished_label_len */ | 177 | .client_finished_label = NULL, |
| 178 | (int (*)(int))ssl_undefined_function, | 178 | .client_finished_label_len = 0, |
| 179 | (int (*)(SSL *, unsigned char *, size_t, const char *, | 179 | .server_finished_label = NULL, |
| 180 | size_t, const unsigned char *, size_t, | 180 | .server_finished_label_len = 0, |
| 181 | int use_context)) ssl_undefined_function, | 181 | .alert_value = (int (*)(int))ssl_undefined_function, |
| 182 | .export_keying_material = (int (*)(SSL *, unsigned char *, size_t, | ||
| 183 | const char *, size_t, const unsigned char *, size_t, | ||
| 184 | int use_context))ssl_undefined_function, | ||
| 182 | }; | 185 | }; |
| 183 | 186 | ||
| 184 | int | 187 | int |
