summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_ciph.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2014-10-03 06:02:38 +0000
committerdoug <doug@openbsd.org>2014-10-03 06:02:38 +0000
commitdda2f39b88970f7a1011e2c8eeb552ff52fe78d8 (patch)
treea7cb7e2503b912e6743aca2bbae442a20727d5fb /lib/libssl/ssl_ciph.c
parentif you're adding the first cluster reference, you dont have to (diff)
downloadwireguard-openbsd-dda2f39b88970f7a1011e2c8eeb552ff52fe78d8.tar.xz
wireguard-openbsd-dda2f39b88970f7a1011e2c8eeb552ff52fe78d8.zip
Use string literals in printf style calls so gcc's -Wformat works.
ok tedu@, miod@
Diffstat (limited to 'lib/libssl/ssl_ciph.c')
-rw-r--r--lib/libssl/ssl_ciph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c
index 586ae139745..35e81e18f17 100644
--- a/lib/libssl/ssl_ciph.c
+++ b/lib/libssl/ssl_ciph.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_ciph.c,v 1.68 2014/09/19 16:02:35 jsing Exp $ */
+/* $OpenBSD: ssl_ciph.c,v 1.69 2014/10/03 06:02:38 doug Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1559,7 +1559,6 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method,
char *
SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
{
- static const char *fmt="%-23s %s Kx=%-8s Au=%-4s Enc=%-9s Mac=%-4s\n";
unsigned long alg_mkey, alg_auth, alg_enc, alg_mac, alg_ssl, alg2;
const char *ver, *kx, *au, *enc, *mac;
char *ret;
@@ -1692,7 +1691,8 @@ SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
break;
}
- if (asprintf(&ret, fmt, cipher->name, ver, kx, au, enc, mac) == -1)
+ if (asprintf(&ret, "%-23s %s Kx=%-8s Au=%-4s Enc=%-9s Mac=%-4s\n",
+ cipher->name, ver, kx, au, enc, mac) == -1)
return "OPENSSL_malloc Error";
if (buf != NULL) {