Lines Matching defs:authinfo

815 sctp_free_authinfo(sctp_authinfo_t * authinfo)
817 if (authinfo == NULL)
820 if (authinfo->random != NULL)
821 sctp_free_key(authinfo->random);
822 if (authinfo->peer_random != NULL)
823 sctp_free_key(authinfo->peer_random);
824 if (authinfo->assoc_key != NULL)
825 sctp_free_key(authinfo->assoc_key);
826 if (authinfo->recv_key != NULL)
827 sctp_free_key(authinfo->recv_key);
829 /* We are NOT dynamically allocating authinfo's right now... */
830 /* SCTP_FREE(authinfo, SCTP_M_AUTH_??); */
1206 if (keyid == stcb->asoc.authinfo.assoc_keyid) {
1207 sctp_free_key(stcb->asoc.authinfo.assoc_key);
1208 stcb->asoc.authinfo.assoc_key = NULL;
1210 if (keyid == stcb->asoc.authinfo.recv_keyid) {
1211 sctp_free_key(stcb->asoc.authinfo.recv_key);
1212 stcb->asoc.authinfo.recv_key = NULL;
1250 if (keyid == stcb->asoc.authinfo.active_keyid)
1323 stcb->asoc.authinfo.active_keyid = keyid;
1362 if (keyid == stcb->asoc.authinfo.active_keyid)
1530 if (stcb->asoc.authinfo.random != NULL)
1531 sctp_free_key(stcb->asoc.authinfo.random);
1532 stcb->asoc.authinfo.random = new_key;
1533 stcb->asoc.authinfo.random_len = random_len;
1534 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.assoc_keyid);
1535 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.recv_keyid);
1543 stcb->asoc.authinfo.active_keyid = stcb->sctp_ep->sctp_ep.default_keyid;
1568 if ((keyid != stcb->asoc.authinfo.assoc_keyid) ||
1569 (stcb->asoc.authinfo.assoc_key == NULL)) {
1570 if (stcb->asoc.authinfo.assoc_key != NULL) {
1572 sctp_free_key(stcb->asoc.authinfo.assoc_key);
1581 stcb->asoc.authinfo.assoc_key =
1582 sctp_compute_hashkey(stcb->asoc.authinfo.random,
1583 stcb->asoc.authinfo.peer_random, key);
1584 stcb->asoc.authinfo.assoc_keyid = keyid;
1586 stcb->asoc.authinfo.assoc_keyid);
1589 sctp_print_key(stcb->asoc.authinfo.assoc_key,
1597 (void)sctp_compute_hmac_m(stcb->asoc.peer_hmac_id, stcb->asoc.authinfo.assoc_key,
1698 if ((stcb->asoc.authinfo.recv_key == NULL) ||
1699 (stcb->asoc.authinfo.recv_keyid != shared_key_id)) {
1712 if (stcb->asoc.authinfo.recv_keyid != shared_key_id)
1716 * *)stcb->asoc.authinfo.recv_keyid);
1719 shared_key_id, stcb->asoc.authinfo.recv_keyid,
1722 if (stcb->asoc.authinfo.recv_key != NULL)
1723 sctp_free_key(stcb->asoc.authinfo.recv_key);
1724 stcb->asoc.authinfo.recv_key =
1725 sctp_compute_hashkey(stcb->asoc.authinfo.random,
1726 stcb->asoc.authinfo.peer_random, skey->key);
1727 stcb->asoc.authinfo.recv_keyid = shared_key_id;
1730 sctp_print_key(stcb->asoc.authinfo.recv_key, "Recv Key");
1745 (void)sctp_compute_hmac_m(hmac_id, stcb->asoc.authinfo.recv_key,
1991 stcb->asoc.authinfo.active_keyid = inp->sctp_ep.default_keyid;
2038 if (stcb->asoc.authinfo.random != NULL)
2039 sctp_free_key(stcb->asoc.authinfo.random);
2040 stcb->asoc.authinfo.random = new_key;
2041 stcb->asoc.authinfo.random_len = random_len;