Path: blob/main/crypto/krb5/src/include/adm_proto.h
34889 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/* include/adm_proto.h */2/*3* Copyright 1995, 2007,2008,2009 by the Massachusetts Institute of Technology.4* All Rights Reserved.5*6* Export of this software from the United States of America may7* require a specific license from the United States Government.8* It is the responsibility of any person or organization contemplating9* export to obtain such a license before exporting.10*11* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and12* distribute this software and its documentation for any purpose and13* without fee is hereby granted, provided that the above copyright14* notice appear in all copies and that both that copyright notice and15* this permission notice appear in supporting documentation, and that16* the name of M.I.T. not be used in advertising or publicity pertaining17* to distribution of the software without specific, written prior18* permission. Furthermore if you modify this software you must label19* your software as modified software and not distribute it in such a20* fashion that it might be confused with the original M.I.T. software.21* M.I.T. makes no representations about the suitability of22* this software for any purpose. It is provided "as is" without express23* or implied warranty.24*/2526#ifndef KRB5_ADM_PROTO_H__27#define KRB5_ADM_PROTO_H__2829/*30* This is ugly, but avoids having to include k5-int or kdb.h for this.31*/32#ifndef KRB5_KDB5__33struct _krb5_db_entry;34typedef struct _krb5_db_entry krb5_db_entry;35#endif /* KRB5_KDB5__ */3637/* Ditto for admin.h */3839#ifndef KRB5_KDB5__40struct ___krb5_key_salt_tuple;41typedef struct ___krb5_key_salt_tuple krb5_key_salt_tuple;42#endif /* KRB5_KDB5__ */4344/*45* Function prototypes.46*/4748/* logger.c */49krb5_error_code krb5_klog_init(krb5_context, char *, char *, krb5_boolean);50void krb5_klog_set_context(krb5_context);51void krb5_klog_close(krb5_context);52int krb5_klog_syslog(int, const char *, ...)53#if !defined(__cplusplus) && (__GNUC__ > 2)54__attribute__((__format__(__printf__, 2, 3)))55#endif56;57void krb5_klog_reopen (krb5_context);5859/* alt_prof.c */60krb5_error_code krb5_aprof_getvals(krb5_pointer, const char **, char ***);61krb5_error_code krb5_aprof_get_boolean(krb5_pointer, const char **, int,62krb5_boolean *);63krb5_error_code krb5_aprof_get_deltat(krb5_pointer, const char **,64krb5_boolean, krb5_deltat *);65krb5_error_code krb5_aprof_get_string(krb5_pointer, const char **,66krb5_boolean, char **);67krb5_error_code krb5_aprof_get_string_all(krb5_pointer, const char **,68char **);69krb5_error_code krb5_aprof_get_int32(krb5_pointer, const char **,70krb5_boolean, krb5_int32 *);7172/* str_conv.c */73krb5_error_code krb5_flagspec_to_mask(const char *,74krb5_flags *, krb5_flags *);75krb5_error_code krb5_flagnum_to_string(int, char **);76krb5_error_code krb5_flags_to_strings(krb5_int32, char ***);7778/* keysalt.c */79krb5_boolean krb5_keysalt_is_present(krb5_key_salt_tuple *, krb5_int32,80krb5_enctype, krb5_int32);81krb5_error_code krb5_keysalt_iterate(krb5_key_salt_tuple *, krb5_int32,82krb5_boolean,83krb5_error_code (*)(krb5_key_salt_tuple *,84krb5_pointer),85krb5_pointer);8687krb5_error_code krb5_string_to_keysalts(const char *, const char *,88const char *, krb5_boolean,89krb5_key_salt_tuple **, krb5_int32 *);90#endif /* KRB5_ADM_PROTO_H__ */919293