Lines Matching refs:authkey
3617 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() argument
3629 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3631 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3634 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3635 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_auth_key()
3640 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3645 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_auth_key()
3647 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_auth_key()
3648 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3649 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3656 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_auth_key()
3657 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3659 int res = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3667 memzero_explicit(authkey, optlen); in sctp_setsockopt_auth_key()