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/sess_id.c | |
parent | 2747d73c1466c487daf64a1234b6fe2e8a62ac75 (diff) | |
download | openssl-new-a2b18e657ea1a932d125154f4e13ab2258796d90.tar.gz |
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/sess_id.c')
-rw-r--r-- | apps/sess_id.c | 20 |
1 files changed, 0 insertions, 20 deletions
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()); |