diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-05-26 12:48:12 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-05-26 12:48:12 +0000 |
commit | c22d77affc0db0e0d74ec118ce66ca9704ce004c (patch) | |
tree | 59a1c1d52322b00e27c10a70f18c9de59cd6a2d1 | |
parent | e8706b6fb51a561ecdb50cf1e46f2798a254da2a (diff) |
Use C99 initialisers for BIO_METHOD.
-rw-r--r-- | lib/libssl/bio_ssl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libssl/bio_ssl.c b/lib/libssl/bio_ssl.c index 96ba1ad09c0..5b14ea3824f 100644 --- a/lib/libssl/bio_ssl.c +++ b/lib/libssl/bio_ssl.c @@ -83,15 +83,15 @@ typedef struct bio_ssl_st { } BIO_SSL; static BIO_METHOD methods_sslp = { - BIO_TYPE_SSL, "ssl", - ssl_write, - ssl_read, - ssl_puts, - NULL, /* ssl_gets, */ - ssl_ctrl, - ssl_new, - ssl_free, - ssl_callback_ctrl, + .type = BIO_TYPE_SSL, + .name = "ssl", + .bwrite = ssl_write, + .bread = ssl_read, + .bputs = ssl_puts, + .ctrl = ssl_ctrl, + .create = ssl_new, + .destroy = ssl_free, + .callback_ctrl = ssl_callback_ctrl, }; BIO_METHOD * |