diff options
| author | inoguchi <> | 2019-02-05 12:45:47 +0000 |
|---|---|---|
| committer | inoguchi <> | 2019-02-05 12:45:47 +0000 |
| commit | 6ef6589e7621680420e316ecc5abd355ab997a3c (patch) | |
| tree | 602f16e85eaf872b5a3e2d248eed8f1b35eae15a /src/usr.bin/openssl/rsa.c | |
| parent | 77a9369c42a5f2d45b1302110906a8b5ddce258c (diff) | |
| download | openbsd-6ef6589e7621680420e316ecc5abd355ab997a3c.tar.gz openbsd-6ef6589e7621680420e316ecc5abd355ab997a3c.tar.bz2 openbsd-6ef6589e7621680420e316ecc5abd355ab997a3c.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/rsa.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 | ||
