Re: SSH Tunneling implementation

Поиск
Список
Период
Сортировка
От Akshay Joshi
Тема Re: SSH Tunneling implementation
Дата
Msg-id CANxoLDdk0huK-MwRUsZ-zVpua5qg1z=YtG2VuLfPkbCL0dLmqw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SSH Tunneling implementation  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: SSH Tunneling implementation  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers


On Thu, Jul 12, 2012 at 5:44 PM, Magnus Hagander <magnus@hagander.net> wrote:
On Thu, Jul 12, 2012 at 2:06 PM, Akshay Joshi
<akshay.joshi@enterprisedb.com> wrote:
>
>
> On Thu, Jul 12, 2012 at 5:21 PM, Dave Page <dpage@pgadmin.org> wrote:
>>
>> On Thu, Jul 12, 2012 at 12:04 PM, Akshay Joshi
>> <akshay.joshi@enterprisedb.com> wrote:
>> > Hi All
>> >
>> > I have tried a lot to figure out libssh2 is compiled with which crypto
>> > library, but unable to find it. Can someone guide/help me or do we
>> > continue
>> > with the public key option on UI?
>>
>> The libssh2 guys couldn't tell you how?
>
>
>     I'll post this on mailing list, but I have found one solution to the
> problem is checking the function "libssh2_md5" using AC_CHECK_LIB as below
>    AC_CHECK_LIB(ssh2, libssh2_md5, [IS_LIBSSH2_OPENSSL_CRYPTO=yes],
> [IS_LIBSSH2_OPENSSL_CRYPTO=no])
>
>    I have analyze libssh2 source code and found "libssh2_md5" is implemented
> only for openssl version not for the gcrypt. I have tested it with both
>    the version of libssh2.so.
>
>    Thoughts? Comments?

Is there a way to test the actual function that we want to call
instead? Will it fail right away, or does it actually require there to
be a server somewhere that we can connect to? (If it requires a server
we can't use that one in configure, but if it will fail right away,
that seems like a better way to test it.

   To check the actual function we requires a valid server. Yesterday I have posted the problem to the libssh2 mailing list, but still didn't get response.Meanwhile
   I have fixed the review comments given by Dave. Attached is the complete patch with
   AC_CHECK_LIB(ssh2, libssh2_md5 [IS_LIBSSH2_OPENSSL_CRYPTO=yes], [IS_LIBSSH2_OPENSSL_CRYPTO=no]) and it works with both version of
   libssh2.

   Can we include libssh2 source code with pgAdmin3 to solve the problem? Thoughts??Comments?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



--
Akshay Joshi
Senior Software Engineer 
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Vinicius Santos
Дата:
Сообщение: More information about the selected objects
Следующее
От: Dave Page
Дата:
Сообщение: Re: SSH Tunneling implementation