Lines Matching refs:authkey
3624 struct sctp_authkey *authkey, in sctp_setsockopt_auth_key() argument
3636 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3638 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3641 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3642 if (!asoc && authkey->sca_assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_auth_key()
3647 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3652 authkey->sca_assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_auth_key()
3654 if (authkey->sca_assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_auth_key()
3655 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3656 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3663 if (authkey->sca_assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_auth_key()
3664 authkey->sca_assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_auth_key()
3666 int res = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3674 memzero_explicit(authkey, optlen); in sctp_setsockopt_auth_key()