Make BIO_METHOD struct definitions consistent
authorDaniel Bevenius <daniel.bevenius@gmail.com>
Fri, 8 Dec 2017 07:20:10 +0000 (08:20 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 10 Dec 2017 09:40:05 +0000 (10:40 +0100)
I noticed that some of the BIO_METHOD structs are placing the name on
the same line as the type and some don't. This commit places the name
on a separate line for consistency (which looks like what the majority
do)

CLA: trivial

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4878)

(cherry picked from commit 27ab91951c96364351f1ea0652dbf14622440345)

crypto/bio/bss_fd.c
crypto/bio/bss_log.c
crypto/evp/bio_b64.c
crypto/evp/bio_enc.c
crypto/evp/bio_md.c
crypto/evp/bio_ok.c
ssl/bio_ssl.c

index e8d3e152de446f0f0494e9ff4ab2c24de32aadb8..91e720449a2531eb5f9d75dc46bf78a6c518380e 100644 (file)
@@ -58,7 +58,8 @@ static int fd_free(BIO *data);
 int BIO_fd_should_retry(int s);
 
 static const BIO_METHOD methods_fdp = {
-    BIO_TYPE_FD, "file descriptor",
+    BIO_TYPE_FD,
+    "file descriptor",
     fd_write,
     fd_read,
     fd_puts,
index 6cbde4d2fe81b73aea7009736588fc2860fddd9d..97241e5302ecf1e54d17977a0489a57a4fa24752 100644 (file)
@@ -85,7 +85,8 @@ static void xsyslog(BIO *bp, int priority, const char *string);
 static void xcloselog(BIO *bp);
 
 static const BIO_METHOD methods_slg = {
-    BIO_TYPE_MEM, "syslog",
+    BIO_TYPE_MEM,
+    "syslog",
     slg_write,
     NULL,
     slg_puts,
index 32a884a711049d7f09e6611bdf83c941a3611e86..228b6e6c015d3a71fb510c1bdf5b49b74e2f0369 100644 (file)
@@ -47,7 +47,8 @@ typedef struct b64_struct {
 } BIO_B64_CTX;
 
 static const BIO_METHOD methods_b64 = {
-    BIO_TYPE_BASE64, "base64 encoding",
+    BIO_TYPE_BASE64,
+    "base64 encoding",
     b64_write,
     b64_read,
     b64_puts,
index 5a3beef97fd9fd7a2f49389f461a5e45a14ffec3..742080a80e686f4316372de6675ca47b41a2dc43 100644 (file)
@@ -46,7 +46,8 @@ typedef struct enc_struct {
 } BIO_ENC_CTX;
 
 static const BIO_METHOD methods_enc = {
-    BIO_TYPE_CIPHER, "cipher",
+    BIO_TYPE_CIPHER,
+    "cipher",
     enc_write,
     enc_read,
     NULL,                       /* enc_puts, */
index cd968ec2d4751e3ce4b5bdaa69993984f1d42033..fff80271320e3db863650a0f76c994daf486c9b9 100644 (file)
@@ -32,7 +32,8 @@ static int md_free(BIO *data);
 static long md_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
 
 static const BIO_METHOD methods_md = {
-    BIO_TYPE_MD, "message digest",
+    BIO_TYPE_MD,
+    "message digest",
     md_write,
     md_read,
     NULL,                       /* md_puts, */
index 7974b96311a96ab88539b5b383d0ede315589737..023b3e3bdd69a4c5dae68d0b0c3f32e13fc4979c 100644 (file)
@@ -108,7 +108,8 @@ typedef struct ok_struct {
 } BIO_OK_CTX;
 
 static const BIO_METHOD methods_ok = {
-    BIO_TYPE_CIPHER, "reliable",
+    BIO_TYPE_CIPHER,
+    "reliable",
     ok_write,
     ok_read,
     NULL,                       /* ok_puts, */
index 5322c0364681fc524369e2f7acfdac6855dee103..7388db1797bef0b51fc89b37634465d1fea1c1c4 100644 (file)
@@ -34,7 +34,8 @@ typedef struct bio_ssl_st {
 } BIO_SSL;
 
 static const BIO_METHOD methods_sslp = {
-    BIO_TYPE_SSL, "ssl",
+    BIO_TYPE_SSL,
+    "ssl",
     ssl_write,
     ssl_read,
     ssl_puts,