aboutsummaryrefslogtreecommitdiff
path: root/crypto/bio/bio_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio/bio_dump.c')
-rw-r--r--crypto/bio/bio_dump.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto/bio/bio_dump.c b/crypto/bio/bio_dump.c
index 04191a653054..c9f5827dd9cb 100644
--- a/crypto/bio/bio_dump.c
+++ b/crypto/bio/bio_dump.c
@@ -14,19 +14,19 @@
#include <stdio.h>
#include "bio_local.h"
-#define DUMP_WIDTH 16
+#define DUMP_WIDTH 16
#define DUMP_WIDTH_LESS_INDENT(i) (DUMP_WIDTH - ((i - (i > 6 ? 6 : i) + 3) / 4))
-#define SPACE(buf, pos, n) (sizeof(buf) - (pos) > (n))
+#define SPACE(buf, pos, n) (sizeof(buf) - (pos) > (n))
-int BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u),
- void *u, const void *s, int len)
+int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u),
+ void *u, const void *s, int len)
{
return BIO_dump_indent_cb(cb, u, s, len, 0);
}
-int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
- void *u, const void *v, int len, int indent)
+int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
+ void *u, const void *v, int len, int indent)
{
const unsigned char *s = v;
int res, ret = 0;
@@ -46,7 +46,7 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
rows++;
for (i = 0; i < rows; i++) {
n = BIO_snprintf(buf, sizeof(buf), "%*s%04x - ", indent, "",
- i * dump_width);
+ i * dump_width);
if (n < 0)
return -1;
for (j = 0; j < dump_width; j++) {
@@ -56,7 +56,7 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
} else {
ch = *(s + i * dump_width + j) & 0xff;
BIO_snprintf(buf + n, 4, "%02x%c", ch,
- j == 7 ? '-' : ' ');
+ j == 7 ? '-' : ' ');
}
n += 3;
}
@@ -74,8 +74,8 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
buf[n++] = ((ch >= ' ') && (ch <= '~')) ? ch : '.';
#else
buf[n++] = ((ch >= os_toascii[' ']) && (ch <= os_toascii['~']))
- ? os_toebcdic[ch]
- : '.';
+ ? os_toebcdic[ch]
+ : '.';
#endif
buf[n] = '\0';
}
@@ -129,7 +129,7 @@ int BIO_dump_indent(BIO *bp, const void *s, int len, int indent)
}
int BIO_hex_string(BIO *out, int indent, int width, const void *data,
- int datalen)
+ int datalen)
{
const unsigned char *d = data;
int i, j = 0;