Searched refs:unitmp (Results 1 – 2 of 2) sorted by relevance
68 unsigned char *unitmp; in OPENSSL_asc2uni() local71 if (!(unitmp = OPENSSL_malloc(ulen))) return NULL; in OPENSSL_asc2uni()73 unitmp[i] = 0; in OPENSSL_asc2uni()74 unitmp[i + 1] = asc[i>>1]; in OPENSSL_asc2uni()77 unitmp[ulen - 2] = 0; in OPENSSL_asc2uni()78 unitmp[ulen - 1] = 0; in OPENSSL_asc2uni()80 if (uni) *uni = unitmp; in OPENSSL_asc2uni()81 return unitmp; in OPENSSL_asc2uni()
81 uint8_t *unitmp; in ascii_to_ucs2() local88 unitmp = OPENSSL_malloc(ulen); in ascii_to_ucs2()89 if (unitmp == NULL) { in ascii_to_ucs2()93 unitmp[i] = 0; in ascii_to_ucs2()94 unitmp[i + 1] = ascii[i >> 1]; in ascii_to_ucs2()98 unitmp[ulen - 2] = 0; in ascii_to_ucs2()99 unitmp[ulen - 1] = 0; in ascii_to_ucs2()101 *out = unitmp; in ascii_to_ucs2()