summaryrefslogtreecommitdiff
path: root/cmd/ssltap
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2017-09-08 10:26:21 +1000
committerMartin Thomson <martin.thomson@gmail.com>2017-09-08 10:26:21 +1000
commita78db3ef9f6e97353d636564f8bf2112ae1efbd3 (patch)
tree967726e4a7fc8fe50d91a2abd8eb3a54d795dabc /cmd/ssltap
parent369c2546c705c0177ef62e165136aef3f703045e (diff)
downloadnss-hg-a78db3ef9f6e97353d636564f8bf2112ae1efbd3.tar.gz
Bug 1397990 - Run clang-format 4.0, r=me
These files were being reformatted by clang-format 4.0. If you make this change, then both 3.9 (in CI) and 4.0 are happy with the result. I don't plan to do this often, but it is a huge help. Note that the PK11 ECDSA tests are an odd duck, I have more on that coming.
Diffstat (limited to 'cmd/ssltap')
-rw-r--r--cmd/ssltap/ssltap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/cmd/ssltap/ssltap.c b/cmd/ssltap/ssltap.c
index 197b1942d..a2471884e 100644
--- a/cmd/ssltap/ssltap.c
+++ b/cmd/ssltap/ssltap.c
@@ -1637,8 +1637,7 @@ print_ssl3_handshake(unsigned char *recordBuf,
PR_snprintf(certFileName, sizeof certFileName, "cert.%03d",
++certFileNumber);
cfd =
- PR_Open(certFileName, PR_WRONLY |
- PR_CREATE_FILE | PR_TRUNCATE,
+ PR_Open(certFileName, PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE,
0664);
if (!cfd) {
PR_fprintf(PR_STDOUT,
@@ -1722,8 +1721,7 @@ print_ssl3_handshake(unsigned char *recordBuf,
0 &&
sslhexparse) {
PR_fprintf(PR_STDOUT, " = {\n");
- print_hex(dnLen, hsdata +
- pos);
+ print_hex(dnLen, hsdata + pos);
PR_fprintf(PR_STDOUT, " }\n");
} else {
PR_fprintf(PR_STDOUT, "\n");
@@ -1796,8 +1794,7 @@ print_ssl3_handshake(unsigned char *recordBuf,
PR_snprintf(ocspFileName, sizeof ocspFileName, "ocsp.%03d",
++ocspFileNumber);
- ofd = PR_Open(ocspFileName, PR_WRONLY |
- PR_CREATE_FILE | PR_TRUNCATE,
+ ofd = PR_Open(ocspFileName, PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE,
0664);
if (!ofd) {
PR_fprintf(PR_STDOUT,
@@ -2167,8 +2164,7 @@ print_ssl(DataBufferList *s, int length, unsigned char *buffer)
break;
case 22: /* handshake */
- print_ssl3_handshake(recordBuf, recordLen -
- s->hMACsize,
+ print_ssl3_handshake(recordBuf, recordLen - s->hMACsize,
&sr, s);
break;