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 | 8c33383f7e14f779dced1bf20a2aeccb8b68a69a (patch) | |
tree | b712c2f19ae9ab817c3bae0b0d01908036795fff | |
parent | 482a95b3bca94832e8512fc17de46e7b8a965033 (diff) |
Use C99 initialisers for BIO_METHOD.
-rw-r--r-- | lib/libssl/src/ssl/bio_ssl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libssl/src/ssl/bio_ssl.c b/lib/libssl/src/ssl/bio_ssl.c index 96ba1ad09c0..5b14ea3824f 100644 --- a/lib/libssl/src/ssl/bio_ssl.c +++ b/lib/libssl/src/ssl/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 * |