2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2N/A/*
2N/A * lib/krb5/os/os-proto.h
2N/A *
2N/A * Copyright 1990,1991,2009 by the Massachusetts Institute of Technology.
2N/A * All Rights Reserved.
2N/A *
2N/A * Export of this software from the United States of America may
2N/A * require a specific license from the United States Government.
2N/A * It is the responsibility of any person or organization contemplating
2N/A * export to obtain such a license before exporting.
2N/A *
2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
2N/A * distribute this software and its documentation for any purpose and
2N/A * without fee is hereby granted, provided that the above copyright
2N/A * notice appear in all copies and that both that copyright notice and
2N/A * this permission notice appear in supporting documentation, and that
2N/A * the name of M.I.T. not be used in advertising or publicity pertaining
2N/A * to distribution of the software without specific, written prior
2N/A * permission. Furthermore if you modify this software you must label
2N/A * your software as modified software and not distribute it in such a
2N/A * fashion that it might be confused with the original M.I.T. software.
2N/A * M.I.T. makes no representations about the suitability of
2N/A * this software for any purpose. It is provided "as is" without express
2N/A * or implied warranty.
2N/A *
2N/A *
2N/A * LIBOS internal function prototypes.
2N/A */
2N/A
2N/A#ifndef KRB5_LIBOS_INT_PROTO__
2N/A#define KRB5_LIBOS_INT_PROTO__
2N/A
2N/Astruct addrlist;
2N/Akrb5_error_code krb5_locate_kdc(krb5_context, const krb5_data *,
2N/A struct addrlist *, int, int, int);
2N/A
2N/A/* Solaris Kerberos */
2N/Akrb5_error_code krb5_get_servername(krb5_context,
2N/A const krb5_data *,
2N/A const char *, const char *,
2N/A char *,
2N/A unsigned short *);
2N/A
2N/A#ifdef HAVE_NETINET_IN_H
2N/Akrb5_error_code krb5_unpack_full_ipaddr(krb5_context,
2N/A const krb5_address *,
2N/A krb5_int32 *,
2N/A krb5_int16 *);
2N/A
2N/Akrb5_error_code krb5_make_full_ipaddr(krb5_context,
2N/A krb5_int32,
2N/A int, /* unsigned short promotes to signed int */
2N/A krb5_address **);
2N/A
2N/A#endif /* HAVE_NETINET_IN_H */
2N/A
2N/Akrb5_error_code krb5_try_realm_txt_rr(const char *, const char *,
2N/A char **realm);
2N/A
2N/A/* Obsolete interface - leave prototype here until code removed */
2N/Akrb5_error_code krb5_secure_config_files(krb5_context ctx);
2N/A
2N/Avoid krb5int_debug_fprint (const char *fmt, ...);
2N/A
2N/Aint _krb5_use_dns_realm (krb5_context);
2N/Aint _krb5_use_dns_kdc (krb5_context);
2N/Aint _krb5_conf_boolean (const char *);
2N/A
2N/Akrb5_error_code krb5int_sendto(krb5_context context, const krb5_data *message,
2N/A const struct addrlist *addrs,
2N/A struct sendto_callback_info* callback_info,
2N/A krb5_data *reply, struct sockaddr *localaddr,
2N/A socklen_t *localaddrlen,
2N/A struct sockaddr *remoteaddr, socklen_t *remoteaddrlen,
2N/A int *addr_used,
2N/A int (*msg_handler)(krb5_context, const krb5_data *, void *),
2N/A void *msg_handler_data);
2N/A
2N/Akrb5_error_code krb5int_get_fq_local_hostname(char *, size_t);
2N/A
2N/A/* The io vector is *not* const here, unlike writev()! */
2N/Aint krb5int_net_writev (krb5_context, int, sg_buf *, int);
2N/A
2N/A#include "k5-thread.h"
2N/Aextern k5_mutex_t krb5int_us_time_mutex;
2N/A
2N/Aextern unsigned int krb5_max_skdc_timeout;
2N/Aextern unsigned int krb5_skdc_timeout_shift;
2N/Aextern unsigned int krb5_skdc_timeout_1;
2N/Aextern unsigned int krb5_max_dgram_size;
2N/A
2N/A
2N/A#endif /* KRB5_LIBOS_INT_PROTO__ */