Home
last modified time | relevance | path

Searched refs:tlen (Results 1 – 25 of 101) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb3_encrypt.c227 offset += tlen; in smb3_decrypt_sr()
228 resid -= tlen; in smb3_decrypt_sr()
273 if (tlen > resid) in smb3_decrypt_sr()
274 tlen = resid; in smb3_decrypt_sr()
280 resid -= tlen; in smb3_decrypt_sr()
292 if (tlen > resid) in smb3_decrypt_sr()
293 tlen = resid; in smb3_decrypt_sr()
298 resid -= tlen; in smb3_decrypt_sr()
400 if (tlen > resid) in smb3_encrypt_sr()
401 tlen = resid; in smb3_encrypt_sr()
[all …]
H A Dsmb2_signing.c258 int offset, resid, tlen, rc; in smb2_sign_calc_common() local
273 tlen = SMB2_HDR_SIZE; in smb2_sign_calc_common()
282 offset += tlen; in smb2_sign_calc_common()
283 resid -= tlen; in smb2_sign_calc_common()
306 if (tlen > resid) in smb2_sign_calc_common()
307 tlen = resid; in smb2_sign_calc_common()
312 resid -= tlen; in smb2_sign_calc_common()
321 tlen = mbuf->m_len; in smb2_sign_calc_common()
322 if (tlen > resid) in smb2_sign_calc_common()
323 tlen = resid; in smb2_sign_calc_common()
[all …]
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_icap.c355 int tlen; in vs_icap_send_option_req() local
661 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
666 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
671 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
677 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
686 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
696 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
701 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
706 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
713 hbufp += tlen; hbufsp -= tlen; in vs_icap_create_respmod_hdr()
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_rsa.c698 buf[tlen - 2] = 1; in dca_pkcs1_padding()
699 buf[tlen - 1] = 0; in dca_pkcs1_padding()
708 buf[tlen - 2] = 2; in dca_pkcs1_padding()
709 buf[tlen - 1] = 0; in dca_pkcs1_padding()
723 *tlen, flen); in dca_pkcs1_unpadding()
765 if (i > *tlen) { in dca_pkcs1_unpadding()
766 *tlen = i; in dca_pkcs1_unpadding()
776 *tlen = i; in dca_pkcs1_unpadding()
789 tlen, flen); in dca_x509_padding()
791 bzero(buf+tlen, tlen - flen); in dca_x509_padding()
[all …]
/illumos-gate/usr/src/cmd/sdiff/
H A Dsdiff.c538 slen = tlen; in getlen()
539 tlen += 8 - (tlen % 8); in getlen()
541 tlen = slen; in getlen()
549 slen = tlen; in getlen()
550 tlen++; in getlen()
552 tlen = slen; in getlen()
562 slen = tlen; in getlen()
563 tlen++; in getlen()
565 tlen = slen; in getlen()
576 slen = tlen; in getlen()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c201 int tlen; in handle_motm_hurl() local
212 tlen = POET_GET_LENG(tagp); in handle_motm_hurl()
213 if (tlen > pktlen - POET_HDRLEN) in handle_motm_hurl()
221 str[tlen] = '\0'; in handle_motm_hurl()
223 pktlen -= POET_HDRLEN + tlen; in handle_motm_hurl()
224 tagp += POET_HDRLEN + tlen; in handle_motm_hurl()
247 int tlen; in handle_ip_route_add() local
262 tlen = POET_GET_LENG(tagp); in handle_ip_route_add()
263 if (tlen > pktlen - POET_HDRLEN) in handle_ip_route_add()
270 pktlen -= POET_HDRLEN + tlen; in handle_ip_route_add()
[all …]
/illumos-gate/usr/src/cmd/newtask/
H A Dutils.c145 size_t tlen; in getdefault() local
176 tlen = len + strlen(prefix) + 1; in getdefault()
177 ret_str = safe_malloc(tlen); in getdefault()
178 (void) snprintf(ret_str, tlen, "%s%s", in getdefault()
181 tlen = len + 1; in getdefault()
182 ret_str = safe_malloc(tlen); in getdefault()
183 (void) snprintf(ret_str, tlen, "%s", tmp_cp); in getdefault()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dk5seal.c83 unsigned conflen=0, tmsglen, tlen, msglen; in make_seal_token_v1() local
196 xfree_wrap(t, tlen); in make_seal_token_v1()
203 xfree_wrap(t, tlen); in make_seal_token_v1()
219 xfree_wrap(t, tlen); in make_seal_token_v1()
237 xfree_wrap(t, tlen); in make_seal_token_v1()
249 xfree_wrap(t, tlen); in make_seal_token_v1()
295 xfree_wrap(t, tlen); in make_seal_token_v1()
317 xfree_wrap(t, tlen); in make_seal_token_v1()
330 xfree_wrap(t, tlen); in make_seal_token_v1()
341 xfree_wrap(t, tlen); in make_seal_token_v1()
[all …]
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_mpathd.c129 uint32_t tlen; in ipmp_readtlv() local
135 retval = ipmp_read(fd, &tlen, sizeof (tlen), endtp); in ipmp_readtlv()
139 *lenp = tlen; in ipmp_readtlv()
196 uint32_t tlen; in ipmp_writetlv() local
203 tlen = (uint32_t)len; in ipmp_writetlv()
209 retval = ipmp_write(fd, &tlen, sizeof (uint32_t)); in ipmp_writetlv()
213 return (ipmp_write(fd, value, tlen)); in ipmp_writetlv()
/illumos-gate/usr/src/cmd/tail/
H A Dread.c60 int ch, len, tlen; in bytes() local
88 tlen = len; in bytes()
95 if (tlen) { in bytes()
96 WR(sp, tlen); in bytes()
97 tlen = 0; in bytes()
102 if (tlen) in bytes()
103 WR(sp, tlen); in bytes()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dpppoec.c448 int tlen; in display_pppoe() local
511 tlen = 0; in display_pppoe()
530 if (tlen >= 4) { in display_pppoe()
536 tlen -= 4; in display_pppoe()
837 int tlen; in send_padr() local
862 if (tlen == 0) { in send_padr()
1075 int tlen, ttyp; in act_open() local
1131 acc_len = tlen; in act_open()
1135 serv_len = tlen; in act_open()
1179 tlen -= 4; in act_open()
[all …]
H A Dcommon.c263 int tlen; in poe_tag_copy() local
266 tlen = POET_GET_LENG(tagp) + POET_HDRLEN; in poe_tag_copy()
268 if (sizeof (*poep) + plen + tlen > PPPOE_MSGMAX) in poe_tag_copy()
270 (void) memcpy((uint8_t *)(poep + 1) + plen, tagp, tlen); in poe_tag_copy()
271 poep->poep_length = htons(tlen + plen); in poe_tag_copy()
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexd.c160 int tlen; local
240 tlen = strlen(cmdbuf) + strlen(gtxt) + 1;
242 if ((tbuf = malloc(tlen)) == NULL) {
246 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
278 int tlen; local
357 tlen = strlen(cmdbuf) + strlen(gtxt) + 1;
359 if ((tbuf = malloc(tlen)) == NULL) {
364 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
H A Daudit_rexecd.c136 int tlen; local
215 tlen = strlen(gtxt) + strlen(cmdbuf) + 1;
216 if ((tbuf = malloc(tlen)) == NULL) {
220 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
247 int tlen; local
323 tlen = strlen(gtxt) + strlen(cmdbuf) + 1;
324 if ((tbuf = malloc(tlen)) == NULL) {
327 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
H A Daudit_rshd.c102 int tlen; in generate_record() local
140 tlen = strlen(gtxt) + strlen(cmdbuf) + 1; in generate_record()
141 if ((tbuf = malloc(tlen)) == NULL) { in generate_record()
145 (void) snprintf(tbuf, tlen, gtxt, cmdbuf); in generate_record()
/illumos-gate/usr/src/uts/common/syscall/
H A Dsysteminfo.c154 unsigned int tlen, octlen; in systeminfo() local
186 tlen = octlen + IFNAMSIZ; in systeminfo()
187 tmp = kmem_alloc(tlen, KM_SLEEP); in systeminfo()
191 kmem_free(tmp, tlen); in systeminfo()
211 kmem_free(tmp, tlen); in systeminfo()
215 kmem_free(tmp, tlen); in systeminfo()
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dutil.c169 size_t tlen = strlen(args) + 1; in addlib() local
175 str = alloca(tlen); in addlib()
196 tlen = llen + 1; in addlib()
202 tlen = 0; in addlib()
213 tlen += alen; in addlib()
214 if ((str = realloc((void *)*lib, tlen)) == 0) { in addlib()
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_put.c449 bo.tlen = item->size;
648 bo.tlen = 0;
726 u_int32_t len, tlen; local
757 tlen = dbt->doff;
782 tlen = dbt->doff;
796 if (bo->tlen > dbt->doff + dbt->dlen) {
800 tlen += len;
806 tlen = dbt->doff;
813 tlen += bk->len - len;
822 tlen += dbt->size;
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dprint.c76 int err, tlen; in smb_open_printer() local
80 tlen = strlen(title); in smb_open_printer()
81 if (tlen >= SMBIOC_MAX_NAME) in smb_open_printer()
/illumos-gate/usr/src/lib/libldap5/include/ldap/
H A Dldif.h66 #define LDIF_SIZE_NEEDED(tlen,vlen) \ argument
67 ((tlen) + 4 + LDIF_BASE64_LEN(vlen) \
68 + ((LDIF_BASE64_LEN(vlen) + tlen + 3) / LDIF_MAX_LINE_WIDTH * 2 ))
/illumos-gate/usr/src/cmd/refer/
H A Dmkey2.c95 long len = 0L, tlen = 0L; in grec() local
102 tlen += strlen(tm); in grec()
105 if (tlen < MAXLINE && mindex(iglist, curtype) == 0) in grec()
107 len = tlen; in grec()
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_smb.c107 int err, sblen, tlen; in smb_smb_negotiate() local
428 tlen &= 0xFE00; in smb_smb_negotiate()
430 vcp->vc_rwmax = tlen; in smb_smb_negotiate()
431 vcp->vc_rxmax = tlen; in smb_smb_negotiate()
432 vcp->vc_wxmax = tlen; in smb_smb_negotiate()
749 tlen = strlen(tname) + 1; in smb_smb_treeconnect()
802 tlen = STYPE_LEN; in smb_smb_treeconnect()
803 bzero(stype_str, tlen--); in smb_smb_treeconnect()
804 if (tlen > bcnt) in smb_smb_treeconnect()
805 tlen = bcnt; in smb_smb_treeconnect()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_spnego/mech/
H A Dspnego_mech.c1166 unsigned int tlen = 0; in make_NegHints() local
1247 hintNameSize = tlen; in make_NegHints()
3012 unsigned int tlen, ilen; in put_mech_set() local
3014 tlen = ilen = 0; in put_mech_set()
3027 ptr = malloc(tlen); in put_mech_set()
3032 buf->length = tlen; in put_mech_set()
3461 &ptr, tlen))) in make_spnego_tokenInit_msg()
3516 tlen = 0; in make_spnego_tokenInit_msg()
3518 outbuf->length = tlen; in make_spnego_tokenInit_msg()
3535 unsigned int tlen = 0; in make_spnego_tokenTarg_msg() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_overflow.c82 __db_goff(dbp, dbt, tlen, pgno, bpp, bpsz) in __db_goff() argument
85 u_int32_t tlen;
107 needed = tlen;
348 __db_moff(dbp, dbt, pgno, tlen, cmpfunc, cmpp) in __db_moff() argument
352 u_int32_t tlen;
372 &local_dbt, tlen, pgno, &buf, &bufsize)) != 0)
/illumos-gate/usr/src/common/bignum/amd64/
H A Dbignum_amd64_asm.s450 movq %rdx, %r15 / tlen = len
451 decq %r15 / tlen = len - 1
454 movq %r15, %rdx / arg3 = tlen
457 movq %rax, 0(%r13, %r15, 8) / tr[tlen] = cy
459 decq %r15 / --tlen
460 jz .L32 / while (--tlen != 0)
466 movq %r15, %rdx / arg3 = tlen
469 movq %rax, 0(%r13, %r15, 8) / tr[tlen] = cy

12345