diff options
-rw-r--r-- | src/lib/libssl/src/apps/ciphers.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libssl/src/apps/ciphers.c b/src/lib/libssl/src/apps/ciphers.c index 4d594fbaf4..7eddf2faba 100644 --- a/src/lib/libssl/src/apps/ciphers.c +++ b/src/lib/libssl/src/apps/ciphers.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ciphers.c,v 1.26 2014/07/14 00:35:10 deraadt Exp $ */ | 1 | /* $OpenBSD: ciphers.c,v 1.27 2014/08/24 14:55:23 jsing 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 | * |
@@ -89,8 +89,8 @@ ciphers_main(int argc, char **argv) | |||
89 | char *ciphers = NULL; | 89 | char *ciphers = NULL; |
90 | const SSL_METHOD *meth = NULL; | 90 | const SSL_METHOD *meth = NULL; |
91 | STACK_OF(SSL_CIPHER) * sk; | 91 | STACK_OF(SSL_CIPHER) * sk; |
92 | char buf[512]; | ||
93 | BIO *STDout = NULL; | 92 | BIO *STDout = NULL; |
93 | char *desc; | ||
94 | 94 | ||
95 | meth = SSLv3_server_method(); | 95 | meth = SSLv3_server_method(); |
96 | 96 | ||
@@ -169,8 +169,10 @@ ciphers_main(int argc, char **argv) | |||
169 | else | 169 | else |
170 | BIO_printf(STDout, "0x%02X,0x%02X,0x%02X,0x%02X - ", id0, id1, id2, id3); /* whatever */ | 170 | BIO_printf(STDout, "0x%02X,0x%02X,0x%02X,0x%02X - ", id0, id1, id2, id3); /* whatever */ |
171 | } | 171 | } |
172 | BIO_puts(STDout, | 172 | desc = SSL_CIPHER_description(c, NULL, 0); |
173 | SSL_CIPHER_description(c, buf, sizeof buf)); | 173 | BIO_puts(STDout, desc); |
174 | if (strcmp(desc, "OPENSSL_malloc Error") != 0) | ||
175 | free(desc); | ||
174 | } | 176 | } |
175 | } | 177 | } |
176 | 178 | ||