Lines Matching defs:authkey
3630 struct sctp_authkey *authkey,
3639 /* authkey->sca_keylength is u16, so optlen can't be bigger than
3642 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey));
3644 if (authkey->sca_keylength > optlen - sizeof(*authkey))
3647 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id);
3648 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC &&
3653 ret = sctp_auth_set_key(ep, asoc, authkey);
3658 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC;
3660 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC ||
3661 authkey->sca_assoc_id == SCTP_ALL_ASSOC) {
3662 ret = sctp_auth_set_key(ep, asoc, authkey);
3669 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC ||
3670 authkey->sca_assoc_id == SCTP_ALL_ASSOC) {
3672 int res = sctp_auth_set_key(ep, asoc, authkey);
3680 memzero_explicit(authkey, optlen);