libnetconf2 UPDATE merge SSH and TLS req into one
In this commit I made the changes that if you want to use TLS, you have
to have both OpenSSL and libssh installed and viceversa. Set the minimum
required OpenSSL version to 3.0 and 0.9.5 for libssh.
diff --git a/src/log.c b/src/log.c
index f5d2fee..682293f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -21,9 +21,9 @@
#include <libyang/libyang.h>
-#ifdef NC_ENABLED_SSH
+#ifdef NC_ENABLED_SSH_TLS
#include <libssh/libssh.h>
-#endif
+#endif /* NC_ENABLED_SSH_TLS */
#include "compat.h"
#include "config.h"
@@ -56,7 +56,7 @@
{NC_VERB_DEBUG_LOWLVL, "[DBL]"}
};
-#ifdef NC_ENABLED_SSH
+#ifdef NC_ENABLED_SSH_TLS
API void
nc_libssh_thread_verbosity(int level)
@@ -64,7 +64,7 @@
ssh_set_log_level(level);
}
-#endif
+#endif /* NC_ENABLED_SSH_TLS */
static void
prv_vprintf(const struct nc_session *session, NC_VERB_LEVEL level, const char *format, va_list args)