17f2fe78bSCy Schubert /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 27f2fe78bSCy Schubert /* kadmin/ktutil/ktutil.h */ 37f2fe78bSCy Schubert /* 47f2fe78bSCy Schubert * Copyright 1995 by the Massachusetts Institute of Technology. 57f2fe78bSCy Schubert * All Rights Reserved. 67f2fe78bSCy Schubert * 77f2fe78bSCy Schubert * Export of this software from the United States of America may 87f2fe78bSCy Schubert * require a specific license from the United States Government. 97f2fe78bSCy Schubert * It is the responsibility of any person or organization contemplating 107f2fe78bSCy Schubert * export to obtain such a license before exporting. 117f2fe78bSCy Schubert * 127f2fe78bSCy Schubert * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 137f2fe78bSCy Schubert * distribute this software and its documentation for any purpose and 147f2fe78bSCy Schubert * without fee is hereby granted, provided that the above copyright 157f2fe78bSCy Schubert * notice appear in all copies and that both that copyright notice and 167f2fe78bSCy Schubert * this permission notice appear in supporting documentation, and that 177f2fe78bSCy Schubert * the name of M.I.T. not be used in advertising or publicity pertaining 187f2fe78bSCy Schubert * to distribution of the software without specific, written prior 197f2fe78bSCy Schubert * permission. Furthermore if you modify this software you must label 207f2fe78bSCy Schubert * your software as modified software and not distribute it in such a 217f2fe78bSCy Schubert * fashion that it might be confused with the original M.I.T. software. 227f2fe78bSCy Schubert * M.I.T. makes no representations about the suitability of 237f2fe78bSCy Schubert * this software for any purpose. It is provided "as is" without express 247f2fe78bSCy Schubert * or implied warranty. 257f2fe78bSCy Schubert */ 267f2fe78bSCy Schubert 277f2fe78bSCy Schubert typedef struct _krb5_kt_list { 287f2fe78bSCy Schubert struct _krb5_kt_list *next; 297f2fe78bSCy Schubert krb5_keytab_entry *entry; 307f2fe78bSCy Schubert } *krb5_kt_list; 317f2fe78bSCy Schubert 327f2fe78bSCy Schubert krb5_error_code ktutil_free_kt_list (krb5_context, krb5_kt_list); 337f2fe78bSCy Schubert 347f2fe78bSCy Schubert krb5_error_code ktutil_delete (krb5_context, krb5_kt_list *, int); 357f2fe78bSCy Schubert 367f2fe78bSCy Schubert krb5_error_code ktutil_add (krb5_context, 377f2fe78bSCy Schubert krb5_kt_list *, 387f2fe78bSCy Schubert char *, 397f2fe78bSCy Schubert int, 407f2fe78bSCy Schubert krb5_kvno, 417f2fe78bSCy Schubert char *, 427f2fe78bSCy Schubert int, 437f2fe78bSCy Schubert char *); 447f2fe78bSCy Schubert 457f2fe78bSCy Schubert krb5_error_code ktutil_read_keytab (krb5_context, 467f2fe78bSCy Schubert char *, 477f2fe78bSCy Schubert krb5_kt_list *); 487f2fe78bSCy Schubert 497f2fe78bSCy Schubert krb5_error_code ktutil_write_keytab (krb5_context, 507f2fe78bSCy Schubert krb5_kt_list, 517f2fe78bSCy Schubert char *); 527f2fe78bSCy Schubert 53*f1c4c3daSCy Schubert void ktutil_add_entry (int, char *[], int, void *); 547f2fe78bSCy Schubert 55*f1c4c3daSCy Schubert void ktutil_clear_list (int, char *[], int, void *); 567f2fe78bSCy Schubert 57*f1c4c3daSCy Schubert void ktutil_read_v5 (int, char *[], int, void *); 587f2fe78bSCy Schubert 59*f1c4c3daSCy Schubert void ktutil_read_v4 (int, char *[], int, void *); 607f2fe78bSCy Schubert 61*f1c4c3daSCy Schubert void ktutil_write_v5 (int, char *[], int, void *); 627f2fe78bSCy Schubert 63*f1c4c3daSCy Schubert void ktutil_write_v4 (int, char *[], int, void *); 647f2fe78bSCy Schubert 65*f1c4c3daSCy Schubert void ktutil_delete_entry (int, char *[], int, void *); 667f2fe78bSCy Schubert 67*f1c4c3daSCy Schubert void ktutil_list (int, char *[], int, void *); 68