diff options
author | inoguchi <> | 2019-02-09 06:27:37 +0000 |
---|---|---|
committer | inoguchi <> | 2019-02-09 06:27:37 +0000 |
commit | 7a09aa52502e5c4598eda224db8dd8e132773449 (patch) | |
tree | 7a94d4b4e8a2db52f97ea7f9170c41a40ffacb17 /src/usr.bin/openssl/dsa.c | |
parent | 6126567f386c34c6cff5dc95e8e5072c34ba7b00 (diff) | |
download | openbsd-7a09aa52502e5c4598eda224db8dd8e132773449.tar.gz openbsd-7a09aa52502e5c4598eda224db8dd8e132773449.tar.bz2 openbsd-7a09aa52502e5c4598eda224db8dd8e132773449.zip |
Summarize the 4 same name functions and move it to apps.c
ok tb@ jsing@
Diffstat (limited to 'src/usr.bin/openssl/dsa.c')
-rw-r--r-- | src/usr.bin/openssl/dsa.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/usr.bin/openssl/dsa.c b/src/usr.bin/openssl/dsa.c index 0b99dedca6..d2460a7aaa 100644 --- a/src/usr.bin/openssl/dsa.c +++ b/src/usr.bin/openssl/dsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.c,v 1.11 2018/02/07 05:47:55 jsing Exp $ */ | 1 | /* $OpenBSD: dsa.c,v 1.12 2019/02/09 06:27:37 inoguchi Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -58,7 +58,6 @@ | |||
58 | 58 | ||
59 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_DSA */ | 59 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_DSA */ |
60 | 60 | ||
61 | #include <ctype.h> | ||
62 | #include <stdio.h> | 61 | #include <stdio.h> |
63 | #include <stdlib.h> | 62 | #include <stdlib.h> |
64 | #include <time.h> | 63 | #include <time.h> |
@@ -205,17 +204,6 @@ static struct option dsa_options[] = { | |||
205 | }; | 204 | }; |
206 | 205 | ||
207 | static void | 206 | static void |
208 | show_ciphers(const OBJ_NAME *name, void *arg) | ||
209 | { | ||
210 | static int n; | ||
211 | |||
212 | if (!islower((unsigned char)*name->name)) | ||
213 | return; | ||
214 | |||
215 | fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n")); | ||
216 | } | ||
217 | |||
218 | static void | ||
219 | dsa_usage(void) | 207 | dsa_usage(void) |
220 | { | 208 | { |
221 | fprintf(stderr, | 209 | fprintf(stderr, |
@@ -227,7 +215,7 @@ dsa_usage(void) | |||
227 | fprintf(stderr, "\n"); | 215 | fprintf(stderr, "\n"); |
228 | 216 | ||
229 | fprintf(stderr, "Valid ciphername values:\n\n"); | 217 | fprintf(stderr, "Valid ciphername values:\n\n"); |
230 | OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, show_ciphers, NULL); | 218 | OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, show_cipher, NULL); |
231 | fprintf(stderr, "\n"); | 219 | fprintf(stderr, "\n"); |
232 | } | 220 | } |
233 | 221 | ||