Lines Matching refs:authkey
3620 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() argument
3632 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3634 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3637 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3638 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_auth_key()
3643 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3648 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_auth_key()
3650 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_auth_key()
3651 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3652 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3659 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_auth_key()
3660 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3662 int res = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3670 memzero_explicit(authkey, optlen); in sctp_setsockopt_auth_key()