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/pkey.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 'src/usr.bin/openssl/pkey.c')
| -rw-r--r-- | src/usr.bin/openssl/pkey.c | 6 |
1 files changed, 5 insertions, 1 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 | ||
