aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-08-06 18:51:23 +0200
committerHarald Welte <laforge@netfilter.org>2009-08-06 18:51:23 +0200
commitb1f21d4844bb9caf50a1776ae376ac23103b7295 (patch)
tree59472c101272c4eb626e27057cb26ae7f0587be6 /openbsc
parent4a3023df12c34f81f580e4aa9200224fe61ceea8 (diff)
don't define zencrypt function if VTY_CRYPT is not defined
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/vty/command.c2
1 files changed, 2 insertions, 0 deletions
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)