diff options
author | Rich Salz <rsalz@openssl.org> | 2015-01-30 15:35:49 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-01-30 15:35:49 -0500 |
commit | 02a938c953b3e1ced71d9a832de1618f907eb96d (patch) | |
tree | 99e54a5aca1466e188467114e0b01aa73ef67121 /crypto/asn1/a_time.c | |
parent | 75d0ebef2aef7a2c77b27575b8da898e22f3ccd5 (diff) |
Dead code removal: #if 0 asn1, pkcs7
Keep one #if 0 but rename the symbol to be more descriptive of what
it's doing (you can disable support for old broken Netscape software).
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r-- | crypto/asn1/a_time.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c index 20e7c6decd..7ff3de37eb 100644 --- a/crypto/asn1/a_time.c +++ b/crypto/asn1/a_time.c @@ -71,33 +71,6 @@ IMPLEMENT_ASN1_MSTRING(ASN1_TIME, B_ASN1_TIME) IMPLEMENT_ASN1_FUNCTIONS(ASN1_TIME) -#if 0 -int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) -{ -# ifdef CHARSET_EBCDIC - /* KLUDGE! We convert to ascii before writing DER */ - char tmp[24]; - ASN1_STRING tmpstr; - - if (a->type == V_ASN1_UTCTIME || a->type == V_ASN1_GENERALIZEDTIME) { - int len; - - tmpstr = *(ASN1_STRING *)a; - len = tmpstr.length; - ebcdic2ascii(tmp, tmpstr.data, - (len >= sizeof tmp) ? sizeof tmp : len); - tmpstr.data = tmp; - a = (ASN1_GENERALIZEDTIME *)&tmpstr; - } -# endif - if (a->type == V_ASN1_UTCTIME || a->type == V_ASN1_GENERALIZEDTIME) - return (i2d_ASN1_bytes((ASN1_STRING *)a, pp, - a->type, V_ASN1_UNIVERSAL)); - ASN1err(ASN1_F_I2D_ASN1_TIME, ASN1_R_EXPECTING_A_TIME); - return -1; -} -#endif - ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) { return ASN1_TIME_adj(s, t, 0, 0); |