From b1f21d4844bb9caf50a1776ae376ac23103b7295 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 6 Aug 2009 18:51:23 +0200 Subject: don't define zencrypt function if VTY_CRYPT is not defined --- openbsc/src/vty/command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbsc/src/vty/command.c b/openbsc/src/vty/command.c index 4d445aee3..44bdf26e4 100644 --- a/openbsc/src/vty/command.c +++ b/openbsc/src/vty/command.c @@ -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) -- cgit v1.2.3