70 const unsigned char *
p;
78 if (inf & 0x80)
goto err;
93 return(d2i_ASN1_BIT_STRING(a,pp,length));
95 if ((a == NULL) || ((*a) == NULL))
110 memcpy(s,p,(
int)len);
121 if (a != NULL) (*a)=ret;
126 if ((ret != NULL) && ((a == NULL) || (*a != ret)))
133 int ret,r,constructed;
136 if (a == NULL)
return(0);
139 return(i2d_ASN1_BIT_STRING(a,pp));
143 if (pp == NULL)
return(r);
158 long length,
int Ptag,
int Pclass)
161 const unsigned char *
p;
167 if ((a == NULL) || ((*a) == NULL))
198 c.
max=(length == 0)?0:(p+length);
199 if (!asn1_collate_primitive(ret,&c))
210 if ((ret->
length < len) || (ret->
data == NULL))
222 memcpy(s,p,(
int)len);
237 if (a != NULL) (*a)=ret;
241 if ((ret != NULL) && ((a == NULL) || (*a != ret)))
274 (
long)(c->
max-c->
p));
279 if (c->
slen <= 0)
break;