summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-05-26 12:48:12 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-05-26 12:48:12 +0000
commitc22d77affc0db0e0d74ec118ce66ca9704ce004c (patch)
tree59a1c1d52322b00e27c10a70f18c9de59cd6a2d1
parente8706b6fb51a561ecdb50cf1e46f2798a254da2a (diff)
Use C99 initialisers for BIO_METHOD.
-rw-r--r--lib/libssl/bio_ssl.c18
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 *