Files
heimdal/krb5_locl.h
Johan Danielsson a9a0d3bd65 Add some prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@873 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-21 23:10:52 +00:00

67 lines
1.4 KiB
C

#ifndef __KRB5_LOCL_H__
#define __KRB5_LOCL_H__
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
extern int ioctl(int, int, ...);
#include <sys/param.h>
#include <time.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
#include <des.h>
#include "krb5.h"
void krb5_data_free(krb5_data *);
krb5_error_code krb5_data_alloc(krb5_data *, int);
krb5_error_code krb5_data_realloc(krb5_data *, int);
krb5_error_code krb5_data_copy(krb5_data *, void *, size_t);
krb5_error_code krb5_principal_alloc(krb5_principal*);
void krb5_principal_free(krb5_principal);
krb5_error_code krb5_get_lrealm(char ** realm);
krb5_error_code
krb5_parse_config_file(k5_cfile **cfile, const char *filename);
krb5_error_code
krb5_get_config_tag(k5_cfile *cf, const char *tag, char **value);
int
krb5_getportbyname (const char *service,
const char *proto,
int default_port);
krb5_error_code
krb5_sendto_kdc (krb5_context context,
const krb5_data *send,
const krb5_data *realm,
krb5_data *receive);
#define ALLOC(N, X) ((X*)malloc((N) * sizeof(X)))
#define FREE(X) do{if(X)free(X);}while(0)
#define RCSID(X) static char *rcsid[] = { (char*)rcsid, X }
#endif /* __KRB5_LOCL_H__ */