Path: blob/main/crypto/krb5/src/kadmin/ktutil/ktutil.h
34889 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/* kadmin/ktutil/ktutil.h */2/*3* Copyright 1995 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*/2526typedef struct _krb5_kt_list {27struct _krb5_kt_list *next;28krb5_keytab_entry *entry;29} *krb5_kt_list;3031krb5_error_code ktutil_free_kt_list (krb5_context, krb5_kt_list);3233krb5_error_code ktutil_delete (krb5_context, krb5_kt_list *, int);3435krb5_error_code ktutil_add (krb5_context,36krb5_kt_list *,37char *,38int,39krb5_kvno,40char *,41int,42char *);4344krb5_error_code ktutil_read_keytab (krb5_context,45char *,46krb5_kt_list *);4748krb5_error_code ktutil_write_keytab (krb5_context,49krb5_kt_list,50char *);5152void ktutil_add_entry (int, char *[], int, void *);5354void ktutil_clear_list (int, char *[], int, void *);5556void ktutil_read_v5 (int, char *[], int, void *);5758void ktutil_read_v4 (int, char *[], int, void *);5960void ktutil_write_v5 (int, char *[], int, void *);6162void ktutil_write_v4 (int, char *[], int, void *);6364void ktutil_delete_entry (int, char *[], int, void *);6566void ktutil_list (int, char *[], int, void *);676869