Lines Matching defs:authkey
3631 struct sctp_authkey *authkey,
3640 /* authkey->sca_keylength is u16, so optlen can't be bigger than
3643 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey));
3645 if (authkey->sca_keylength > optlen - sizeof(*authkey))
3648 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id);
3649 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC &&
3654 ret = sctp_auth_set_key(ep, asoc, authkey);
3659 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC;
3661 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC ||
3662 authkey->sca_assoc_id == SCTP_ALL_ASSOC) {
3663 ret = sctp_auth_set_key(ep, asoc, authkey);
3670 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC ||
3671 authkey->sca_assoc_id == SCTP_ALL_ASSOC) {
3673 int res = sctp_auth_set_key(ep, asoc, authkey);
3681 memzero_explicit(authkey, optlen);