Lines Matching refs:authkey
3630 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() argument
3642 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3644 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3647 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3648 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_auth_key()
3653 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3658 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_auth_key()
3660 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_auth_key()
3661 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3662 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3669 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_auth_key()
3670 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3672 int res = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3680 memzero_explicit(authkey, optlen); in sctp_setsockopt_auth_key()