implement cprotect (from MIT)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16163 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -105,6 +105,7 @@ char userhelp[] = "send new user information";
|
|||||||
char verbosehelp[] = "toggle verbose mode";
|
char verbosehelp[] = "toggle verbose mode";
|
||||||
|
|
||||||
char prothelp[] = "set protection level";
|
char prothelp[] = "set protection level";
|
||||||
|
char prothelp_c[] = "set command protection level";
|
||||||
#ifdef KRB4
|
#ifdef KRB4
|
||||||
char kauthhelp[] = "get remote tokens";
|
char kauthhelp[] = "get remote tokens";
|
||||||
#endif
|
#endif
|
||||||
@@ -193,7 +194,9 @@ struct cmd cmdtab[] = {
|
|||||||
{ "verbose", verbosehelp, 0, 0, 0, setverbose },
|
{ "verbose", verbosehelp, 0, 0, 0, setverbose },
|
||||||
{ "?", helphelp, 0, 0, 1, help },
|
{ "?", helphelp, 0, 0, 1, help },
|
||||||
|
|
||||||
{ "prot", prothelp, 0, 1, 0, sec_prot },
|
{ "protect", prothelp, 0, 1, 0, sec_prot },
|
||||||
|
/* what MIT uses */
|
||||||
|
{ "cprotect", prothelp_c, 0, 1, 1, sec_prot_command },
|
||||||
#ifdef KRB4
|
#ifdef KRB4
|
||||||
{ "kauth", kauthhelp, 0, 1, 0, kauth },
|
{ "kauth", kauthhelp, 0, 1, 0, kauth },
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998 - 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1998 - 2005 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -126,6 +126,7 @@ enum protection_level get_command_prot(void);
|
|||||||
void sec_end (void);
|
void sec_end (void);
|
||||||
int sec_login (char *);
|
int sec_login (char *);
|
||||||
void sec_prot (int, char **);
|
void sec_prot (int, char **);
|
||||||
|
void sec_prot_command (int, char **);
|
||||||
int sec_request_prot (char *);
|
int sec_request_prot (char *);
|
||||||
void sec_set_protection_level (void);
|
void sec_set_protection_level (void);
|
||||||
void sec_status (void);
|
void sec_status (void);
|
||||||
|
Reference in New Issue
Block a user