Lines Matching refs:os1
80 ASN1_OCTET_STRING *os1,*os2;
89 os1=ASN1_OCTET_STRING_new();
91 ASN1_OCTET_STRING_set(os1,(unsigned char*)str1,strlen(str1));
93 i =i2d_ASN1_OCTET_STRING(os1,NULL);
100 i2d_ASN1_OCTET_STRING(os1,&p);
106 ASN1_OCTET_STRING_free(os1);
129 ASN1_OCTET_STRING *os1,*os2;
138 if ((os1=d2i_ASN1_OCTET_STRING(NULL,&c.p,c.slen)) == NULL)
148 *str1=malloc(os1->length+1);
150 memcpy(*str1,os1->data,os1->length);
152 (*str1)[os1->length]='\0';
154 ASN1_OCTET_STRING_free(os1);
243 ASN1_OCTET_STRING *os1,*os2;
253 os1=ASN1_OCTET_STRING_new();
255 ASN1_OCTET_STRING_set(os1,(unsigned char*)str1,strlen(str1));
257 i =i2d_ASN1_OCTET_STRING(os1,NULL);
264 i2d_ASN1_OCTET_STRING(os1,&p);
270 ASN1_OCTET_STRING_free(os1);
296 ASN1_OCTET_STRING *os1,*os2;
305 if ((os1=d2i_ASN1_OCTET_STRING(NULL,&c.p,c.slen)) == NULL)
315 *str1=malloc(os1->length+1);
317 memcpy(*str1,os1->data,os1->length);
319 (*str1)[os1->length]='\0';
321 ASN1_OCTET_STRING_free(os1);