Lines Matching defs:sock
35 #include <net/sock.h>
37 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg,
40 struct sock *sk = sock->sk;
42 struct sock *psk = ask->parent;
47 return af_alg_sendmsg(sock, msg, size, ivsize);
50 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
53 struct sock *sk = sock->sk;
55 struct sock *psk = ask->parent;
149 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
152 struct sock *sk = sock->sk;
157 int err = _skcipher_recvmsg(sock, msg, ignored, flags);
201 static int skcipher_check_key(struct socket *sock)
204 struct sock *psk;
207 struct sock *sk = sock->sk;
236 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
241 err = skcipher_check_key(sock);
245 return skcipher_sendmsg(sock, msg, size);
248 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
253 err = skcipher_check_key(sock);
257 return skcipher_recvmsg(sock, msg, ignored, flags);
294 static void skcipher_sock_destruct(struct sock *sk)
298 struct sock *psk = ask->parent;
308 static int skcipher_accept_parent_nokey(void *private, struct sock *sk)
339 static int skcipher_accept_parent(void *private, struct sock *sk)