Lines Matching refs:authkey
3631 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() argument
3643 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3645 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3648 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3649 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_auth_key()
3654 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3659 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_auth_key()
3661 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_auth_key()
3662 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3663 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3670 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_auth_key()
3671 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3673 int res = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3681 memzero_explicit(authkey, optlen); in sctp_setsockopt_auth_key()