Lines Matching refs:authkey
3605 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() argument
3617 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3619 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3622 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3623 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_auth_key()
3628 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3633 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_auth_key()
3635 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_auth_key()
3636 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3637 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3644 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_auth_key()
3645 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3647 int res = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3655 memzero_explicit(authkey, optlen); in sctp_setsockopt_auth_key()