Lines Matching refs:cookie
391 sctp_cookie_param_t *cookie; in sctp_make_init_ack() local
416 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack()
418 if (!cookie) in sctp_make_init_ack()
486 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack()
522 kfree(cookie); in sctp_make_init_ack()
566 void *cookie; in sctp_make_cookie_echo() local
569 cookie = asoc->peer.cookie; in sctp_make_cookie_echo()
577 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo()
1616 struct sctp_signed_cookie *cookie; in sctp_pack_cookie() local
1644 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
1651 cookie->c = asoc->c; in sctp_pack_cookie()
1653 cookie->c.raw_addr_list_len = addrs_len; in sctp_pack_cookie()
1656 cookie->c.prsctp_capable = asoc->peer.prsctp_capable; in sctp_pack_cookie()
1659 cookie->c.adaptation_ind = asoc->peer.adaptation_ind; in sctp_pack_cookie()
1662 cookie->c.expiration = ktime_add(asoc->cookie_life, in sctp_pack_cookie()
1666 memcpy(&cookie->c.peer_init[0], init_chunk->chunk_hdr, in sctp_pack_cookie()
1670 memcpy((__u8 *)&cookie->c.peer_init[0] + in sctp_pack_cookie()
1677 sg_init_one(&sg, &cookie->c, bodysize); in sctp_pack_cookie()
1683 crypto_hash_digest(&desc, &sg, bodysize, cookie->signature)) in sctp_pack_cookie()
1704 struct sctp_signed_cookie *cookie; in sctp_unpack_cookie() local
1737 cookie = chunk->subh.cookie_hdr; in sctp_unpack_cookie()
1738 bear_cookie = &cookie->c; in sctp_unpack_cookie()
1756 if (memcmp(digest, cookie->signature, SCTP_SIGNATURE_SIZE)) { in sctp_unpack_cookie()
2315 char *cookie; in sctp_process_init() local
2421 cookie = asoc->peer.cookie; in sctp_process_init()
2422 if (cookie) { in sctp_process_init()
2423 asoc->peer.cookie = kmemdup(cookie, asoc->peer.cookie_len, gfp); in sctp_process_init()
2424 if (!asoc->peer.cookie) in sctp_process_init()
2604 asoc->peer.cookie = param.cookie->body; in sctp_process_param()