diff options
author | 2015-02-08 10:22:45 +0000 | |
---|---|---|
committer | 2015-02-08 10:22:45 +0000 | |
commit | 275363c24263e94c3408782ccd86b0f74b3da38f (patch) | |
tree | a7b7c4f64500b42e09c2a582b7310935cb16e8f2 /usr.bin/openssl/sess_id.c | |
parent | Convert to if_input(). (diff) | |
download | wireguard-openbsd-275363c24263e94c3408782ccd86b0f74b3da38f.tar.xz wireguard-openbsd-275363c24263e94c3408782ccd86b0f74b3da38f.zip |
Delete commented out code from openssl(1) apps.
From OpenSSL commits:
6f91b017bbb7140f816721141ac156d1b828a6b3
75d0ebef2aef7a2c77b27575b8da898e22f3ccd5
a2b18e657ea1a932d125154f4e13ab2258796d90
ok miod@, jsing@
Diffstat (limited to 'usr.bin/openssl/sess_id.c')
-rw-r--r-- | usr.bin/openssl/sess_id.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/usr.bin/openssl/sess_id.c b/usr.bin/openssl/sess_id.c index 51720204bf0..cc47bad93bc 100644 --- a/usr.bin/openssl/sess_id.c +++ b/usr.bin/openssl/sess_id.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sess_id.c,v 1.3 2015/01/24 09:44:29 doug Exp $ */ +/* $OpenBSD: sess_id.c,v 1.4 2015/02/08 10:22:45 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -182,26 +182,6 @@ sess_id_main(int argc, char **argv) SSL_SESSION_set1_id_context(x, (unsigned char *)sess_id_config.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 (!sess_id_config.noout || sess_id_config.text) { out = BIO_new(BIO_s_file()); |