/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 825 uint_t i, hexlen = 0, bits, alloclen; in parsekey() local 873 alloclen = sizeof (*retval) + roundup((hexlen/2 + (hexlen & 0x1)), 8); in parsekey() 874 retval = malloc(alloclen); in parsekey() 878 retval->sadb_key_len = SADB_8TO64(alloclen); in parsekey() 1659 int next, token, sa_len, alloclen, totallen = sizeof (msg), prefix; in doaddup() local 1964 alloclen = sizeof (*src) + roundup(sa_len, 8); in doaddup() 1965 src = malloc(alloclen); in doaddup() 1968 totallen += alloclen; in doaddup() 1969 src->sadb_address_len = SADB_8TO64(alloclen); in doaddup() 2001 alloclen = sizeof (*dst) + roundup(sa_len, 8); in doaddup() [all …]
|
H A D | ikeadm.c | 764 int alloclen, consumed; in parse_ident() local 770 alloclen = sizeof (sadb_ident_t) + IKEDOORROUNDUP(strlen(argv[1]) + 1); in parse_ident() 771 *idpp = idp = (sadb_ident_t *)malloc(alloclen); in parse_ident() 780 idp->sadb_ident_len = SADB_8TO64(alloclen); in parse_ident() 786 alloclen - (sizeof (sadb_ident_t))); in parse_ident() 958 uint_t i, hexlen = 0, bits, alloclen; in parse_key() local 989 alloclen = (hexlen/2 + (hexlen & 0x1)); in parse_key() 990 keyp = malloc(alloclen); in parse_key() 996 *keybuflen = alloclen; in parse_key()
|
H A D | ipsecconf.c | 2616 int cnt, len, alloclen; in pfp_delete_rule() local 2628 alloclen = sizeof (spd_msg_t) + sizeof (struct spd_rule) + in pfp_delete_rule() 2630 msg = (spd_msg_t *)malloc(alloclen); in pfp_delete_rule() 2639 (void) memset(msg, 0, alloclen); in pfp_delete_rule()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_k_decode.c | 1036 size_t alloclen; in asn1_decode_sam_challenge_2() local 1047 alloclen = end - save; in asn1_decode_sam_challenge_2() 1048 if ((val->sam_challenge_2_body.data = (char *) malloc(alloclen)) == NULL) in asn1_decode_sam_challenge_2() 1050 val->sam_challenge_2_body.length = alloclen; in asn1_decode_sam_challenge_2() 1051 memcpy(val->sam_challenge_2_body.data, save, alloclen); in asn1_decode_sam_challenge_2() 1216 size_t alloclen; 1230 alloclen = end - start; 1231 val->u.caName.data = malloc(alloclen); 1234 memcpy(val->u.caName.data, start, alloclen); 1235 val->u.caName.length = alloclen; [all …]
|
/titanic_50/usr/src/lib/libsasl/lib/ |
H A D | saslint.h | 596 size_t *alloclen, 599 #define _sasl_add_string(out, alloclen, outlen, add) \ argument 600 __sasl_add_string(gctx, out, alloclen, outlen, add) 614 int _sasl_add_string(char **out, size_t *alloclen,
|
H A D | common.c | 231 size_t *alloclen, size_t *outlen, in __sasl_add_string() argument 234 int _sasl_add_string(char **out, size_t *alloclen, in __sasl_add_string() 243 if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK) in __sasl_add_string() 1769 size_t alloclen=100; /* current allocated length */ in ___sasl_log() local 1804 result = _buf_alloc(&out, &alloclen, outlen+1); in ___sasl_log() 1824 result = _sasl_add_string(&out, &alloclen, in ___sasl_log() 1834 result = _buf_alloc(&out,&alloclen,outlen+1); in ___sasl_log() 1844 result = _sasl_add_string(&out, &alloclen, &outlen, in ___sasl_log() 1853 result = _sasl_add_string(&out, &alloclen, &outlen, in ___sasl_log() 1870 result = _sasl_add_string(&out, &alloclen, &outlen, tempbuf); in ___sasl_log() [all …]
|
/titanic_50/usr/src/uts/common/inet/ip/ |
H A D | sadb.c | 1075 int alloclen, addrsize, paddrsize, authsize, encrsize; in sadb_sa2msg() local 1110 alloclen = sizeof (sadb_msg_t) + sizeof (sadb_sa_t) + in sadb_sa2msg() 1130 alloclen += addrsize * 2; in sadb_sa2msg() 1132 alloclen += addrsize; in sadb_sa2msg() 1134 alloclen += addrsize; in sadb_sa2msg() 1138 alloclen += sizeof (sadb_x_pair_t); in sadb_sa2msg() 1147 alloclen += sizeof (sadb_lifetime_t); in sadb_sa2msg() 1153 alloclen += sizeof (sadb_lifetime_t); in sadb_sa2msg() 1158 alloclen += sizeof (sadb_lifetime_t); in sadb_sa2msg() 1183 alloclen += 2 * paddrsize; in sadb_sa2msg() [all …]
|
H A D | ipsecesp.c | 2614 uintptr_t divpoint, datalen, adj, padlen, i, alloclen; in esp_outbound() local 2876 alloclen = padlen + 2 + mac_len; in esp_outbound() 2877 adj = alloclen + (espmp->b_wptr - espmp->b_rptr); in esp_outbound() 2918 if (tailmp->b_wptr + alloclen > tailmp->b_datap->db_lim) { in esp_outbound() 2919 tailmp->b_cont = allocb(alloclen, BPRI_HI); in esp_outbound()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcip.c | 4534 uint32_t listlen, alloclen; in fcip_handle_topology() local 4547 listlen = alloclen = FCIP_MAX_PORTS; in fcip_handle_topology() 4557 if (listlen > alloclen) { in fcip_handle_topology() 4558 alloclen = listlen; in fcip_handle_topology() 4560 kmem_free(port_map, (alloclen * sizeof (fc_portmap_t))); in fcip_handle_topology() 4577 uint32_t listlen, alloclen; in fcip_handle_topology() local 4598 listlen = alloclen = FCIP_MAX_PORTS; in fcip_handle_topology() 4608 if (listlen > alloclen) { in fcip_handle_topology() 4609 alloclen = listlen; in fcip_handle_topology() 4612 (alloclen * sizeof (fc_portmap_t))); in fcip_handle_topology()
|
/titanic_50/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 3291 uint_t alloclen; in udp_prepend_header_template() local 3305 alloclen = copylen + (insert_spi ? sizeof (uint32_t) : 0); in udp_prepend_header_template() 3306 pktlen = alloclen + msgdsize(mp); in udp_prepend_header_template() 3315 iph = mp->b_rptr - alloclen; in udp_prepend_header_template() 3319 mp1 = allocb(alloclen + us->us_wroff_extra, BPRI_MED); in udp_prepend_header_template() 3328 iph = (mp->b_wptr - alloclen); in udp_prepend_header_template()
|