[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Remote connection to linux server


Hi Aris,

I think openssl header was OK. It seems libssh 0.7.0 have change something
in CMake rule..

With the same openssl-0.9.8zc, and use CMaker to configure libssh-0.6.5
I got the following config.h, and libssh work perfectly.

Config.h of 0.6.5
-----------------------------------------------------------------
/* Name of package */
#define PACKAGE "libssh"

/* Version number of package */
#define VERSION "0.6.5"

/* #undef LOCALEDIR */
/* #undef DATADIR */
#define LIBDIR "lib"
#define PLUGINDIR "plugins-4"
/* #undef SYSCONFDIR */
#define BINARYDIR "C:/usr/LibSSH/libssh-0.6.5/build"
#define SOURCEDIR "C:/usr/LibSSH/libssh-0.6.5"

/************************** HEADER FILES *************************/

/* Define to 1 if you have the <argp.h> header file. */
/* #undef HAVE_ARGP_H */

/* Define to 1 if you have the <pty.h> header file. */
/* #undef HAVE_PTY_H */

/* Define to 1 if you have the <util.h> header file. */
/* #undef HAVE_UTIL_H */

/* Define to 1 if you have the <sys/time.h> header file. */
/* #undef HAVE_SYS_TIME_H */

/* Define to 1 if you have the <termios.h> header file. */
/* #undef HAVE_TERMIOS_H */

/* Define to 1 if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */

/* Define to 1 if you have the <openssl/aes.h> header file. */
#define HAVE_OPENSSL_AES_H 1

/* Define to 1 if you have the <wspiapi.h> header file. */
#define HAVE_WSPIAPI_H 1

/* Define to 1 if you have the <openssl/blowfish.h> header file. */
#define HAVE_OPENSSL_BLOWFISH_H 1

/* Define to 1 if you have the <openssl/des.h> header file. */
#define HAVE_OPENSSL_DES_H 1

/* Define to 1 if you have the <openssl/ecdh.h> header file. */
#define HAVE_OPENSSL_ECDH_H 1

/* Define to 1 if you have the <openssl/ec.h> header file. */
#define HAVE_OPENSSL_EC_H 1

/* Define to 1 if you have the <openssl/ecdsa.h> header file. */
#define HAVE_OPENSSL_ECDSA_H 1

/* Define to 1 if you have the <pthread.h> header file. */
/* #undef HAVE_PTHREAD_H */

/* Define to 1 if you have eliptic curve cryptography in openssl */
#define HAVE_OPENSSL_ECC 1

/* Define to 1 if you have eliptic curve cryptography in gcrypt */
/* #undef HAVE_GCRYPT_ECC */

/* Define to 1 if you have eliptic curve cryptography */
#define HAVE_ECC 1

/*************************** FUNCTIONS ***************************/

/* Define to 1 if you have the `snprintf' function. */
/* #undef HAVE_SNPRINTF */

/* Define to 1 if you have the `_snprintf' function. */
#define HAVE__SNPRINTF 1

/* Define to 1 if you have the `_snprintf_s' function. */
#define HAVE__SNPRINTF_S 1

/* Define to 1 if you have the `vsnprintf' function. */
#define HAVE_VSNPRINTF 1

/* Define to 1 if you have the `_vsnprintf' function. */
#define HAVE__VSNPRINTF 1

/* Define to 1 if you have the `_vsnprintf_s' function. */
#define HAVE__VSNPRINTF_S 1

/* Define to 1 if you have the `isblank' function. */
/* #undef HAVE_ISBLANK */

/* Define to 1 if you have the `strncpy' function. */
#define HAVE_STRNCPY 1

/* Define to 1 if you have the `cfmakeraw' function. */
/* #undef HAVE_CFMAKERAW */

/* Define to 1 if you have the `getaddrinfo' function. */
#define HAVE_GETADDRINFO 1

/* Define to 1 if you have the `poll' function. */
/* #undef HAVE_POLL */

/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1

/* Define to 1 if you have the `clock_gettime' function. */
/* #undef HAVE_CLOCK_GETTIME */

/* Define to 1 if you have the `ntohll' function. */
/* #undef HAVE_NTOHLL */

/* Define to 1 if you have the `htonll' function. */
/* #undef HAVE_HTONLL */

/* Define to 1 if you have the `strtoull' function. */
/* #undef HAVE_STRTOULL */

/* Define to 1 if you have the `__strtoull' function. */
/* #undef HAVE___STRTOULL */

/* Define to 1 if you have the `_strtoui64' function. */
#define HAVE__STRTOUI64 1

/*************************** LIBRARIES ***************************/

/* Define to 1 if you have the `crypto' library (-lcrypto). */
#define HAVE_LIBCRYPTO 1

/* Define to 1 if you have the `gcrypt' library (-lgcrypt). */
/* #undef HAVE_LIBGCRYPT */

/* Define to 1 if you have the `pthread' library (-lpthread). */
/* #undef HAVE_PTHREAD */

/**************************** OPTIONS ****************************/

/* #undef HAVE_GCC_THREAD_LOCAL_STORAGE */
#define HAVE_MSC_THREAD_LOCAL_STORAGE 1

/* #undef HAVE_GCC_VOLATILE_MEMORY_PROTECTION */

/* #undef HAVE_COMPILER__FUNC__ */
#define HAVE_COMPILER__FUNCTION__ 1

/* Define to 1 if you want to enable GSSAPI */
/* #undef WITH_GSSAPI */

/* Define to 1 if you want to enable ZLIB */
#define WITH_ZLIB 1

/* Define to 1 if you want to enable SFTP */
#define WITH_SFTP 1

/* Define to 1 if you want to enable SSH1 */
/* #undef WITH_SSH1 */

/* Define to 1 if you want to enable server support */
#define WITH_SERVER 1

/* Define to 1 if you want to enable debug output for crypto functions */
/* #undef DEBUG_CRYPTO */

/* Define to 1 if you want to enable pcap output support (experimental) */
#define WITH_PCAP 1

/* Define to 1 if you want to enable calltrace debug output */
#define DEBUG_CALLTRACE 1

/* Define to 1 if you want to enable NaCl support */
/* #undef WITH_NACL */

/*************************** ENDIAN *****************************/

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
   significant byte first (like Motorola and SPARC, unlike Intel). */
/* #undef WORDS_BIGENDIAN */


Charles


-----Original Message-----
From: Aris Adamantiadis [mailto:aris@xxxxxxxxxxxx] 
Sent: Wednesday, May 20, 2015 6:16 PM
To: libssh@xxxxxxxxxx
Subject: Re: Remote connection to linux server

Hi Charles,

This is not normal. Something is wrong with your openssl headers, or with
the way we detect it. I'm surprised it compiles at all.
Andreas, could it be linked to the fact we're not using our cmake script for
openssl anymore?

Aris

Le 20/05/15 12:00, Charles@Hinet a écrit :
> /* Define to 1 if you have the <openssl/aes.h> header file. */
> /* #undef HAVE_OPENSSL_AES_H */
>
> /* Define to 1 if you have the <wspiapi.h> header file. */ #define 
> HAVE_WSPIAPI_H 1
>
> /* Define to 1 if you have the <openssl/blowfish.h> header file. */
> /* #undef HAVE_OPENSSL_BLOWFISH_H */
>
> /* Define to 1 if you have the <openssl/des.h> header file. */
> /* #undef HAVE_OPENSSL_DES_H */
>
> /* Define to 1 if you have the <openssl/ecdh.h> header file. */
> /* #undef HAVE_OPENSSL_ECDH_H */
>
> /* Define to 1 if you have the <openssl/ec.h> header file. */
> /* #undef HAVE_OPENSSL_EC_H */
>
> /* Define to 1 if you have the <openssl/ecdsa.h> header file. */
> /* #undef HAVE_OPENSSL_ECDSA_H */
>
> /* Define to 1 if you have the <pthread.h> header file. */
> /* #undef HAVE_PTHREAD_H */
>
> /* Define to 1 if you have eliptic curve cryptography in openssl */
> /* #undef HAVE_OPENSSL_ECC */





Follow-Ups:
Re: Remote connection to linux serverAndreas Schneider <asn@xxxxxxxxxxxxxx>
References:
Remote connection to linux server"Gigin Jose (RBEI/EIA1)" <Gigin.Jose@xxxxxxxxxxxx>
RE: Remote connection to linux server"Charles@Hinet" <cylee@xxxxxxxxxxxxxx>
Re: Remote connection to linux serverAndreas Schneider <asn@xxxxxxxxxxxxxx>
RE: Remote connection to linux server"Charles@Hinet" <cylee@xxxxxxxxxxxxxx>
Re: Remote connection to linux serverAris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org