del.c (72445) | del.c (78527) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1997, 1998, 2000 Kungliga Tekniska H�gskolan | 2 * Copyright (c) 1997 - 2001 Kungliga Tekniska H�gskolan |
3 * (Royal Institute of Technology, Stockholm, Sweden). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include "kadmin_locl.h" 35 | 3 * (Royal Institute of Technology, Stockholm, Sweden). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include "kadmin_locl.h" 35 |
36RCSID("$Id: del.c,v 1.5 2000/09/10 19:17:00 joda Exp $"); | 36RCSID("$Id: del.c,v 1.6 2001/05/07 05:30:50 assar Exp $"); |
37 38static int 39do_del_entry(krb5_principal principal, void *data) 40{ 41 return kadm5_delete_principal(kadm_handle, principal); 42} 43 44static struct getargs args[] = { --- 25 unchanged lines hidden (view full) --- 70 return 0; 71 } 72 if(optind == argc || help_flag) { 73 usage (); 74 return 0; 75 } 76 77 for(i = 1; i < argc; i++) | 37 38static int 39do_del_entry(krb5_principal principal, void *data) 40{ 41 return kadm5_delete_principal(kadm_handle, principal); 42} 43 44static struct getargs args[] = { --- 25 unchanged lines hidden (view full) --- 70 return 0; 71 } 72 if(optind == argc || help_flag) { 73 usage (); 74 return 0; 75 } 76 77 for(i = 1; i < argc; i++) |
78 ret = foreach_principal(argv[i], do_del_entry, NULL); | 78 ret = foreach_principal(argv[i], do_del_entry, "del", NULL); |
79 return 0; 80} | 79 return 0; 80} |