Remove references to o_time.h
[openssl.git] / crypto / asn1 / a_bytes.c
index 1bf9247d8ed336d00f2278ad777805514b29f659..92d630cdbaf8b1be5ad83d303d4b6a87a16b8fab 100644 (file)
@@ -64,12 +64,12 @@ static int asn1_collate_primitive(ASN1_STRING *a, ASN1_const_CTX *c);
 /* type is a 'bitmap' of acceptable string types.
  */
 ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a, const unsigned char **pp,
-                                size_t length, int type)
+            long length, int type)
        {
        ASN1_STRING *ret=NULL;
        const unsigned char *p;
        unsigned char *s;
-       size_t len;
+       long len;
        int inf,tag,xclass;
        int i=0;
 
@@ -79,7 +79,7 @@ ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a, const unsigned char **pp,
 
        if (tag >= 32)
                {
-               i=ASN1_R_TAG_VALUE_TOO_HIGH;;
+               i=ASN1_R_TAG_VALUE_TOO_HIGH;
                goto err;
                }
        if (!(ASN1_tag2bit(tag) & type))
@@ -155,12 +155,12 @@ int i2d_ASN1_bytes(ASN1_STRING *a, unsigned char **pp, int tag, int xclass)
        }
 
 ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, const unsigned char **pp,
-                           size_t length, int Ptag, int Pclass)
+            long length, int Ptag, int Pclass)
        {
        ASN1_STRING *ret=NULL;
        const unsigned char *p;
        unsigned char *s;
-       size_t len;
+       long len;
        int inf,tag,xclass;
        int i=0;