summaryrefslogtreecommitdiffstats
path: root/lib/libssl/bs_cbs.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-04-29 02:11:09 +0000
committerdoug <doug@openbsd.org>2015-04-29 02:11:09 +0000
commit1f70f88b1a9f455feaefec8778a056e21b33cad0 (patch)
tree00d0c13aade6b070589124aeccbe1a48ec1bb80d /lib/libssl/bs_cbs.c
parentCall CBB_add_space() rather than reimplementing it. (diff)
downloadwireguard-openbsd-1f70f88b1a9f455feaefec8778a056e21b33cad0.tar.xz
wireguard-openbsd-1f70f88b1a9f455feaefec8778a056e21b33cad0.zip
Add whitespace and replace OPENSSL_free with free in documentation.
ok jsing@
Diffstat (limited to 'lib/libssl/bs_cbs.c')
-rw-r--r--lib/libssl/bs_cbs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/bs_cbs.c b/lib/libssl/bs_cbs.c
index 0237f736819..4c1bfa32881 100644
--- a/lib/libssl/bs_cbs.c
+++ b/lib/libssl/bs_cbs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bs_cbs.c,v 1.6 2015/04/29 01:27:34 doug Exp $ */
+/* $OpenBSD: bs_cbs.c,v 1.7 2015/04/29 02:11:09 doug Exp $ */
/*
* Copyright (c) 2014, Google Inc.
*
@@ -84,7 +84,7 @@ int
CBS_strdup(const CBS *cbs, char **out_ptr)
{
free(*out_ptr);
- *out_ptr = strndup((const char*)cbs->data, cbs->len);
+ *out_ptr = strndup((const char *)cbs->data, cbs->len);
return (*out_ptr != NULL);
}
@@ -251,7 +251,7 @@ CBS_get_any_asn1_element(CBS *cbs, CBS *out, unsigned *out_tag,
/* Length should have used short-form encoding. */
return 0;
- if ((len32 >> ((num_bytes-1)*8)) == 0)
+ if ((len32 >> ((num_bytes - 1) * 8)) == 0)
/* Length should have been at least one byte shorter. */
return 0;