Home
last modified time | relevance | path

Searched refs:authkey (Results 1 – 1 of 1) sorted by relevance

/net/sctp/
Dsocket.c3188 struct sctp_authkey *authkey; in sctp_setsockopt_auth_key() local
3198 authkey = kmalloc(optlen, GFP_KERNEL); in sctp_setsockopt_auth_key()
3199 if (!authkey) in sctp_setsockopt_auth_key()
3202 if (copy_from_user(authkey, optval, optlen)) { in sctp_setsockopt_auth_key()
3207 if (authkey->sca_keylength > optlen - sizeof(struct sctp_authkey)) { in sctp_setsockopt_auth_key()
3212 asoc = sctp_id2assoc(sk, authkey->sca_assoc_id); in sctp_setsockopt_auth_key()
3213 if (!asoc && authkey->sca_assoc_id && sctp_style(sk, UDP)) { in sctp_setsockopt_auth_key()
3218 ret = sctp_auth_set_key(sctp_sk(sk)->ep, asoc, authkey); in sctp_setsockopt_auth_key()
3220 kfree(authkey); in sctp_setsockopt_auth_key()