diff options
author | beck <> | 2014-04-15 17:46:17 +0000 |
---|---|---|
committer | beck <> | 2014-04-15 17:46:17 +0000 |
commit | c9414ed70ec89926c1041a64ee4b2f3ef36c90f6 (patch) | |
tree | c53c25a15cd89988cef641fa18324c5c6db28fed /src/lib/libcrypto/asn1/a_time.c | |
parent | 0cfe49dc6db41fd2d4f960b618ed41b11ffffc6a (diff) | |
download | openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.tar.gz openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.tar.bz2 openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.zip |
Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternity
with the bearded ones...
some API's that nobody should be using will dissapear with this commit.
Diffstat (limited to 'src/lib/libcrypto/asn1/a_time.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c index e2eb9b243e..4ade88f065 100644 --- a/src/lib/libcrypto/asn1/a_time.c +++ b/src/lib/libcrypto/asn1/a_time.c | |||
@@ -74,21 +74,6 @@ IMPLEMENT_ASN1_FUNCTIONS(ASN1_TIME) | |||
74 | #if 0 | 74 | #if 0 |
75 | int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) | 75 | int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) |
76 | { | 76 | { |
77 | #ifdef CHARSET_EBCDIC | ||
78 | /* KLUDGE! We convert to ascii before writing DER */ | ||
79 | char tmp[24]; | ||
80 | ASN1_STRING tmpstr; | ||
81 | |||
82 | if(a->type == V_ASN1_UTCTIME || a->type == V_ASN1_GENERALIZEDTIME) { | ||
83 | int len; | ||
84 | |||
85 | tmpstr = *(ASN1_STRING *)a; | ||
86 | len = tmpstr.length; | ||
87 | ebcdic2ascii(tmp, tmpstr.data, (len >= sizeof tmp) ? sizeof tmp : len); | ||
88 | tmpstr.data = tmp; | ||
89 | a = (ASN1_GENERALIZEDTIME *) &tmpstr; | ||
90 | } | ||
91 | #endif | ||
92 | if(a->type == V_ASN1_UTCTIME || a->type == V_ASN1_GENERALIZEDTIME) | 77 | if(a->type == V_ASN1_UTCTIME || a->type == V_ASN1_GENERALIZEDTIME) |
93 | return(i2d_ASN1_bytes((ASN1_STRING *)a,pp, | 78 | return(i2d_ASN1_bytes((ASN1_STRING *)a,pp, |
94 | a->type ,V_ASN1_UNIVERSAL)); | 79 | a->type ,V_ASN1_UNIVERSAL)); |