Lines Matching refs:utf8
30 ASN1_UTF8STRING *utf8)
34 if (utf8 == NULL || utf8->length == 0) {
38 if ((tmp = OPENSSL_malloc(utf8->length + 1)) == NULL) {
42 memcpy(tmp, utf8->data, utf8->length);
43 tmp[utf8->length] = 0;
50 ASN1_UTF8STRING *utf8;
55 if ((utf8 = ASN1_UTF8STRING_new()) == NULL) {
59 if (!ASN1_STRING_set((ASN1_STRING *)utf8, str, strlen(str))) {
61 ASN1_UTF8STRING_free(utf8);
65 ebcdic2ascii(utf8->data, utf8->data, utf8->length);
67 return utf8;