* or implied warranty.
*/
+#include <autoconf.h>
+
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#endif
#include <errno.h>
-#include <autoconf.h>
-
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
* This program performs no useful function.
*/
+#include <k5-int.h>
+#include "com_err.h"
+
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
-#include <stdio.h>
-#include <string.h>
#include <ctype.h>
-#include <errno.h>
-
-#include <k5-int.h>
-#include "com_err.h"
-
-#include "simple.h"
-
-#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include "simple.h"
+
/* for old Unixes and friends ... */
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
* or implied warranty.
*/
+#include "k5-int.h"
+#include "com_err.h"
+
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-
-#include "k5-int.h"
-#include "com_err.h"
int main (int argc, char *argv[])
{
+
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* appl/user_user/server.c - One end of user-user client-server pair */
/*
* or implied warranty.
*/
+#include "k5-int.h"
+#include "port-sockets.h"
+#include "com_err.h"
+
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-#include <stdio.h>
-#include <string.h>
#include <unistd.h>
#include <fcntl.h>
-#include <errno.h>
-
-#include "port-sockets.h"
-#include "k5-int.h"
-#include "com_err.h"
/* fd 0 is a tcp socket used to talk to the client */
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+#include "k5-platform.h"
#include <locale.h>
-#include <stdio.h>
#include <sys/types.h>
-#include "k5-platform.h"
#ifndef _WIN32
#include <unistd.h>
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+#include <k5-platform.h>
#include <krb5.h>
-#include <string.h>
#include <unistd.h>
-#include <stdio.h>
#include <time.h>
-#include <k5-platform.h>
#define TKTTIMELEFT 60*10 /* ten minutes */
/* based on @(#)setenv.c 5.2 (Berkeley) 6/27/88 */
+#include "autoconf.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "autoconf.h"
static char *_findenv(char *, int *);
* or implied warranty.
*/
-#include "ksu.h"
-#include <stdarg.h>
#include "k5-platform.h"
+#include "ksu.h"
void *xmalloc (size_t sz)
{
* or implied warranty.
*/
-#include <locale.h>
#include "k5-int.h"
+#include <locale.h>
extern int optind;
extern char *optarg;
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
#include "k5-platform.h"
+#include <locale.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-
#include "k5-int.h"
#include <kadm5/admin.h>
#include <adm_proto.h>
* or implied warranty.
*/
-#include <krb5.h>
#include <k5-platform.h>
+#include <krb5.h>
#include <locale.h>
#include <ss/ss.h>
#include "kadmin.h"
* Use is subject to license terms.
*/
-#include <stdio.h>
#include <k5-int.h>
#include <kadm5/admin.h>
#include <kadm5/server_internal.h>
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
#include <k5-int.h>
+#include <ctype.h>
#include <kdb.h>
#include <kadm5/admin.h>
#include <adm_proto.h>
* Use is subject to license terms.
*/
-#include <stdio.h>
#include <k5-int.h>
#include <kdb.h>
#include <kadm5/server_internal.h>
* Use is subject to license terms.
*/
-#include <stdio.h>
-#include <time.h>
#include <k5-int.h>
#include <kdb.h>
#include <kadm5/server_internal.h>
#include <kadm5/admin.h>
#include <adm_proto.h>
#include "kdb5_util.h"
+#include <time.h>
#if defined(HAVE_COMPILE) && defined(HAVE_STEP)
#define SOLARIS_REGEXPS
* Use is subject to license terms.
*/
-#include <stdio.h>
#include <k5-int.h>
#include <kadm5/admin.h>
#include <locale.h>
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+#include <k5-int.h>
#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include "autoconf.h"
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif
-#include <k5-int.h>
#include <kadm5/admin.h>
#include <kadm5/server_internal.h>
#include <kdb.h>
/* #pragma ident "@(#)ipropd_svc.c 1.2 04/02/20 SMI" */
-#include <stdio.h>
-#include <stdlib.h> /* getenv, exit */
+#include "k5-platform.h"
#include <signal.h>
#include <sys/types.h>
#include <sys/resource.h> /* rlimit */
#include <syslog.h>
-#include "k5-platform.h"
#include <kadm5/admin.h>
#include <kadm5/kadm_rpc.h>
#include <kadm5/server_internal.h>
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#include <k5-platform.h>
#include <errno.h>
#include <locale.h>
#include <stdio.h>
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stddef.h>
-
#include "k5-int.h"
#include "kdc_util.h"
* or implied warranty.
*/
-#include <locale.h>
-#include <stdio.h>
-#include <syslog.h>
-#include <signal.h>
-#include <errno.h>
-#include <netdb.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <sys/wait.h>
-
#include "k5-int.h"
#include "com_err.h"
#include <kadm5/admin.h>
#include <netinet/in.h>
#endif
+#include <locale.h>
+#include <syslog.h>
+#include <signal.h>
+#include <netdb.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/wait.h>
+
#if defined(NEED_DAEMON_PROTO)
extern int daemon(int, int);
#endif
/* Test vectors for PBKDF2 (from PKCS #5v2), based on RFC 3211. */
-#include <assert.h>
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-
#include "k5-int.h"
static void printhex (size_t len, const char *p)
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "sechash.h"
#include "k5-int.h"
+#include "sechash.h"
krb5_error_code k5_nss_gen_hash(HASH_HashType hashType, unsigned int icount,
const krb5_data *input, krb5_data *output);
* or implied warranty.
*/
-#include <assert.h>
-#include "k5-platform.h" /* for 64-bit support */
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
static krb5_error_code
make_seal_token_v1_iov(krb5_context context,
/* draft-ietf-krb-wg-gssapi-cfx-05 */
-#include <assert.h>
-#include "k5-platform.h" /* for 64-bit support */
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
int
gss_krb5int_rotate_left (void *ptr, size_t bufsiz, size_t rc)
* or implied warranty.
*/
-#include <assert.h>
-#include "k5-platform.h" /* for 64-bit support */
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
krb5_error_code
gss_krb5int_make_seal_token_v3_iov(krb5_context context,
* or implied warranty.
*/
-#include <assert.h>
-#include "k5-platform.h" /* for 64-bit support */
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
static OM_uint32
kg_unseal_v1_iov(krb5_context context,
* or implied warranty.
*/
-#include <assert.h>
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
krb5_error_code
kg_init_name(krb5_context context, krb5_principal principal,
* or implied warranty.
*/
-#include <assert.h>
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
#ifndef MIN /* Usually found in <sys/param.h>. */
#define MIN(_a,_b) ((_a)<(_b)?(_a):(_b))
* or implied warranty.
*/
-#include <assert.h>
-#include "k5-int.h" /* for zap() */
+#include "k5-int.h"
#include "gssapiP_krb5.h"
-#include <stdarg.h>
static int
has_unexpired_creds(krb5_gss_cred_id_t kcred,
*/
/* #pragma ident "@(#)spnego_mech.c 1.7 04/09/28 SMI" */
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <k5-int.h>
#include <krb5.h>
#include <mglueP.h>
*/
/* Implement alternate profile file handling. */
-#include "fake-addrinfo.h"
#include "k5-int.h"
+#include "fake-addrinfo.h"
#include <kadm5/admin.h>
#include "adm_proto.h"
#include <stdio.h>
*/
-#include <stdio.h>
#include "autoconf.h"
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif
+#include <stdio.h>
#include <time.h>
#include <string.h>
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include <stdio.h>
+#include <k5-int.h>
#include <netdb.h>
-#include "autoconf.h"
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif
-#include <string.h>
#include <com_err.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fake-addrinfo.h>
-#include <k5-int.h> /* for KRB5_ADM_DEFAULT_PORT */
#include <krb5.h>
-#ifdef __STDC__
-#include <stdlib.h>
-#endif
#include <kadm5/admin.h>
#include <kadm5/kadm_rpc.h>
* or implied warranty.
*/
-#include <stdio.h>
+#include "k5-int.h"
#include <syslog.h>
#include <sys/param.h>
#include <gssapi/gssapi_generic.h>
-#include "k5-int.h"
#include <kadm5/server_internal.h>
#include <kadm5/admin.h>
#include "adm_proto.h"
* Use is subject to license terms.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
+#include "k5-int.h"
#include <com_err.h>
-#include "k5-int.h" /* needed for gssapiP_krb5.h */
#include <kadm5/admin.h>
#include <krb5.h>
#include <kdb_log.h>
* Use is subject to license terms.
*/
-#include <stdio.h>
-#include <stdlib.h>
#include "k5-int.h"
#include <kadm5/admin.h>
#include "server_internal.h"
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-#include <stdio.h>
#include <k5-int.h>
#include <kadm5/admin.h>
* Include files
*/
-#include <stdio.h>
-#include <string.h>
#include <k5-int.h>
-#include <osconf.h>
#include "kdb5.h"
#include "kdb_log.h"
#include "kdb5int.h"
#ifndef _KRB5_KDB5_H_
#define _KRB5_KDB5_H_
+#include <k5-int.h>
+
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <errno.h>
#include <utime.h>
-#include <utime.h>
-#include <k5-int.h>
#include "kdb.h"
#define KRB5_DB_GET_DB_CONTEXT(kcontext) (((kdb5_dal_handle*) (kcontext)->dal_handle)->db_context)
* This file contains api's for conversion of the kdb_incr_update_t
* struct(s) into krb5_db_entry struct(s) and vice-versa.
*/
+#include <k5-int.h>
#include <sys/types.h>
#include <com_err.h>
#include <locale.h>
-#include <errno.h>
#include <iprop_hdr.h>
#include "iprop.h"
-#include <k5-int.h>
#include <kdb.h>
#include <kdb_log.h>
* handle the [appdefaults] profile section
*/
-#include <stdio.h>
-#include <string.h>
#include "k5-int.h"
* or implied warranty.
*/
-#include <stdarg.h>
#include "k5-int.h"
static krb5_error_code
/*
** set password functions added by Paul W. Nelson, Thursby Software Systems, Inc.
*/
-#include <string.h>
#include "k5-int.h"
#include "k5-unicode.h"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
-#include <ctype.h>
-#include <errno.h>
#include "k5-int.h"
+#include <ctype.h>
struct param {
krb5_int32 delta;
* or implied warranty.
*/
-#include <string.h>
-
#include "k5-int.h"
#include "int-proto.h"
#include "os-proto.h"
* or implied warranty.
*/
-#include <stdarg.h>
#include "k5-int.h"
#include "int-proto.h"
* routines.
*/
-#include "krb5.h"
#include "autoconf.h"
+#include "krb5.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
-#include <ctype.h>
-#include <errno.h>
#include "k5-int.h"
+#include <ctype.h>
struct param {
krb5_int32 delta;
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-#include <assert.h>
-#include "autoconf.h"
-#include "com_err.h"
#include "k5-int.h"
#if defined(_WIN32) || defined(USE_CCAPI)
* infrastructure
*/
-#include "fake-addrinfo.h"
#include "k5-int.h"
+#include "fake-addrinfo.h"
#include "os-proto.h"
#include "../krb/auth_con.h"
#include "../krb/int-proto.h"
* or implied warranty.
*/
-#include "fake-addrinfo.h"
#include "k5-int.h"
+#include "fake-addrinfo.h"
#include "os-proto.h"
-#include <stdio.h>
#ifdef KRB5_DNS_LOOKUP
#ifdef WSHELPER
#include <wshelper.h>
/* Send packet to KDC for realm; wait for response, retransmitting
* as necessary. */
-#include "fake-addrinfo.h"
#include "k5-int.h"
+#include "fake-addrinfo.h"
#include "os-proto.h"
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
+#include "k5-platform.h"
#include "port-sockets.h"
+#include <sys/types.h>
#include <com_err.h>
#define TEST
* values from the krb5 config file(s).
*/
-#include "fake-addrinfo.h"
#include "k5-int.h"
+#include "fake-addrinfo.h"
#include <stdio.h>
#include <string.h>
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include "port-sockets.h"
-#include <com_err.h>
-
-#define TEST
#include "k5-int.h"
+#include "port-sockets.h"
#include "os-proto.h"
+#include <com_err.h>
const char *prog;
/*
* An implementation for the default replay cache type.
*/
+#include "k5-int.h"
#include "rc_base.h"
#include "rc_dfl.h"
#include "rc_io.h"
-#include "k5-int.h"
#include "rc-int.h"
/*
* or implied warranty.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-
#include "k5-int.h"
static void
*
*/
+#include "autoconf.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <gssrpc/auth.h>
#include <gssrpc/auth_unix.h>
-#include "autoconf.h"
-
/*
* Unix authenticator operations vector
*/
static char sccsid[] = "@(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI";
#endif
+#include "autoconf.h"
#include <string.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
#include <sys/errno.h>
#include <netdb.h>
-#include "autoconf.h"
/*
* Generic client creation: takes (hostname, program-number, protocol) and
/*
* clnt_perror.c
*/
+#include "autoconf.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <gssrpc/auth.h>
#include <gssrpc/clnt.h>
-#include "autoconf.h"
-
#ifndef HAVE_STRERROR
#ifdef NEED_SYS_ERRLIST
extern char *sys_errlist[];
* Simplified front end to rpc.
*/
+#include "autoconf.h"
#include <stdio.h>
/* for close() */
#include <unistd.h>
#include <netdb.h>
#include <string.h>
#include <port-sockets.h>
-#include "autoconf.h"
static struct callrpc_private {
CLIENT *client;
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "autoconf.h"
#include <stdio.h>
#include <string.h>
#include <gssrpc/rpc.h>
#include <gssrpc/pmap_clnt.h>
#include <netdb.h>
#include <sys/socket.h>
-#include "autoconf.h"
int
gssrpc_getrpcport(
* remote call and broadcast service
*/
+#include "k5-platform.h"
#include <unistd.h>
#include <gssrpc/rpc.h>
#include <gssrpc/pmap_prot.h>
#ifdef sun
#include <sys/sockio.h>
#endif
-#include <stdio.h>
-#include <errno.h>
#ifdef OSF1
#include <net/route.h>
#include <sys/mbuf.h>
#include <sys/ioctl.h>
#include <arpa/inet.h>
#define MAX_BROADCAST_SIZE 1400
-#include <string.h>
#include <port-sockets.h>
-#include "k5-platform.h" /* set_cloexec_fd */
static struct timeval timeout = { 3, 0 };
Id: svc_auth_gss.c,v 1.28 2002/10/15 21:29:36 kwc Exp
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "k5-platform.h"
#include <gssrpc/rpc.h>
#include <gssrpc/auth_gssapi.h>
#ifdef HAVE_HEIMDAL
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
#endif
-#include "k5-platform.h" /* SIZE_MAX */
#ifdef DEBUG_GSSAPI
int svc_debug_gss = DEBUG_GSSAPI;
* and a record/tcp stream.
*/
-#include <stdio.h>
-#include <string.h>
+#include "k5-platform.h"
#include <unistd.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
-#include <errno.h>
-#include <stdlib.h>
-#include "autoconf.h"
-#include "k5-platform.h" /* set_cloexec_fd */
#include <port-sockets.h>
#include <socket-utils.h>
/*extern bool_t abort();
* achieving execute-at-most-once semantics.)
*/
-#include <stdio.h>
-#include <string.h>
+#include "k5-platform.h"
#include <unistd.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
-#include <errno.h>
-#include "autoconf.h"
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <port-sockets.h>
#include <socket-utils.h>
-#include "k5-platform.h"
#ifndef GETSOCKNAME_ARG3_TYPE
*
*/
+#include "autoconf.h"
#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
-#include "autoconf.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <syslog.h>
#include <k5-int.h>
#include <k5-json.h>
#include "kdc_j_encode.h"
#include "j_dict.h"
#include <krb5/audit_plugin.h>
+#include <syslog.h>
static krb5_error_code
string_to_value(const char *in, k5_json_object obj, const char *key);
* or implied warranty.
*/
-#include <string.h>
-#include <errno.h>
#include "k5-int.h"
#include <krb5/authdata_plugin.h>
#include <assert.h>
* Sample authorization data plugin
*/
-#include <string.h>
-#include <errno.h>
#include <k5-int.h>
#include <krb5/authdata_plugin.h>
#include <kdb.h>
* $Header$
*/
+#include <k5-int.h>
#include <sys/file.h>
#include <fcntl.h>
#include <unistd.h>
-#include <k5-int.h>
#include "policy_db.h"
#include <stdlib.h>
#include <db.h>
* is wholly independent of the Postgres code.
*/
+#include "k5-platform.h"
+
#include <sys/param.h>
#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
-#include "k5-platform.h" /* mkstemp? */
-
#include "db-int.h"
#include "btree.h"
* Create / Delete / Modify / View / List policy objects.
*/
-#include <stdio.h>
-#include <time.h>
#include <k5-int.h>
#include <kadm5/admin.h>
#include "kdb5_ldap_util.h"
* Create / Modify / Destroy / View / List realm(s)
*/
-#include <stdio.h>
#include <k5-int.h>
#include <kadm5/admin.h>
#include <adm_proto.h>
* functions manage the service objects.
*/
-#include <stdio.h>
#include <k5-int.h>
#include "kdb5_ldap_util.h"
#include "kdb5_ldap_list.h"
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <k5-int.h>
#include <locale.h>
-#include <stdio.h>
#include <time.h>
-
-#include <k5-int.h>
#include <kadm5/admin.h>
#include <adm_proto.h>
#include "kdb5_ldap_util.h"
#ifndef _KDB_LDAP_H
#define _KDB_LDAP_H 1
+#include "k5-int.h"
+#include <k5-thread.h>
+#include <kdb5.h>
+#include "ldap_krbcontainer.h"
+#include "ldap_realm.h"
+
/* We want the interfaces marked "deprecated" in OpenLDAP. */
#define LDAP_DEPRECATED 1
#include <ldap.h>
# endif
#endif /* BUILD_WITH_BROKEN_LDAP */
-#include <k5-thread.h>
-#include <kdb5.h>
-#include "k5-int.h"
-#include "ldap_krbcontainer.h"
-#include "ldap_realm.h"
-
extern struct timeval timelimit;
#define DEFAULT_CONNS_PER_SERVER 5
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#include <string.h>
-#include <time.h>
-#include <ctype.h>
#include "kdb_ldap.h"
#include "ldap_misc.h"
#include "ldap_handle.h"
#include "ldap_principal.h"
#include "princ_xdr.h"
#include "ldap_pwd_policy.h"
+#include <time.h>
+#include <ctype.h>
#ifdef NEED_STRPTIME_PROTO
extern char *strptime (const char *, const char *, struct tm *);
* Use is subject to license terms.
*/
-#include <time.h>
#include "ldap_main.h"
#include "kdb_ldap.h"
#include "ldap_principal.h"
#include "ldap_pwd_policy.h"
#include "ldap_err.h"
#include <kadm5/admin.h>
+#include <time.h>
extern char* principal_attributes[];
extern char* max_pwd_life_attr[];
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <ctype.h>
#include "ldap_main.h"
#include "kdb_ldap.h"
#include "ldap_service_stash.h"
+#include <ctype.h>
/* Decode a password of the form {HEX}<hexstring>. */
static krb5_error_code
* or implied warranty.
*/
-#include <stdio.h>
-#include <errno.h>
-
#include <k5-int.h>
#include <kadm5/admin.h>
#include <kdb.h>
#ifndef _PKINIT_H
#define _PKINIT_H
+#include <k5-platform.h>
#include <krb5/krb5.h>
#include <krb5/preauth_plugin.h>
-#include <k5-platform.h>
#include <k5-int-pkinit.h>
-#include <autoconf.h>
#include <profile.h>
#include "pkinit_accessor.h"
#include "pkinit_trace.h"
* SUCH DAMAGES.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
-#include <string.h>
-#include <ctype.h>
-#include <assert.h>
-#include <dlfcn.h>
-#include <sys/stat.h>
-
#include "k5-int.h"
#include "pkinit.h"
#include "k5-json.h"
+#include <unistd.h>
+#include <dlfcn.h>
+#include <sys/stat.h>
+
/**
* Return true if we should use ContentInfo rather than SignedData. This
* happens if we are talking to what might be an old (pre-6112) MIT KDC and
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <errno.h>
-
#include "k5-platform.h"
#include "k5-buf.h"
#include "k5-utf8.h"
#include "krb5.h"
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <dirent.h>
+#include <errno.h>
+
#include <prerror.h>
#include <prmem.h>
#include <prprf.h>
* SUCH DAMAGES.
*/
-#include <errno.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "pkinit_crypto_openssl.h"
+#include "k5-buf.h"
#include <dlfcn.h>
#include <unistd.h>
#include <dirent.h>
#include <arpa/inet.h>
-#include "k5-platform.h"
-#include "k5-buf.h"
-
-#include "pkinit_crypto_openssl.h"
-
static krb5_error_code pkinit_init_pkinit_oids(pkinit_plg_crypto_context );
static void pkinit_fini_pkinit_oids(pkinit_plg_crypto_context );
#ifndef _PKINIT_CRYPTO_OPENSSL_H
#define _PKINIT_CRYPTO_OPENSSL_H
+#include "pkinit.h"
+
#include <openssl/bn.h>
#include <openssl/dh.h>
#include <openssl/x509.h>
#include <openssl/asn1.h>
#include <openssl/pem.h>
-#include "pkinit.h"
-
#define DN_BUF_LEN 256
#define MAX_CREDS_ALLOWED 20
* for SHA-1, SHA-256 and SHA-512.
*/
-#include <errno.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <dlfcn.h>
-#include <unistd.h>
-#include <dirent.h>
-
-#include "k5-platform.h"
-#include "krb5.h"
-#include "k5-int-pkinit.h"
-
#include "pkinit.h"
-#include "pkinit_crypto.h"
/* statically declare OID constants for all three algorithms */
const krb5_octet krb5_pkinit_sha1_oid[8] =
* document, currently draft-ietf-krb-wg-pkinit-alg-agility-04.txt.
*/
-#include <errno.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <dlfcn.h>
-#include <unistd.h>
-#include <dirent.h>
-
#include "k5-platform.h"
-
-#include "pkinit_crypto_openssl.h"
+#include "pkinit.h"
/**
* Initialize a krb5_data from @a s, a constant string. Note @a s is evaluated
* SUCH DAMAGES.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
-#include <string.h>
-#include <ctype.h>
-#include <assert.h>
-
-#include "k5-platform.h"
-
#include "pkinit.h"
#define FAKECERT
* SUCH DAMAGES.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <string.h>
-
#include "k5-int.h"
#include "pkinit.h"
* SUCH DAMAGES.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <string.h>
-
#include <k5-int.h>
#include "pkinit.h"
* or implied warranty.
*/
-#include <errno.h>
+#include "k5-int.h"
#include <locale.h>
-#include <stdio.h>
-#include <ctype.h>
#include <sys/file.h>
#include <signal.h>
-#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <netdb.h>
#include <fcntl.h>
-#include "k5-int.h"
#include "com_err.h"
#include "fake-addrinfo.h"
#include "kprop.h"
/* sockaddr2krbaddr() utility function used by kprop and kpropd */
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-
#include "k5-int.h"
#include "kprop.h"
+#include <sys/types.h>
+#include <sys/socket.h>
+
/*
* Convert an IPv4 or IPv6 socket address to a newly allocated krb5_address.
* There is similar code elsewhere in the tree, so this should possibly become
*/
+#include "k5-int.h"
+#include "com_err.h"
+#include "fake-addrinfo.h"
+
#include <locale.h>
-#include <stdio.h>
#include <ctype.h>
#include <sys/file.h>
#include <signal.h>
-#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netdb.h>
#include <syslog.h>
-#include "k5-int.h"
-#include "com_err.h"
-#include "fake-addrinfo.h"
-#include <errno.h>
-
#include "kprop.h"
#include <iprop_hdr.h>
#include "iprop.h"
* This module will parse the update logs on the master or slave servers.
*/
+#include "k5-int.h"
#include <locale.h>
-#include <stdio.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <time.h>
#include <limits.h>
#include <locale.h>
#include <syslog.h>
-#include "k5-int.h"
#include <kdb_log.h>
#include <kadm5/admin.h>
* decoder code paths but won't validate the results.
*/
-#include <stdio.h>
#include "k5-int.h"
#include "com_err.h"
#include "utility.h"
-
#include "ktest.h"
-#include <string.h>
-
#include "debug.h"
krb5_context test_context;
* or implied warranty.
*/
-#include <stdio.h>
#include "k5-int.h"
#include "com_err.h"
#include "utility.h"
#ifndef __UTILITY_H__
#define __UTILITY_H__
+#include "k5-int.h"
#include "krbasn1.h"
#include "asn1buf.h"
-#include "k5-int.h"
/* Aborts on failure. ealloc returns zero-filled memory. */
void *ealloc(size_t size);
* or implied warranty.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "k5-platform.h"
#ifdef _WIN32
#include <windows.h>
#include <winsock.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
-#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
#include "gss-misc.h"
#include "port-sockets.h"
#include "fake-addrinfo.h"
-#include "k5-platform.h"
static int verbose = 1;
* or implied warranty.
*/
+#include "autoconf.h"
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#include <sys/socket.h>
#endif
#include <errno.h>
-#include "autoconf.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
* or implied warranty.
*/
+#include "autoconf.h"
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#include <pthread.h>
#include <signal.h>
#endif
-#include "autoconf.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "k5-int.h"
#include "common.h"
* or implied warranty.
*/
-#include <stdio.h>
-#include <sys/time.h>
-
#include "k5-int.h"
#include "com_err.h"
+#include <sys/time.h>
#define KRB5_DEFAULT_OPTIONS 0
#define KRB5_DEFAULT_LIFE 60*60*8 /* 8 hours */
* host. On Solaris, it prints out 0.0.0.0.
*/
+#include "autoconf.h"
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
-#include "autoconf.h"
int
main(argc, argv)
* on whether "-P" is given).
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
+#include <k5-platform.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h> /* needed for IPPROTO_* on NetBSD */
-#include <k5-platform.h>
#ifdef USE_FAKE_ADDRINFO
#include "fake-addrinfo.h"
#endif
* Any missing data or mismatches are treated as errors.
*/
+#include <k5-platform.h>
+#include <k5-json.h>
#include <sys/types.h>
#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
#include <krb5.h>
-#include <k5-platform.h>
-#include <k5-json.h>
struct responder_data {
krb5_boolean called;
* or implied warranty.
*/
-#include <stdio.h>
-#include <string.h>
-#include <assert.h>
-#include "autoconf.h"
+#include "k5-platform.h"
#include "krb5.h"
#include "gssapi/gssapi.h"
-#include "k5-platform.h"
#define HAVE_DLOPEN 1
static int verbose = 1;
* initially contributed by Ken Raeburn
*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <limits.h>
-#include <assert.h>
+#include "k5-platform.h"
#include <unistd.h>
#include <pthread.h>
#include <krb5.h>
-/* for SIZE_MAX: */
-#include "k5-platform.h"
#include <sys/time.h>
#include <sys/resource.h>
* initially contributed by Ken Raeburn
*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <limits.h>
-#include <assert.h>
+#include "k5-platform.h"
#include <unistd.h>
#include <pthread.h>
#include <krb5.h>
#include <profile.h>
-/* for SIZE_MAX: */
-#include "k5-platform.h"
#include <sys/time.h>
#include <sys/resource.h>
* or implied warranty.
*/
-#include <stdio.h>
-#include <com_err.h>
-
#include "k5-int.h"
+#include <com_err.h>
#include <krb5.h>
#include <pthread.h>
* provided "as is" without express or implied warranty.
*/
-#include "autoconf.h"
-#include <stdio.h>
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include <string.h>
+#include "k5-platform.h"
#include "com_err.h"
#include "error_table.h"
-#include "k5-platform.h"
static struct et_list *et_list;
static k5_mutex_t et_list_lock = K5_MUTEX_PARTIAL_INITIALIZER;
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+#include "autoconf.h"
#include <stdio.h>
#include <errno.h>
#include "com_err.h"
#include "test1.h"
#include "test2.h"
-#include "autoconf.h"
#ifdef _WIN32
# define EXPORT_LIST
* prof-int.h
*/
+#include "k5-platform.h"
+#include "k5-thread.h"
+#include "k5-plugin.h"
+
#include <time.h>
-#include <stdio.h>
#if defined(__MACH__) && defined(__APPLE__)
#include <TargetConditionals.h>
#define PROFILE_SUPPORTS_FOREIGN_NEWLINES
#endif
-#include "k5-thread.h"
-#include "k5-platform.h"
-#include "k5-plugin.h"
#include "com_err.h"
#include "profile.h"
* For copyright information, see copyright.h.
*/
-#include <stdio.h>
-
-#include "copyright.h"
-#include "com_err.h"
#include "ss_internal.h"
+#include "com_err.h"
+#include "copyright.h"
char * ss_name(sci_idx)
int sci_idx;
#ifndef _ss_ss_internal_h
#define _ss_ss_internal_h __FILE__
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include "autoconf.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
#include "k5-platform.h"
+#include <unistd.h>
typedef void * pointer;
* these functions, and throw all this away. Pleeease? :-)
*/
-#include "port-sockets.h"
-#include "socket-utils.h"
#include "k5-platform.h"
#include "k5-thread.h"
-
+#include "port-sockets.h"
+#include "socket-utils.h"
#include "fake-addrinfo.h"
#if defined (__APPLE__) && defined (__MACH__) && 0
* needs to be generated with error tables, after util/et, which builds after
* this directory.
*/
-#include <stdarg.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include "k5-platform.h"
#include "k5-err.h"
-
#include "k5-thread.h"
-#include "k5-platform.h"
#include "supp-int.h"
/*
* these functions, and throw all this away. Pleeease? :-)
*/
-#include "port-sockets.h"
-#include "socket-utils.h"
#include "k5-platform.h"
#include "k5-thread.h"
+#include "port-sockets.h"
+#include "socket-utils.h"
#include "supp-int.h"
-#include <stdio.h>
-#include <errno.h>
-
#define IMPLEMENT_FAKE_GETADDRINFO
#include "fake-addrinfo.h"
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* This code placed in the public domain by Mark W. Eichin */
-#include <stdio.h>
#include "autoconf.h"
+#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
require pulling in socket/nsl/whatever libraries for code not using
getaddrinfo. */
-#include "port-sockets.h"
-#include "socket-utils.h"
#include "k5-platform.h"
#include "k5-thread.h"
-
-#include <stdio.h>
-#include <errno.h>
+#include "port-sockets.h"
+#include "socket-utils.h"
#define IMPLEMENT_FAKE_GETADDRINFO
#include "fake-addrinfo.h"
* or implied warranty.
*/
+#include "k5-platform.h"
#include "k5-plugin.h"
#if USE_DLOPEN
#include <dlfcn.h>
#endif
-#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#include "k5-platform.h"
-
#if USE_DLOPEN
#ifdef RTLD_GROUP
#define GROUP RTLD_GROUP
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#undef NDEBUG
-#include <assert.h>
#include "k5-platform.h"
int main ()
* or implied warranty.
*/
-#include <assert.h>
-#include <stdlib.h>
-#include <errno.h>
#define THREAD_SUPPORT_IMPL
-#include "k5-thread.h"
#include "k5-platform.h"
+#include "k5-thread.h"
#include "supp-int.h"
MAKE_INIT_FUNCTION(krb5int_thread_support_init);
* All functions return -1 if the character or string cannot be converted.
*/
-#include <assert.h>
#include "k5-platform.h"
#include "k5-utf8.h"
#include "supp-int.h"
* directory for reference, although it is not built here.
*/
+#include "autoconf.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <verto.h>
#include <verto-module.h>
#include "rename.h"
-#include "autoconf.h"
#define EV_STANDALONE 1
/* Avoid using clock_gettime, which would create a dependency on librt. */
#define EV_USE_MONOTONIC 0