mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 04:15:49 +00:00
Rename HAVE_LIBSSH2 to WITH_SSH2
This commit is contained in:
parent
40541c2a6b
commit
e1e94f2ed9
@ -1426,11 +1426,11 @@ if test "$with_phyp" = "yes"; then
|
|||||||
AC_DEFINE_UNQUOTED([WITH_PHYP], 1, [whether IBM HMC / IVM driver is enabled])
|
AC_DEFINE_UNQUOTED([WITH_PHYP], 1, [whether IBM HMC / IVM driver is enabled])
|
||||||
fi
|
fi
|
||||||
if test "$with_libssh2_transport" = "yes"; then
|
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
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([WITH_PHYP],[test "$with_phyp" = "yes"])
|
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_CFLAGS])
|
||||||
AC_SUBST([LIBSSH2_LIBS])
|
AC_SUBST([LIBSSH2_LIBS])
|
||||||
|
@ -1426,7 +1426,7 @@ if WITH_SASL
|
|||||||
USED_SYM_FILES += $(srcdir)/libvirt_sasl.syms
|
USED_SYM_FILES += $(srcdir)/libvirt_sasl.syms
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_LIBSSH2
|
if WITH_SSH2
|
||||||
USED_SYM_FILES += $(srcdir)/libvirt_libssh2.syms
|
USED_SYM_FILES += $(srcdir)/libvirt_libssh2.syms
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -1772,7 +1772,7 @@ libvirt_net_rpc_la_SOURCES = \
|
|||||||
rpc/virnetsocket.h rpc/virnetsocket.c \
|
rpc/virnetsocket.h rpc/virnetsocket.c \
|
||||||
rpc/virkeepaliveprotocol.h rpc/virkeepaliveprotocol.c \
|
rpc/virkeepaliveprotocol.h rpc/virkeepaliveprotocol.c \
|
||||||
rpc/virkeepalive.h rpc/virkeepalive.c
|
rpc/virkeepalive.h rpc/virkeepalive.c
|
||||||
if HAVE_LIBSSH2
|
if WITH_SSH2
|
||||||
libvirt_net_rpc_la_SOURCES += \
|
libvirt_net_rpc_la_SOURCES += \
|
||||||
rpc/virnetsshsession.h rpc/virnetsshsession.c
|
rpc/virnetsshsession.h rpc/virnetsshsession.c
|
||||||
else
|
else
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
#include "passfd.h"
|
#include "passfd.h"
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
# include "virnetsshsession.h"
|
# include "virnetsshsession.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ struct _virNetSocket {
|
|||||||
size_t saslEncodedLength;
|
size_t saslEncodedLength;
|
||||||
size_t saslEncodedOffset;
|
size_t saslEncodedOffset;
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
virNetSSHSessionPtr sshSession;
|
virNetSSHSessionPtr sshSession;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -738,7 +738,7 @@ int virNetSocketNewConnectSSH(const char *nodename,
|
|||||||
return virNetSocketNewConnectCommand(cmd, retsock);
|
return virNetSocketNewConnectCommand(cmd, retsock);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
int
|
int
|
||||||
virNetSocketNewConnectLibSSH2(const char *host,
|
virNetSocketNewConnectLibSSH2(const char *host,
|
||||||
const char *port,
|
const char *port,
|
||||||
@ -870,7 +870,7 @@ virNetSocketNewConnectLibSSH2(const char *host ATTRIBUTE_UNUSED,
|
|||||||
_("libssh2 transport support was not enabled"));
|
_("libssh2 transport support was not enabled"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_LIBSSH2 */
|
#endif /* WITH_SSH2 */
|
||||||
|
|
||||||
int virNetSocketNewConnectExternal(const char **cmdargv,
|
int virNetSocketNewConnectExternal(const char **cmdargv,
|
||||||
virNetSocketPtr *retsock)
|
virNetSocketPtr *retsock)
|
||||||
@ -1025,7 +1025,7 @@ void virNetSocketDispose(void *obj)
|
|||||||
virObjectUnref(sock->saslSession);
|
virObjectUnref(sock->saslSession);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
virObjectUnref(sock->sshSession);
|
virObjectUnref(sock->sshSession);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1234,7 +1234,7 @@ bool virNetSocketHasCachedData(virNetSocketPtr sock ATTRIBUTE_UNUSED)
|
|||||||
bool hasCached = false;
|
bool hasCached = false;
|
||||||
virMutexLock(&sock->lock);
|
virMutexLock(&sock->lock);
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
if (virNetSSHSessionHasCachedData(sock->sshSession))
|
if (virNetSSHSessionHasCachedData(sock->sshSession))
|
||||||
hasCached = true;
|
hasCached = true;
|
||||||
#endif
|
#endif
|
||||||
@ -1247,7 +1247,7 @@ bool virNetSocketHasCachedData(virNetSocketPtr sock ATTRIBUTE_UNUSED)
|
|||||||
return hasCached;
|
return hasCached;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
static ssize_t virNetSocketLibSSH2Read(virNetSocketPtr sock,
|
static ssize_t virNetSocketLibSSH2Read(virNetSocketPtr sock,
|
||||||
char *buf,
|
char *buf,
|
||||||
size_t len)
|
size_t len)
|
||||||
@ -1281,7 +1281,7 @@ static ssize_t virNetSocketReadWire(virNetSocketPtr sock, char *buf, size_t len)
|
|||||||
char *errout = NULL;
|
char *errout = NULL;
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
if (sock->sshSession)
|
if (sock->sshSession)
|
||||||
return virNetSocketLibSSH2Read(sock, buf, len);
|
return virNetSocketLibSSH2Read(sock, buf, len);
|
||||||
#endif
|
#endif
|
||||||
@ -1340,7 +1340,7 @@ static ssize_t virNetSocketWriteWire(virNetSocketPtr sock, const char *buf, size
|
|||||||
{
|
{
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if WITH_SSH2
|
||||||
if (sock->sshSession)
|
if (sock->sshSession)
|
||||||
return virNetSocketLibSSH2Write(sock, buf, len);
|
return virNetSocketLibSSH2Write(sock, buf, len);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user