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()
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()
106 ret = wind_stringprep(t->in, t->ilen, out, &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()
206 &olen, &l); in MPPC_Compress()
227 putbits16(*dst, 0x3c0|off, 10, &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()
281 putbits8(*dst, 0, l, &olen, &l); in MPPC_Compress()
286 if (*srcCnt < olen) in MPPC_Compress()
294 *dst += olen; in MPPC_Compress()
[all …]
/freebsd/contrib/nvi/common/
H A Dseq.c54 olen = 0; in seq_set()
60 qp->olen = olen; in seq_set()
91 olen = 0; 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()
295 olen = qp->olen, len = 0; olen > 0; --olen, ++p) in seq_dump()
304 olen = qp->nlen; olen > 0; --olen, ++p) in seq_dump()
323 size_t olen; in seq_save() local
332 for (p = qp->input, olen = qp->ilen; olen > 0; --olen) { in seq_save()
[all …]
/freebsd/contrib/libfido2/src/
H A Dcompress.c17 u_long ilen, olen; in rfc1950_inflate() local
31 out->len = olen; 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
70 out->len = olen; in rfc1951_inflate()
74 zs.avail_out = olen; in rfc1951_inflate()
104 u_int ilen, olen; in rfc1951_deflate() local
120 olen = BOUND; in rfc1951_deflate()
125 out->len = olen; in rfc1951_deflate()
[all …]
H A Dhid_freebsd.c168 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()
194 devlist[*olen].io = (fido_dev_io_t) { 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.c279 size_t olen; in bhnd_nvram_val_init_common() local
673 limit = *olen; in bhnd_nvram_val_encode_null()
691 *olen = nbytes; in bhnd_nvram_val_encode_null()
718 limit = *olen; in bhnd_nvram_val_encode_bool()
769 *olen = nbytes; in bhnd_nvram_val_encode_bool()
838 limit = *olen; in bhnd_nvram_val_encode_string()
852 *olen = 0; in bhnd_nvram_val_encode_string()
1023 (*olen)++; in bhnd_nvram_val_encode_string()
1062 limit = *olen; in bhnd_nvram_val_encode_int()
1297 *olen = nbytes; in bhnd_nvram_val_encode_int()
[all …]
H A Dbhnd_nvram_value_fmts.c88 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,
291 outp, olen, otype)); in bhnd_nvram_val_bcm_hex_encode_elem()
312 stype, outp, olen, otype)); in bhnd_nvram_val_bcm_hex_encode_elem()
324 outp, olen, width)); in bhnd_nvram_val_bcm_hex_encode_elem()
343 outp, olen, otype)); in bhnd_nvram_val_bcm_decimal_encode_elem()
427 limit = *olen; in bhnd_nvram_val_bcm_leddc_encode_elem()
551 *olen = nbytes; in bhnd_nvram_val_bcm_leddc_encode_elem()
712 size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_bcm_macaddr_encode() argument
[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()
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()
530 void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_value_coerce() argument
[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()
126 EVP_DigestFinal(ctx, md, &olen) != 1) in snmp_pdu_calc_digest()
129 if (olen < SNMP_USM_AUTH_SIZE) { in snmp_pdu_calc_digest()
180 int32_t err, olen; in snmp_pdu_encrypt() local
199 EVP_EncryptFinal(ctx, pdu->scoped_ptr + olen, &olen) != 1) in snmp_pdu_encrypt()
213 int32_t err, olen; in snmp_pdu_decrypt() local
233 EVP_DecryptFinal(ctx, pdu->scoped_ptr + olen, &olen) != 1) in snmp_pdu_decrypt()
249 uint32_t keylen, olen; in snmp_passwd_to_keys() local
295 uint32_t keylen, olen; in snmp_get_local_keys() 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);
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
390 if ((tmp = OPENSSL_malloc(olen)) == NULL) { in tls1_prf_alg()
397 OPENSSL_clear_free(tmp, olen); in tls1_prf_alg()
400 for (i = 0; i < olen; i++) in tls1_prf_alg()
[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/contrib/wpa/src/ap/
H A Dfils_hlp.c59 u8 opt, olen; in fils_dhcp_request() local
66 olen = *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()
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()
114 pos += olen; in fils_dhcp_request()
202 u8 opt, olen; in fils_dhcp_handler() local
[all …]
/freebsd/usr.sbin/ppp/
H A Ddeflate.c74 int olen, ilen, len, res, flush; in DeflateOutput() local
110 olen = 0; in DeflateOutput()
151 if (olen >= ilen) { in DeflateOutput()
171 mo->m_len -= len - olen; in DeflateOutput()
178 ccp->compout += olen; in DeflateOutput()
181 ilen, olen, *proto); in DeflateOutput()
204 int ilen, olen; in DeflateInput() local
254 olen = 0; in DeflateInput()
315 olen -= 2; in DeflateInput()
318 ccp->uncompin += olen; in DeflateInput()
[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()
428 uart_opal_real_map_outbuffer(&obuf, &olen); in uart_opal_put()
429 *(uint64_t*)olen = htobe64(*(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()
813 len -= olen; in dos2unixchr()
887 olen = len = 2; in unix2doschr()
891 len -= olen; in unix2doschr()
922 size_t ilen, olen, len; in win2unixchr() local
931 olen = len = 4; in win2unixchr()
935 len -= olen; in win2unixchr()
959 size_t olen; in unix2winchr() local
966 olen = 2; in unix2winchr()
[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