diff options
author | inoguchi <> | 2019-02-05 12:45:47 +0000 |
---|---|---|
committer | inoguchi <> | 2019-02-05 12:45:47 +0000 |
commit | d270ebee7ae687e3965f2f26817d062472c13ec0 (patch) | |
tree | 602f16e85eaf872b5a3e2d248eed8f1b35eae15a /src | |
parent | efb27b60ee524c6da93693f208dc26799d23398a (diff) | |
download | openbsd-d270ebee7ae687e3965f2f26817d062472c13ec0.tar.gz openbsd-d270ebee7ae687e3965f2f26817d062472c13ec0.tar.bz2 openbsd-d270ebee7ae687e3965f2f26817d062472c13ec0.zip |
Add islower check to show_ciphers in pkey.c and rsa.c.
suggested by jsing@
ok tb@
Diffstat (limited to '')
-rw-r--r-- | src/usr.bin/openssl/pkey.c | 6 | ||||
-rw-r--r-- | src/usr.bin/openssl/rsa.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/pkey.c b/src/usr.bin/openssl/pkey.c index aab0b87032..a5ed21fc3b 100644 --- a/src/usr.bin/openssl/pkey.c +++ b/src/usr.bin/openssl/pkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkey.c,v 1.11 2019/02/05 11:26:21 inoguchi Exp $ */ | 1 | /* $OpenBSD: pkey.c,v 1.12 2019/02/05 12:45:47 inoguchi Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006 | 3 | * project 2006 |
4 | */ | 4 | */ |
@@ -56,6 +56,7 @@ | |||
56 | * | 56 | * |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <ctype.h> | ||
59 | #include <stdio.h> | 60 | #include <stdio.h> |
60 | #include <string.h> | 61 | #include <string.h> |
61 | 62 | ||
@@ -185,6 +186,9 @@ show_ciphers(const OBJ_NAME *name, void *arg) | |||
185 | { | 186 | { |
186 | static int n; | 187 | static int n; |
187 | 188 | ||
189 | if (!islower((unsigned char)*name->name)) | ||
190 | return; | ||
191 | |||
188 | fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n")); | 192 | fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n")); |
189 | } | 193 | } |
190 | 194 | ||
diff --git a/src/usr.bin/openssl/rsa.c b/src/usr.bin/openssl/rsa.c index 09fe8ef0d6..c6ab617ac8 100644 --- a/src/usr.bin/openssl/rsa.c +++ b/src/usr.bin/openssl/rsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa.c,v 1.10 2018/02/07 05:47:55 jsing Exp $ */ | 1 | /* $OpenBSD: rsa.c,v 1.11 2019/02/05 12:45:47 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,6 +58,7 @@ | |||
58 | 58 | ||
59 | #include <openssl/opensslconf.h> | 59 | #include <openssl/opensslconf.h> |
60 | 60 | ||
61 | #include <ctype.h> | ||
61 | #include <stdio.h> | 62 | #include <stdio.h> |
62 | #include <stdlib.h> | 63 | #include <stdlib.h> |
63 | #include <string.h> | 64 | #include <string.h> |
@@ -239,6 +240,9 @@ show_ciphers(const OBJ_NAME *name, void *arg) | |||
239 | { | 240 | { |
240 | static int n; | 241 | static int n; |
241 | 242 | ||
243 | if (!islower((unsigned char)*name->name)) | ||
244 | return; | ||
245 | |||
242 | fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n")); | 246 | fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n")); |
243 | } | 247 | } |
244 | 248 | ||