diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2003-01-01 10:13:20 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2003-01-01 10:13:20 +0000 |
| commit | 0ec2f8bdb674e49958b0d2b9268d1bb12e533b66 (patch) | |
| tree | f965b62e29c65349a17c157c9a899a365ead12f0 /src/kadmin/testing | |
| parent | 6c6e5d5ca2f4283cbf597e8a063fe3fcd46d90b4 (diff) | |
| download | krb5-0ec2f8bdb674e49958b0d2b9268d1bb12e533b66.tar.gz krb5-0ec2f8bdb674e49958b0d2b9268d1bb12e533b66.tar.xz krb5-0ec2f8bdb674e49958b0d2b9268d1bb12e533b66.zip | |
Add IPv6 support to rshd test/debug code:
* compat_recv.c: Include sys/select.h and port-sockets.h.
(krb5_compat_recvauth_version): Only attempt krb4 authentication if the source
address is an IPv4 one.
(accept_a_connection): New function, derived from old krshd.c. Listen on IPv6
as well as IPv4, if possible.
* krshd.c (main): Call accept_a_connection. Change fromlen to a socklen_t.
(doit): Initialize s. Change length passed to getsockname to a socklen_t.
(recvauth): Change len to socklen_t. Cast peer IPv4 address before calling
krb5_compat_recvauth_version.
* defines.h: Include port-sockets.h.
(accept_a_connection): Declare.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15075 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/testing')
0 files changed, 0 insertions, 0 deletions
