4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-13 04:29:09 +08:00
Ken Brown 852fb2afba Cygwin: AF_UNIX: allow more than one control message
Previously, create_cmsg_data and evaluate_cmsg_data required the
ancillary data to contain only a single control message, of type
SCM_CREDENTIALS.  In preparation for supporting SCM_RIGHTS in the
future, allow more than one.

create_cmsg_data now iterates through the specified control messages
and allows both SCM_CREDENTIALS and SCM_RIGHTS.  If no SCM_CREDENTIALS
message is present, it creates one.  This was previously done in
sendmsg.

evaluate_cmsg_data also iterates through the received control messages
and allows both SCM_CREDENTIALS and SCM_RIGHTS.  Control messages of
type SCM_CREDENTIALS are discarded unless the SO_PASSCRED option has
been set.

Update tests.
2020-11-01 15:58:00 -05:00
..
2020-10-14 10:54:29 -04:00
2020-10-14 10:54:21 -04:00
2020-10-14 10:54:29 -04:00
2016-06-25 00:43:01 +02:00
2020-10-14 10:54:03 -04:00
2020-10-14 10:54:03 -04:00
2018-02-20 17:59:53 +01:00
2020-10-14 10:54:29 -04:00
2020-10-19 17:54:55 -04:00
2017-03-27 22:03:58 +01:00
2015-08-17 11:05:43 +02:00
2020-10-14 10:54:29 -04:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2020-10-28 10:38:49 -04:00
2020-10-21 19:51:02 -04:00
2020-10-14 10:54:29 -04:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:56 -04:00
2020-10-14 10:54:21 -04:00