summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ec.c
diff options
context:
space:
mode:
authorinoguchi <>2019-02-09 15:49:21 +0000
committerinoguchi <>2019-02-09 15:49:21 +0000
commitb3b102c1f413c950892ae663eb251b656a781b0e (patch)
tree57ca2f3b5903ab1dddc2ed09f7d4450b10ee8f31 /src/usr.bin/openssl/ec.c
parent05df66360f354ae86e98a98f38534d041726f923 (diff)
downloadopenbsd-b3b102c1f413c950892ae663eb251b656a781b0e.tar.gz
openbsd-b3b102c1f413c950892ae663eb251b656a781b0e.tar.bz2
openbsd-b3b102c1f413c950892ae663eb251b656a781b0e.zip
Fix weird wrap showing cipher list in interactive mode
ok jsing@ tb@
Diffstat (limited to 'src/usr.bin/openssl/ec.c')
-rw-r--r--src/usr.bin/openssl/ec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ec.c b/src/usr.bin/openssl/ec.c
index 917a7a15e5..f9056154ed 100644
--- a/src/usr.bin/openssl/ec.c
+++ b/src/usr.bin/openssl/ec.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec.c,v 1.12 2019/02/09 06:27:37 inoguchi Exp $ */ 1/* $OpenBSD: ec.c,v 1.13 2019/02/09 15:49:21 inoguchi Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -241,6 +241,8 @@ static struct option ec_options[] = {
241static void 241static void
242ec_usage(void) 242ec_usage(void)
243{ 243{
244 int n = 0;
245
244 fprintf(stderr, 246 fprintf(stderr,
245 "usage: ec [-conv_form form] [-in file]\n" 247 "usage: ec [-conv_form form] [-in file]\n"
246 " [-inform format] [-noout] [-out file] [-outform format]\n" 248 " [-inform format] [-noout] [-out file] [-outform format]\n"
@@ -251,7 +253,7 @@ ec_usage(void)
251 fprintf(stderr, "\n"); 253 fprintf(stderr, "\n");
252 254
253 fprintf(stderr, "Valid ciphername values:\n\n"); 255 fprintf(stderr, "Valid ciphername values:\n\n");
254 OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, show_cipher, NULL); 256 OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, show_cipher, &n);
255 fprintf(stderr, "\n"); 257 fprintf(stderr, "\n");
256} 258}
257 259