]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Use named initializers
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 3 Oct 2016 09:04:26 +0000 (12:04 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Tue, 31 Oct 2017 15:35:48 +0000 (17:35 +0200)
src/lib-ssl-iostream/iostream-openssl.c

index 5aa0755614fe3c922371f42c9336758f2810bb80..958cd731676957afab096534ba67f2a43001a1f4 100644 (file)
@@ -751,28 +751,28 @@ openssl_iostream_get_last_error(struct ssl_iostream *ssl_io)
 }
 
 static const struct iostream_ssl_vfuncs ssl_vfuncs = {
-       openssl_iostream_context_init_client,
-       openssl_iostream_context_init_server,
-       openssl_iostream_context_deinit,
-
-       openssl_iostream_create,
-       openssl_iostream_unref,
-       openssl_iostream_destroy,
-
-       openssl_iostream_handshake,
-       openssl_iostream_set_handshake_callback,
-
-       openssl_iostream_set_log_prefix,
-       openssl_iostream_is_handshaked,
-       openssl_iostream_has_handshake_failed,
-       openssl_iostream_has_valid_client_cert,
-       openssl_iostream_has_broken_client_cert,
-       openssl_iostream_cert_match_name,
-       openssl_iostream_get_peer_name,
-       openssl_iostream_get_server_name,
-       openssl_iostream_get_compression,
-       openssl_iostream_get_security_string,
-       openssl_iostream_get_last_error
+       .context_init_client = openssl_iostream_context_init_client,
+       .context_init_server = openssl_iostream_context_init_server,
+       .context_deinit = openssl_iostream_context_deinit,
+
+       .create = openssl_iostream_create,
+       .unref = openssl_iostream_unref,
+       .destroy = openssl_iostream_destroy,
+
+       .handshake = openssl_iostream_handshake,
+       .set_handshake_callback = openssl_iostream_set_handshake_callback,
+
+       .set_log_prefix = openssl_iostream_set_log_prefix,
+       .is_handshaked = openssl_iostream_is_handshaked,
+       .has_handshake_failed = openssl_iostream_has_handshake_failed,
+       .has_valid_client_cert = openssl_iostream_has_valid_client_cert,
+       .has_broken_client_cert = openssl_iostream_has_broken_client_cert,
+       .cert_match_name = openssl_iostream_cert_match_name,
+       .get_peer_name = openssl_iostream_get_peer_name,
+       .get_server_name = openssl_iostream_get_server_name,
+       .get_compression = openssl_iostream_get_compression,
+       .get_security_string = openssl_iostream_get_security_string,
+       .get_last_error = openssl_iostream_get_last_error,
 };
 
 void ssl_iostream_openssl_init(void)