Deleted Added
full compact
del_enctype.c (72445) del_enctype.c (78527)
1/*
1/*
2 * Copyright (c) 1999-2000 Kungliga Tekniska H�gskolan
2 * Copyright (c) 1999-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_enctype.c,v 1.6 2000/09/10 19:17:23 joda Exp $");
36RCSID("$Id: del_enctype.c,v 1.7 2001/04/19 07:26:52 joda Exp $");
37
38/*
39 * del_enctype principal enctypes...
40 */
41
42static struct getargs args[] = {
43 { "help", 'h', arg_flag, NULL }
44};

--- 23 unchanged lines hidden (view full) ---

68 krb5_enctype *etypes;
69
70 args[0].value = &help_flag;
71
72 if(getarg(args, num_args, argc, argv, &optind)) {
73 usage ();
74 return 0;
75 }
37
38/*
39 * del_enctype principal enctypes...
40 */
41
42static struct getargs args[] = {
43 { "help", 'h', arg_flag, NULL }
44};

--- 23 unchanged lines hidden (view full) ---

68 krb5_enctype *etypes;
69
70 args[0].value = &help_flag;
71
72 if(getarg(args, num_args, argc, argv, &optind)) {
73 usage ();
74 return 0;
75 }
76 if(argc - optind < 3 || help_flag) {
76 if(argc - optind < 2 || help_flag) {
77 usage ();
78 return 0;
79 }
80
81 memset (&princ, 0, sizeof(princ));
82 princ_name = argv[1];
83 n_etypes = argc - 2;
84 etypes = malloc (n_etypes * sizeof(*etypes));

--- 64 unchanged lines hidden ---
77 usage ();
78 return 0;
79 }
80
81 memset (&princ, 0, sizeof(princ));
82 princ_name = argv[1];
83 n_etypes = argc - 2;
84 etypes = malloc (n_etypes * sizeof(*etypes));

--- 64 unchanged lines hidden ---