AC_DEFINE_UNQUOTED([WITH_PHYP], 1, [whether IBM HMC / IVM driver is enabled])
fi
if test "$with_libssh2_transport" = "yes"; then
- AC_DEFINE_UNQUOTED([HAVE_LIBSSH2], 1, [whether libssh2 transport is enabled])
+ AC_DEFINE_UNQUOTED([WITH_SSH2], 1, [whether libssh2 transport is enabled])
fi
AM_CONDITIONAL([WITH_PHYP],[test "$with_phyp" = "yes"])
-AM_CONDITIONAL([HAVE_LIBSSH2], [test "$with_libssh2_transport" = "yes"])
+AM_CONDITIONAL([WITH_SSH2], [test "$with_libssh2_transport" = "yes"])
AC_SUBST([LIBSSH2_CFLAGS])
AC_SUBST([LIBSSH2_LIBS])
USED_SYM_FILES += $(srcdir)/libvirt_sasl.syms
endif
-if HAVE_LIBSSH2
+if WITH_SSH2
USED_SYM_FILES += $(srcdir)/libvirt_libssh2.syms
endif
rpc/virnetsocket.h rpc/virnetsocket.c \
rpc/virkeepaliveprotocol.h rpc/virkeepaliveprotocol.c \
rpc/virkeepalive.h rpc/virkeepalive.c
-if HAVE_LIBSSH2
+if WITH_SSH2
libvirt_net_rpc_la_SOURCES += \
rpc/virnetsshsession.h rpc/virnetsshsession.c
else
#include "passfd.h"
-#if HAVE_LIBSSH2
+#if WITH_SSH2
# include "virnetsshsession.h"
#endif
size_t saslEncodedLength;
size_t saslEncodedOffset;
#endif
-#if HAVE_LIBSSH2
+#if WITH_SSH2
virNetSSHSessionPtr sshSession;
#endif
};
return virNetSocketNewConnectCommand(cmd, retsock);
}
-#if HAVE_LIBSSH2
+#if WITH_SSH2
int
virNetSocketNewConnectLibSSH2(const char *host,
const char *port,
_("libssh2 transport support was not enabled"));
return -1;
}
-#endif /* HAVE_LIBSSH2 */
+#endif /* WITH_SSH2 */
int virNetSocketNewConnectExternal(const char **cmdargv,
virNetSocketPtr *retsock)
virObjectUnref(sock->saslSession);
#endif
-#if HAVE_LIBSSH2
+#if WITH_SSH2
virObjectUnref(sock->sshSession);
#endif
bool hasCached = false;
virMutexLock(&sock->lock);
-#if HAVE_LIBSSH2
+#if WITH_SSH2
if (virNetSSHSessionHasCachedData(sock->sshSession))
hasCached = true;
#endif
return hasCached;
}
-#if HAVE_LIBSSH2
+#if WITH_SSH2
static ssize_t virNetSocketLibSSH2Read(virNetSocketPtr sock,
char *buf,
size_t len)
char *errout = NULL;
ssize_t ret;
-#if HAVE_LIBSSH2
+#if WITH_SSH2
if (sock->sshSession)
return virNetSocketLibSSH2Read(sock, buf, len);
#endif
{
ssize_t ret;
-#if HAVE_LIBSSH2
+#if WITH_SSH2
if (sock->sshSession)
return virNetSocketLibSSH2Write(sock, buf, len);
#endif