don't define zencrypt function if VTY_CRYPT is not defined

This commit is contained in:
Harald Welte 2009-08-06 18:51:23 +02:00
parent 4a3023df12
commit b1f21d4844
1 changed files with 2 additions and 0 deletions

View File

@ -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)