1/* 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: --- 19 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 "ktutil_locl.h" 35 |
36RCSID("$Id: copy.c,v 1.9 2003/01/16 18:59:03 lha Exp $"); |
37 38 39static krb5_boolean 40compare_keyblock(const krb5_keyblock *a, const krb5_keyblock *b) 41{ 42 if(a->keytype != b->keytype || 43 a->keyvalue.length != b->keyvalue.length || 44 memcmp(a->keyvalue.data, b->keyvalue.data, a->keyvalue.length) != 0) --- 94 unchanged lines hidden (view full) --- 139 struct getargs args[] = { 140 { "help", 'h', arg_flag, NULL} 141 }; 142 143 int num_args = sizeof(args) / sizeof(args[0]); 144 int i = 0; 145 146 args[i++].value = &help_flag; |
147 148 if(getarg(args, num_args, argc, argv, &optind)) { 149 arg_printusage(args, num_args, "ktutil copy", 150 "keytab-src keytab-dest"); 151 return 1; 152 } 153 if (help_flag) { 154 arg_printusage(args, num_args, "ktutil copy", --- 93 unchanged lines hidden --- |