cpw.c (78527) | cpw.c (90926) |
---|---|
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 "kadmin_locl.h" 35 | 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 "kadmin_locl.h" 35 |
36RCSID("$Id: cpw.c,v 1.12 2001/05/07 05:30:23 assar Exp $"); | 36RCSID("$Id: cpw.c,v 1.13 2001/08/10 08:05:35 joda Exp $"); |
37 38struct cpw_entry_data { 39 int random_key; 40 int random_password; 41 char *password; 42 krb5_key_data *key_data; 43}; 44 --- 4 unchanged lines hidden (view full) --- 49 { "key", 0, arg_string, NULL, "DES key in hex" } 50}; 51 52static int num_args = sizeof(args) / sizeof(args[0]); 53 54static void 55usage(void) 56{ | 37 38struct cpw_entry_data { 39 int random_key; 40 int random_password; 41 char *password; 42 krb5_key_data *key_data; 43}; 44 --- 4 unchanged lines hidden (view full) --- 49 { "key", 0, arg_string, NULL, "DES key in hex" } 50}; 51 52static int num_args = sizeof(args) / sizeof(args[0]); 53 54static void 55usage(void) 56{ |
57 arg_printusage(args, num_args, "cpw", "principal..."); | 57 arg_printusage(args, num_args, "passwd", "principal..."); |
58} 59 60static int 61set_random_key (krb5_principal principal) 62{ 63 krb5_error_code ret; 64 int i; 65 krb5_keyblock *keys; --- 148 unchanged lines hidden --- | 58} 59 60static int 61set_random_key (krb5_principal principal) 62{ 63 krb5_error_code ret; 64 int i; 65 krb5_keyblock *keys; --- 148 unchanged lines hidden --- |