don't define zencrypt function if VTY_CRYPT is not defined
This commit is contained in:
parent
4a3023df12
commit
b1f21d4844
|
@ -475,6 +475,7 @@ void install_element(enum node_type ntype, struct cmd_element *cmd)
|
|||
cmd->cmdsize = cmd_cmdsize(cmd->strvec);
|
||||
}
|
||||
|
||||
#ifdef VTY_CRYPT_PW
|
||||
static unsigned char itoa64[] =
|
||||
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
|
@ -500,6 +501,7 @@ static char *zencrypt(const char *passwd)
|
|||
|
||||
return crypt(passwd, salt);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* This function write configuration of this host. */
|
||||
static int config_write_host(struct vty *vty)
|
||||
|
|
Loading…
Reference in New Issue