diff options
author | Rich Salz <rsalz@openssl.org> | 2015-01-24 10:57:19 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-01-24 10:58:38 -0500 |
commit | a2b18e657ea1a932d125154f4e13ab2258796d90 (patch) | |
tree | bdfcb8bbe1d673b3bce209ef289520e11a109464 /apps | |
parent | 2747d73c1466c487daf64a1234b6fe2e8a62ac75 (diff) |
ifdef cleanup, part 4a: '#ifdef undef'
This removes all code surrounded by '#ifdef undef'
One case is left: memmove() replaced by open-coded for loop,
in crypto/stack/stack.c That needs further review.
Also removed a couple of instances of /* dead code */ if I saw them
while doing the main removal.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/crl.c | 9 | ||||
-rw-r--r-- | apps/dh.c | 9 | ||||
-rw-r--r-- | apps/sess_id.c | 20 |
3 files changed, 0 insertions, 38 deletions
diff --git a/apps/crl.c b/apps/crl.c index c9c3a5f6d1..6819faa5b9 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -152,15 +152,6 @@ int MAIN(int argc, char **argv) argv++; num = 0; while (argc >= 1) { -#ifdef undef - if (strcmp(*argv, "-p") == 0) { - if (--argc < 1) - goto bad; - if (!args_from_file(++argv, Nargc, Nargv)) { - goto end; - } - */} -#endif if (strcmp(*argv, "-inform") == 0) { if (--argc < 1) goto bad; @@ -233,15 +233,6 @@ int MAIN(int argc, char **argv) if (text) { DHparams_print(out, dh); -# ifdef undef - printf("p="); - BN_print(stdout, dh->p); - printf("\ng="); - BN_print(stdout, dh->g); - printf("\n"); - if (dh->length != 0) - printf("recommended private length=%ld\n", dh->length); -# endif } if (check) { diff --git a/apps/sess_id.c b/apps/sess_id.c index be1007645c..fcb09118a6 100644 --- a/apps/sess_id.c +++ b/apps/sess_id.c @@ -168,26 +168,6 @@ int MAIN(int argc, char **argv) } SSL_SESSION_set1_id_context(x, (unsigned char *)context, ctx_len); } -#ifdef undef - /* just testing for memory leaks :-) */ - { - SSL_SESSION *s; - char buf[1024 * 10], *p; - int i; - - s = SSL_SESSION_new(); - - p = &buf; - i = i2d_SSL_SESSION(x, &p); - p = &buf; - d2i_SSL_SESSION(&s, &p, (long)i); - p = &buf; - d2i_SSL_SESSION(&s, &p, (long)i); - p = &buf; - d2i_SSL_SESSION(&s, &p, (long)i); - SSL_SESSION_free(s); - } -#endif if (!noout || text) { out = BIO_new(BIO_s_file()); |