Lines Matching refs:ulen
19 int ulen, i; in OPENSSL_asc2uni() local
26 ulen = asclen * 2 + 2; in OPENSSL_asc2uni()
27 if ((unitmp = OPENSSL_malloc(ulen)) == NULL) { in OPENSSL_asc2uni()
31 for (i = 0; i < ulen - 2; i += 2) { in OPENSSL_asc2uni()
36 unitmp[ulen - 2] = 0; in OPENSSL_asc2uni()
37 unitmp[ulen - 1] = 0; in OPENSSL_asc2uni()
39 *unilen = ulen; in OPENSSL_asc2uni()
82 int ulen, i, j; in OPENSSL_utf82uni() local
89 for (ulen = 0, i = 0; i < asclen; i += j) { in OPENSSL_utf82uni()
115 ulen += 2*2; in OPENSSL_utf82uni()
117 ulen += 2; in OPENSSL_utf82uni()
120 ulen += 2; /* for trailing UTF16 zero */ in OPENSSL_utf82uni()
122 if ((ret = OPENSSL_malloc(ulen)) == NULL) { in OPENSSL_utf82uni()
148 *unilen = ulen; in OPENSSL_utf82uni()