Lines Matching defs:authkey
3624 struct sctp_authkey *authkey,
3633 /* authkey->sca_keylength is u16, so optlen can't be bigger than
3636 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey));
3638 if (authkey->sca_keylength > optlen - sizeof(*authkey))
3641 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id);
3642 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC &&
3647 ret = sctp_auth_set_key(ep, asoc, authkey);
3652 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC;
3654 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC ||
3655 authkey->sca_assoc_id == SCTP_ALL_ASSOC) {
3656 ret = sctp_auth_set_key(ep, asoc, authkey);
3663 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC ||
3664 authkey->sca_assoc_id == SCTP_ALL_ASSOC) {
3666 int res = sctp_auth_set_key(ep, asoc, authkey);
3674 memzero_explicit(authkey, optlen);