diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-04-10 18:36:08 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-04-12 11:03:48 -0400 |
commit | 3e0faa329b0599c775547603dea21a6e18b4029d (patch) | |
tree | 7abca79c3358f4e86f5b902e6f204e1fae7d024f /src/lib/krb5/os/os-proto.h | |
parent | e4de1f768e818911e6c035ddcbaf0127e0eccb40 (diff) | |
download | krb5-3e0faa329b0599c775547603dea21a6e18b4029d.tar.gz krb5-3e0faa329b0599c775547603dea21a6e18b4029d.tar.xz krb5-3e0faa329b0599c775547603dea21a6e18b4029d.zip |
Get rid of cm.c and cm.h
Since net-server.c now uses libverto, only sendto_kdc.c consumes cm.c.
Move stuff out of cm.c and cm.h into sendto_kdc.c and get rid of them.
Change the sendto_kdc callback (used by chpw.c) to receive the socket
descriptor instead of the entire conn_state structure, and move the
declarations into os-proto.h. struct remote_address also needs to be
in os-proto.h so that trace.c and t_trace.c can use it. k5_curtime
isn't needed since k5-platform.h now guarantees the presence of
gettimeofday().
Diffstat (limited to 'src/lib/krb5/os/os-proto.h')
-rw-r--r-- | src/lib/krb5/os/os-proto.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/krb5/os/os-proto.h b/src/lib/krb5/os/os-proto.h index 83c9d65f92..78f2caa548 100644 --- a/src/lib/krb5/os/os-proto.h +++ b/src/lib/krb5/os/os-proto.h @@ -55,6 +55,19 @@ struct serverlist { }; #define SERVERLIST_INIT { NULL, 0 } +struct remote_address { + int family; + int type; + socklen_t len; + struct sockaddr_storage saddr; +}; + +struct sendto_callback_info { + int (*pfn_callback)(SOCKET fd, void *data, krb5_data *message); + void (*pfn_cleanup)(void *data, krb5_data *message); + void *data; +}; + krb5_error_code k5_locate_server(krb5_context, const krb5_data *realm, struct serverlist *, enum locate_service_type svc, int socktype); |