summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2016-08-31 23:46:34 +0000
committerbenno <benno@openbsd.org>2016-08-31 23:46:34 +0000
commit31cbf12270613420481f22b29a5744a835ad488a (patch)
tree92f0f149920638e28e5073391596143418e5343f
parentWe are past 5.8. Also gets rid of asserts as a bonus. (diff)
downloadwireguard-openbsd-31cbf12270613420481f22b29a5744a835ad488a.tar.xz
wireguard-openbsd-31cbf12270613420481f22b29a5744a835ad488a.zip
whitespace
-rw-r--r--usr.sbin/acme-client/rsa.c15
-rw-r--r--usr.sbin/acme-client/sandbox-pledge.c4
2 files changed, 9 insertions, 10 deletions
diff --git a/usr.sbin/acme-client/rsa.c b/usr.sbin/acme-client/rsa.c
index 54d987e5576..1bf515f4c32 100644
--- a/usr.sbin/acme-client/rsa.c
+++ b/usr.sbin/acme-client/rsa.c
@@ -1,4 +1,4 @@
-/* $Id: rsa.c,v 1.1 2016/08/31 22:01:42 florian Exp $ */
+/* $Id: rsa.c,v 1.2 2016/08/31 23:46:34 benno Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -59,7 +59,7 @@ rsa_key_create(FILE *f, const char *fname)
} else if (EVP_PKEY_keygen(ctx, &pkey) <= 0) {
warnx("EVP_PKEY_keygen");
goto err;
- }
+ }
/* Serialise the key to the disc. */
@@ -74,7 +74,7 @@ err:
out:
if (NULL != ctx)
EVP_PKEY_CTX_free(ctx);
- return(pkey);
+ return (pkey);
}
@@ -86,12 +86,11 @@ rsa_key_load(FILE *f, const char *fname)
pkey = PEM_read_PrivateKey(f, NULL, NULL, NULL);
if (NULL == pkey) {
warnx("%s: PEM_read_PrivateKey", fname);
- return(NULL);
- } else if (EVP_PKEY_RSA == EVP_PKEY_type(pkey->type))
- return(pkey);
+ return (NULL);
+ } else if (EVP_PKEY_RSA == EVP_PKEY_type(pkey->type))
+ return (pkey);
warnx("%s: unsupported key type", fname);
EVP_PKEY_free(pkey);
- return(NULL);
+ return (NULL);
}
-
diff --git a/usr.sbin/acme-client/sandbox-pledge.c b/usr.sbin/acme-client/sandbox-pledge.c
index ece973d638a..88b5a263a9c 100644
--- a/usr.sbin/acme-client/sandbox-pledge.c
+++ b/usr.sbin/acme-client/sandbox-pledge.c
@@ -1,4 +1,4 @@
-/* $Id: sandbox-pledge.c,v 1.1 2016/08/31 22:01:42 florian Exp $ */
+/* $Id: sandbox-pledge.c,v 1.2 2016/08/31 23:46:34 benno Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -63,7 +63,7 @@ sandbox_after(void)
}
break;
case (COMP_FILE):
- /*
+ /*
* Rpath and cpath for rename, wpath and cpath for
* writing to the temporary.
*/