Lines Matching refs:os2
80 ASN1_OCTET_STRING *os1,*os2;
90 os2=ASN1_OCTET_STRING_new();
92 ASN1_OCTET_STRING_set(os2,(unsigned char*)str1,strlen(str1));
94 i+=i2d_ASN1_OCTET_STRING(os2,NULL);
101 i2d_ASN1_OCTET_STRING(os2,&p);
107 ASN1_OCTET_STRING_free(os2);
129 ASN1_OCTET_STRING *os1,*os2;
143 if ((os2=d2i_ASN1_OCTET_STRING(NULL,&c.p,c.slen)) == NULL)
149 *str2=malloc(os2->length+1);
151 memcpy(*str2,os2->data,os2->length);
153 (*str2)[os2->length]='\0';
155 ASN1_OCTET_STRING_free(os2);
243 ASN1_OCTET_STRING *os1,*os2;
254 os2=ASN1_OCTET_STRING_new();
256 ASN1_OCTET_STRING_set(os2,(unsigned char*)str1,strlen(str1));
258 i+=i2d_ASN1_OCTET_STRING(os2,NULL);
265 i2d_ASN1_OCTET_STRING(os2,&p);
271 ASN1_OCTET_STRING_free(os2);
296 ASN1_OCTET_STRING *os1,*os2;
310 if ((os2=d2i_ASN1_OCTET_STRING(NULL,&c.p,c.slen)) == NULL)
316 *str2=malloc(os2->length+1);
318 memcpy(*str2,os2->data,os2->length);
320 (*str2)[os2->length]='\0';
322 ASN1_OCTET_STRING_free(os2);