diff options
author | 2016-08-15 14:47:41 +0000 | |
---|---|---|
committer | 2016-08-15 14:47:41 +0000 | |
commit | 1772749048b6e39af9a4283eb85eca78d9a1fedf (patch) | |
tree | d418e5a95bfbde15c0b98fc89ee15855f7deecfc /lib/libtls | |
parent | Allow com(4) to make use of the simplebus address translation. (diff) | |
download | wireguard-openbsd-1772749048b6e39af9a4283eb85eca78d9a1fedf.tar.xz wireguard-openbsd-1772749048b6e39af9a4283eb85eca78d9a1fedf.zip |
Fix some style(9) issues.
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/tls_conninfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libtls/tls_conninfo.c b/lib/libtls/tls_conninfo.c index 7888c919b08..523b2798d36 100644 --- a/lib/libtls/tls_conninfo.c +++ b/lib/libtls/tls_conninfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_conninfo.c,v 1.8 2016/08/12 15:10:59 jsing Exp $ */ +/* $OpenBSD: tls_conninfo.c,v 1.9 2016/08/15 14:47:41 jsing Exp $ */ /* * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> * Copyright (c) 2015 Bob Beck <beck@openbsd.org> @@ -171,8 +171,10 @@ tls_conninfo_alpn_proto(struct tls *ctx) } int -tls_get_conninfo(struct tls *ctx) { +tls_get_conninfo(struct tls *ctx) +{ const char * tmp; + if (ctx->ssl_peer_cert != NULL) { if (tls_get_peer_cert_hash(ctx, &ctx->conninfo->hash) == -1) goto err; @@ -205,7 +207,8 @@ err: } void -tls_free_conninfo(struct tls_conninfo *conninfo) { +tls_free_conninfo(struct tls_conninfo *conninfo) +{ if (conninfo != NULL) { free(conninfo->alpn); conninfo->alpn = NULL; |