diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2000-08-20 08:48:49 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2000-08-20 08:48:49 +0000 |
| commit | 3c1b3e1840b8cbd96c05d29481b22b77d81ea81a (patch) | |
| tree | 7d515f88bf14a07b9d023bed0005d23863e495af /crypto/openssl/apps/ciphers.c | |
| parent | acafef530523fc13c3985a9cdf4de0f0406c004a (diff) | |
Notes
Diffstat (limited to 'crypto/openssl/apps/ciphers.c')
| -rw-r--r-- | crypto/openssl/apps/ciphers.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/crypto/openssl/apps/ciphers.c b/crypto/openssl/apps/ciphers.c index 08e47be4f787..f8e9e7be2e6d 100644 --- a/crypto/openssl/apps/ciphers.c +++ b/crypto/openssl/apps/ciphers.c @@ -66,10 +66,6 @@ #include <openssl/err.h> #include <openssl/ssl.h> -#if defined(NO_RSA) && !defined(NO_SSL2) -#define NO_SSL2 -#endif - #undef PROG #define PROG ciphers_main @@ -81,6 +77,8 @@ static char *ciphers_usage[]={ NULL }; +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int ret=1,i; @@ -145,12 +143,16 @@ int MAIN(int argc, char **argv) goto end; } - SSLeay_add_ssl_algorithms(); + OpenSSL_add_ssl_algorithms(); ctx=SSL_CTX_new(meth); if (ctx == NULL) goto err; - if (ciphers != NULL) - SSL_CTX_set_cipher_list(ctx,ciphers); + if (ciphers != NULL) { + if(!SSL_CTX_set_cipher_list(ctx,ciphers)) { + BIO_printf(bio_err, "Error in cipher list\n"); + goto err; + } + } ssl=SSL_new(ctx); if (ssl == NULL) goto err; |
