Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 158) sorted by relevance

1234567

/freebsd/crypto/heimdal/lib/wind/
H A Dtest-ldap.c49 size_t olen; member
71 size_t olen; in main() local
78 olen = sizeof(out)/sizeof(out[0]); in main()
79 assert(olen > t->olen); in main()
81 ret = _wind_ldap_case_exact_attribute(t->in, t->ilen, out, &olen); in main()
87 if (olen != t->olen) { in main()
89 (unsigned)olen, (unsigned)t->olen); in main()
93 if (memcmp(t->out, out, sizeof(out[0]) * olen) != 0) { in main()
103 olen = sizeof(out)/sizeof(out[0]); in main()
104 assert(olen > t->olen); in main()
[all …]
H A Dstringprep.c63 size_t olen; in wind_stringprep() local
80 olen = *out_len; in wind_stringprep()
81 ret = _wind_stringprep_normalize(tmp, tmp_len, tmp, &olen); in wind_stringprep()
86 ret = _wind_stringprep_prohibited(tmp, olen, flags); in wind_stringprep()
91 ret = _wind_stringprep_testbidi(tmp, olen, flags); in wind_stringprep()
99 ret = _wind_ldap_case_exact_attribute(tmp, olen, out, out_len); in wind_stringprep()
106 memcpy(out, tmp, sizeof(out[0]) * olen); in wind_stringprep()
107 *out_len = olen; in wind_stringprep()
H A Dldap.c49 size_t olen, in _wind_ldap_case_exact_attribute() argument
55 if (olen == 0) { in _wind_ldap_case_exact_attribute()
62 while(i < olen && tmp[i] == 0x20) /* skip initial spaces */ in _wind_ldap_case_exact_attribute()
65 while (i < olen) { in _wind_ldap_case_exact_attribute()
70 while(i < olen && tmp[i] == 0x20) /* skip middle spaces */ in _wind_ldap_case_exact_attribute()
/freebsd/sys/net/
H A Dmppcc.c147 uint32_t olen, off, len, idx, i, l; in MPPC_Compress() local
185 **dst = olen = i = 0; in MPPC_Compress()
203 putbits8(*dst, (uint32_t) (*src)[i], 8, &olen, &l); in MPPC_Compress()
206 &olen, &l); in MPPC_Compress()
227 putbits16(*dst, 0x3c0|off, 10, &olen, &l); in MPPC_Compress()
229 putbits16(*dst, 0xe00|(off-64), 12, &olen, &l); in MPPC_Compress()
231 putbits16(*dst, 0xc000|(off-320), 16, &olen, &l); in MPPC_Compress()
240 putbits8(*dst, 0, 1, &olen, &l); in MPPC_Compress()
242 putbits8(*dst, 0x08|(len&0x03), 4, &olen, &l); in MPPC_Compress()
244 putbits8(*dst, 0x30|(len&0x07), 6, &olen, &l); in MPPC_Compress()
[all …]
/freebsd/contrib/nvi/common/
H A Dseq.c35 CHAR_T *output, size_t olen, seq_t stype, int flags) in seq_set() argument
52 if (output == NULL || olen == 0) { in seq_set()
54 olen = 0; in seq_set()
55 } else if ((p = v_wstrdup(sp, output, olen)) == NULL) { in seq_set()
60 qp->olen = olen; in seq_set()
91 olen = 0; in seq_set()
92 } else if ((qp->output = v_wstrdup(sp, output, olen)) == NULL) { in seq_set()
101 qp->olen = olen; in seq_set()
279 int cnt, len, olen; in seq_dump() local
288 olen = qp->ilen, len = 0; olen > 0; --olen, ++p) in seq_dump()
[all …]
/freebsd/contrib/libfido2/src/
H A Dcompress.c17 u_long ilen, olen; in rfc1950_inflate() local
23 origsiz > ULONG_MAX || (olen = (u_long)origsiz) > BOUND) { in rfc1950_inflate()
29 if ((out->ptr = calloc(1, olen)) == NULL) in rfc1950_inflate()
31 out->len = olen; in rfc1950_inflate()
33 if ((z = uncompress(out->ptr, &olen, in->ptr, ilen)) != Z_OK || in rfc1950_inflate()
34 olen > SIZE_MAX || olen != out->len) { in rfc1950_inflate()
36 __func__, z, olen, out->len); in rfc1950_inflate()
49 u_int ilen, olen; in rfc1951_inflate() local
56 origsiz > UINT_MAX || (olen = (u_int)origsiz) > BOUND) { in rfc1951_inflate()
66 if ((out->ptr = calloc(1, olen)) == NULL) { in rfc1951_inflate()
[all …]
H A Dhid_freebsd.c160 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument
168 if (devlist == NULL || olen == NULL) in fido_hid_manifest()
171 *olen = 0; in fido_hid_manifest()
174 for (i = 0; i < MAX_UHID && *olen < ilen; i++) { in fido_hid_manifest()
176 if (copy_info_hidraw(&devlist[*olen], path) == 0) { in fido_hid_manifest()
177 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
183 ++(*olen); in fido_hid_manifest()
187 if (*olen != 0) in fido_hid_manifest()
191 for (i = 0; i < MAX_UHID && *olen < ilen; i++) { in fido_hid_manifest()
193 if (copy_info_uhid(&devlist[*olen], path) == 0) { in fido_hid_manifest()
[all …]
H A Dhid_netbsd.c125 fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) in fido_hid_manifest() argument
130 *olen = 0; in fido_hid_manifest()
135 if (devlist == NULL || olen == NULL) in fido_hid_manifest()
138 for (i = *olen = 0; i < MAX_UHID && *olen < ilen; i++) { in fido_hid_manifest()
140 if (copy_info(&devlist[*olen], path) == 0) { in fido_hid_manifest()
141 devlist[*olen].io = (fido_dev_io_t) { in fido_hid_manifest()
147 ++(*olen); in fido_hid_manifest()
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_value.c68 bhnd_nvram_type itype, void *outp, size_t *olen,
71 bhnd_nvram_type itype, void *outp, size_t *olen,
74 bhnd_nvram_type itype, void *outp, size_t *olen,
77 bhnd_nvram_type itype, void *outp, size_t *olen,
80 bhnd_nvram_type itype, void *outp, size_t *olen,
279 size_t olen; in bhnd_nvram_val_init_common() local
312 error = bhnd_nvram_value_coerce(inp, ilen, itype, NULL, &olen, otype); in bhnd_nvram_val_init_common()
317 outp = bhnd_nvram_val_alloc_bytes(value, olen, otype, flags); in bhnd_nvram_val_init_common()
322 error = bhnd_nvram_value_coerce(inp, ilen, itype, outp, &olen, otype); in bhnd_nvram_val_init_common()
421 size_t ilen, olen; in bhnd_nvram_val_convert_common() local
[all …]
H A Dbhnd_nvram_value_fmts.c66 bhnd_nvram_val *value, void *outp, size_t *olen,
74 size_t ilen, void *outp, size_t *olen,
84 void *outp, size_t *olen, bhnd_nvram_type otype);
88 size_t ilen, void *outp, size_t *olen,
92 size_t ilen, void *outp, size_t *olen,
100 size_t ilen, void *outp, size_t *olen,
104 void *outp, size_t *olen, bhnd_nvram_type otype);
263 bhnd_nvram_val_bcm_int_encode(bhnd_nvram_val *value, void *outp, size_t *olen, in bhnd_nvram_val_bcm_int_encode() argument
269 return (bhnd_nvram_val_printf(value, "%[]s", outp, olen, ",")); in bhnd_nvram_val_bcm_int_encode()
271 return (bhnd_nvram_val_generic_encode(value, outp, olen, otype)); in bhnd_nvram_val_bcm_int_encode()
[all …]
H A Dbhnd_nvram_value_subr.c393 bhnd_nvram_type itype, char *outp, size_t *olen, ...) in bhnd_nvram_value_printf() argument
398 va_start(ap, olen); in bhnd_nvram_value_printf()
399 error = bhnd_nvram_value_vprintf(fmt, inp, ilen, itype, outp, olen, ap); in bhnd_nvram_value_printf()
434 bhnd_nvram_type itype, char *outp, size_t *olen, va_list ap) in bhnd_nvram_value_vprintf() argument
446 error = bhnd_nvram_val_vprintf(&val, fmt, outp, olen, ap); in bhnd_nvram_value_vprintf()
472 const void *prev, size_t *olen) in bhnd_nvram_value_array_next() argument
483 *olen = bhnd_nvram_value_size(inp, ilen, itype, 1); in bhnd_nvram_value_array_next()
489 next = (const u_char *)prev + *olen; in bhnd_nvram_value_array_next()
498 *olen = bhnd_nvram_value_size(next, ilen - offset, itype, 1); in bhnd_nvram_value_array_next()
499 if (ilen - offset < *olen) { in bhnd_nvram_value_array_next()
[all …]
H A Dbhnd_nvram_valuevar.h37 void *outp, size_t *olen, bhnd_nvram_type otype);
39 const void *inp, size_t ilen, void *outp, size_t *olen,
42 const void *prev, size_t *olen);
68 size_t *olen, bhnd_nvram_type otype);
72 const void *inp, size_t ilen, void *outp, size_t *olen,
77 const void *prev, size_t *olen);
H A Dbhnd_nvram_value.h79 void *outp, size_t *olen,
84 size_t ilen, void *outp, size_t *olen,
88 const char *fmt, char *outp, size_t *olen,
91 const char *fmt, char *outp, size_t *olen,
95 size_t *olen, bhnd_nvram_type *otype);
102 const void *prev, size_t *olen);
/freebsd/contrib/sendmail/libsm/
H A Dutil.c172 int bufused, olen; local
184 for (ip = ibp, olen = 1; *ip != '\0'; ip++, olen++)
188 olen++;
194 if (olen > *bsp)
196 obp = sm_rpool_malloc_tagged_x(rpool, olen, tag, line, group);
198 *bsp = olen;
214 SM_ASSERT(bufused <= olen);
221 obp = sm_malloc_tagged_x(olen, tag, line + 1, group);
223 *bsp = olen;
230 SM_ASSERT(bufused < olen);
[all …]
H A Dlowercase.c133 int olen, ilen; local
160 olen = ilen + 1;
161 if (olen > outlen)
163 outlen = olen;
170 req = ucasemap_utf8FoldCase(csm, out, olen, str, ilen, &error);
173 if (req >= olen)
185 olen = outlen;
/freebsd/contrib/bsnmp/lib/
H A Dsnmpcrypto.c93 uint32_t i, keylen, olen; in snmp_pdu_calc_digest() local
120 EVP_DigestFinal(ctx, md, &olen) != 1) in snmp_pdu_calc_digest()
125 EVP_DigestUpdate(ctx, md, olen) != 1 || in snmp_pdu_calc_digest()
126 EVP_DigestFinal(ctx, md, &olen) != 1) in snmp_pdu_calc_digest()
129 if (olen < SNMP_USM_AUTH_SIZE) { in snmp_pdu_calc_digest()
130 snmp_error("bad digest size - %d", olen); in snmp_pdu_calc_digest()
180 int32_t err, olen; in snmp_pdu_encrypt() local
197 if (EVP_EncryptUpdate(ctx, pdu->scoped_ptr, &olen, pdu->scoped_ptr, in snmp_pdu_encrypt()
199 EVP_EncryptFinal(ctx, pdu->scoped_ptr + olen, &olen) != 1) in snmp_pdu_encrypt()
213 int32_t err, olen; in snmp_pdu_decrypt() local
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dbase64.c31 size_t olen; in base64_gen_encode() local
36 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_gen_encode()
38 olen += olen / 72; /* line feeds */ in base64_gen_encode()
39 olen++; /* nul termination */ in base64_gen_encode()
40 if (olen < len) in base64_gen_encode()
42 out = os_malloc(olen); in base64_gen_encode()
93 size_t i, count, olen; in base64_gen_decode() local
112 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode()
113 pos = out = os_malloc(olen); in base64_gen_decode()
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c77 unsigned char *out, size_t olen);
290 unsigned char *out, size_t olen) in tls1_prf_P_hash() argument
324 if (olen > chunk) { in tls1_prf_P_hash()
331 if (olen <= chunk) { in tls1_prf_P_hash()
335 memcpy(out, Ai, olen); in tls1_prf_P_hash()
338 if (!EVP_MAC_final(ctx, out, NULL, olen)) in tls1_prf_P_hash()
343 olen -= chunk; in tls1_prf_P_hash()
376 unsigned char *out, size_t olen) in tls1_prf_alg() argument
387 seed, seed_len, out, olen)) in tls1_prf_alg()
390 if ((tmp = OPENSSL_malloc(olen)) == NULL) { in tls1_prf_alg()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dfils_hlp.c59 u8 opt, olen; in fils_dhcp_request() local
66 olen = *pos++; in fils_dhcp_request()
67 if (olen > end - pos) in fils_dhcp_request()
72 if (olen > 0) in fils_dhcp_request()
80 os_memmove(pos, pos + 2 + olen, end - pos - 2 - olen); in fils_dhcp_request()
81 end -= 2 + olen; in fils_dhcp_request()
82 olen = 0; in fils_dhcp_request()
85 pos += olen; in fils_dhcp_request()
98 u8 opt, olen; in fils_dhcp_request() local
105 olen = *pos++; in fils_dhcp_request()
[all …]
/freebsd/contrib/one-true-awk/testdir/
H A Dt.roff4 if (n + olen >= 60) {
6 olen = n
10 olen += n
17 olen = 0
21 if (olen > 0)
/freebsd/usr.sbin/ppp/
H A Ddeflate.c74 int olen, ilen, len, res, flush; in DeflateOutput() local
110 olen = 0; in DeflateOutput()
136 olen += (mo->m_len = DEFLATE_CHUNK_LEN); in DeflateOutput()
144 olen += (mo->m_len = DEFLATE_CHUNK_LEN - state->cx.avail_out); in DeflateOutput()
145 olen -= 4; /* exclude the trailing EMPTY_BLOCK */ in DeflateOutput()
151 if (olen >= ilen) { in DeflateOutput()
155 ilen, olen, *proto); in DeflateOutput()
169 for (len = mo->m_len; len < olen; mo = mo->m_next, len += mo->m_len) in DeflateOutput()
171 mo->m_len -= len - olen; in DeflateOutput()
178 ccp->compout += olen; in DeflateOutput()
[all …]
/freebsd/sys/powerpc/powernv/
H A Dopal_console.c344 uint64_t olen = (uint64_t)&len; in uart_opal_get() local
348 olen = vtophys(&len); in uart_opal_get()
352 err = opal_call(OPAL_CONSOLE_READ, sc->vtermid, olen, obuf); in uart_opal_get()
404 uint64_t olen = (uint64_t)&len; in uart_opal_put() local
411 uart_opal_real_map_outbuffer(&obuf, &olen); in uart_opal_put()
412 *(uint64_t*)olen = htobe64(*(uint64_t*)olen); in uart_opal_put()
413 err = opal_call(OPAL_CONSOLE_WRITE, sc->vtermid, olen, obuf); in uart_opal_put()
414 *(uint64_t*)olen = be64toh(*(uint64_t*)olen); in uart_opal_put()
[all...]
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_conv.c801 size_t len, olen; in dos2unixchr() local
805 olen = len = 4; in dos2unixchr()
809 ilen, (char **)&outp, &olen, KICONV_LOWER); in dos2unixchr()
812 ilen, (char **)&outp, &olen); in dos2unixchr()
813 len -= olen; in dos2unixchr()
847 size_t len, ucslen, unixlen, olen; in unix2doschr() local
887 olen = len = 2; in unix2doschr()
890 ilen, &outp, &olen, KICONV_FROM_UPPER); in unix2doschr()
891 len -= olen; in unix2doschr()
922 size_t ilen, olen, len; in win2unixchr() local
[all …]
/freebsd/contrib/smbfs/lib/smb/
H A Dkiconv.c53 size_t olen; in kiconv_add_xlat_table() local
63 olen = sizeof(dout); in kiconv_add_xlat_table()
66 if (sysctlbyname("net.smb.fs.iconv.add", &dout, &olen, &din, sizeof(din)) == -1) { in kiconv_add_xlat_table()
72 if (sysctlbyname("kern.iconv.add", &dout, &olen, &din, sizeof(din)) == -1) in kiconv_add_xlat_table()
/freebsd/libexec/revnetgroup/
H A Dparse_netgroup.c283 int len, olen; in read_for_group() local
312 olen = 0; in read_for_group()
325 linep = (char *)malloc(olen + len + 1); in read_for_group()
326 if (olen > 0) { in read_for_group()
327 bcopy(olinep, linep, olen); in read_for_group()
330 bcopy(pos, linep + olen, len); in read_for_group()
331 olen += len; in read_for_group()
332 *(linep + olen) = '\0'; in read_for_group()

1234567