Rewrite i2d_SSL_SESSION to use the ASN1 primitives, rather than using the
authorjsing <jsing@openbsd.org>
Sun, 13 Jul 2014 16:30:50 +0000 (16:30 +0000)
committerjsing <jsing@openbsd.org>
Sun, 13 Jul 2014 16:30:50 +0000 (16:30 +0000)
commit71d15c93ca9f64d3f0fc33ada95dbd8321bf7834
tree4b6b8f7bb9ce96c27c36c5ca1281214c01595988
parent60a51e06e5943c0b5713ed6f577c4cfc6f969aca
Rewrite i2d_SSL_SESSION to use the ASN1 primitives, rather than using the
horrific macros from asn1_mac.h.

This is a classic example of using macros to obfuscate code, in an attempt
to reduce the line count. The end result is so ridiculously convoluted that
it is completely unreadable and it takes hours to deconstruct the macros
and figure out what is actually going on behind the scenes.

ok miod@
lib/libssl/src/ssl/ssl_asn1.c
lib/libssl/ssl_asn1.c