summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/rsa.c
diff options
context:
space:
mode:
authorinoguchi <>2019-02-05 12:45:47 +0000
committerinoguchi <>2019-02-05 12:45:47 +0000
commitd270ebee7ae687e3965f2f26817d062472c13ec0 (patch)
tree602f16e85eaf872b5a3e2d248eed8f1b35eae15a /src/usr.bin/openssl/rsa.c
parentefb27b60ee524c6da93693f208dc26799d23398a (diff)
downloadopenbsd-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 'src/usr.bin/openssl/rsa.c')
-rw-r--r--src/usr.bin/openssl/rsa.c6
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