ext.c (55682) | ext.c (78527) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1997 - 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: ext.c,v 1.5 2000/01/02 03:58:02 assar Exp $"); | 36RCSID("$Id: ext.c,v 1.6 2001/05/07 05:31:12 assar Exp $"); |
37 38struct ext_keytab_data { 39 krb5_keytab keytab; 40}; 41 42static struct getargs args[] = { 43 { "keytab", 'k', arg_string, NULL, "keytab to use" }, 44}; --- 57 unchanged lines hidden (view full) --- 102 krb5_warn(context, ret, "krb5_kt_resolve"); 103 return 0; 104 } 105 106 argc -= optind; 107 argv += optind; 108 109 for(i = 0; i < argc; i++) | 37 38struct ext_keytab_data { 39 krb5_keytab keytab; 40}; 41 42static struct getargs args[] = { 43 { "keytab", 'k', arg_string, NULL, "keytab to use" }, 44}; --- 57 unchanged lines hidden (view full) --- 102 krb5_warn(context, ret, "krb5_kt_resolve"); 103 return 0; 104 } 105 106 argc -= optind; 107 argv += optind; 108 109 for(i = 0; i < argc; i++) |
110 foreach_principal(argv[i], do_ext_keytab, &data); | 110 foreach_principal(argv[i], do_ext_keytab, "ext", &data); |
111 112 krb5_kt_close(context, data.keytab); 113 114 return 0; 115} | 111 112 krb5_kt_close(context, data.keytab); 113 114 return 0; 115} |
116 | |