diff --git a/appl/ftp/ftp/cmdtab.c b/appl/ftp/ftp/cmdtab.c index 66e687814..1c65e7158 100644 --- a/appl/ftp/ftp/cmdtab.c +++ b/appl/ftp/ftp/cmdtab.c @@ -105,6 +105,7 @@ char userhelp[] = "send new user information"; char verbosehelp[] = "toggle verbose mode"; char prothelp[] = "set protection level"; +char prothelp_c[] = "set command protection level"; #ifdef KRB4 char kauthhelp[] = "get remote tokens"; #endif @@ -193,7 +194,9 @@ struct cmd cmdtab[] = { { "verbose", verbosehelp, 0, 0, 0, setverbose }, { "?", 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 { "kauth", kauthhelp, 0, 1, 0, kauth }, #endif diff --git a/appl/ftp/ftp/security.h b/appl/ftp/ftp/security.h index a3d667656..38a4b7c0c 100644 --- a/appl/ftp/ftp/security.h +++ b/appl/ftp/ftp/security.h @@ -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). * All rights reserved. * @@ -126,6 +126,7 @@ enum protection_level get_command_prot(void); void sec_end (void); int sec_login (char *); void sec_prot (int, char **); +void sec_prot_command (int, char **); int sec_request_prot (char *); void sec_set_protection_level (void); void sec_status (void);