Home | History | Annotate | Download | only in kernel_CryptoAPI

Lines Matching refs:libc

94         libc = ctypes.CDLL("libc.so.6", use_errno=True)
98 libc.socket.argtypes = [ ctypes.c_int, ctypes.c_int, ctypes.c_int ]
99 libc.bind.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_int ]
100 libc.send.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_size_t,
102 libc.recv.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_size_t,
105 sock = libc.socket(AF_ALG, SOCK_SEQPACKET, 0)
107 libc.perror("socket")
111 if libc.bind(sock, ctypes.addressof(alg), ctypes.sizeof(alg)) == -1:
112 libc.perror("bind")
115 fd = libc.accept(sock, None, 0)
117 libc.perror("accept")
121 if libc.send(fd, ctypes.addressof(message), ctypes.sizeof(message), 0) == -1:
122 libc.perror("send")
126 ret = libc.recv(fd, ctypes.addressof(out), ctypes.sizeof(out), 0)
128 libc.perror("recv")
133 libc.close(sock)