summaryrefslogtreecommitdiffstats
path: root/winsup/utils/mkgroup.c
diff options
context:
space:
mode:
authorEgor Duda <deo@logos-m.ru>2001-04-09 07:21:32 +0000
committerEgor Duda <deo@logos-m.ru>2001-04-09 07:21:32 +0000
commit619f7fa0324c0eecdb7d32c5721c46b7d9a7f80b (patch)
tree0462f1c72eccd24184399cf1db47f005eff59cab /winsup/utils/mkgroup.c
parentc08e6c44304063ee61333154339c523ad2f7d6aa (diff)
downloadcygnal-619f7fa0324c0eecdb7d32c5721c46b7d9a7f80b.tar.gz
cygnal-619f7fa0324c0eecdb7d32c5721c46b7d9a7f80b.tar.bz2
cygnal-619f7fa0324c0eecdb7d32c5721c46b7d9a7f80b.zip
* fhandler.h (class fhandler_socket): Add members and methods to
support secure connections on AF_UNIX sockets. * fhandler_socket.cc (fhandler_socket::set_connect_secret): New method. (fhandler_socket::get_connect_secret): Ditto. (fhandler_socket::create_secret_event): Ditto. (fhandler_socket::close_secret_event): Ditto. (fhandler_socket::check_peer_secret_event): Ditto. (fhandler_socket::fixup_after_fork): Duplicate secret event to child. (fhandler_socket::dup): Copy address family. (fhandler_socket::close): Close secret event. * net.cc (get_inet_addr): Read secret cookie. (cygwin_connect): Check if peer knows secret cookie value. (cygwin_accept): Ditto. Copy address family to newly created socket. (cygwin_bind): Generate and write secret cookie. (wsock_init): Initialize random number generator.
Diffstat (limited to 'winsup/utils/mkgroup.c')
0 files changed, 0 insertions, 0 deletions