Re: Libssh2 for Windows Mobile - help

2020-10-12 Thread Peter Stuge
Geetha wrote:
> Thanks for your help.

You're welcome.


> I have tried adding libssh2.lib before/after two openssl library files.
> But still the same linker errors are happening.
> 
> Below is the error which i received.

Thanks for including the full messages. Unfortunately there are no
explicit hints in there what the problem may be, so I guess that
the linker simply is not satisfied with the OpenSSL library files.


> Doubt: Could you please clarify my doubt, is there any specific OpenSSL
> for ARMV4i platform.

That's a good question, I don't know the answer because I have never
used OpenSSL on Windows Mobile, but you should investigate this further.


> (I am using the one I used for Win32 compilation).

I think that explains why the linker is not satisfied; those library
files are not interchangeable.

I believe that Windows Mobile is incompatible with Win32 API-wise, but
far more importantly the Win32 libraries will haven been compiled to x86
machine code and that does not execute on the ARM processor in the
Windows Mobile device. I expect that the linker recognizes these
mismatches automatically and thus has no usable OpenSSL library for
the target platform. I'm disappointed that there is no error message
from VS or the linker about it, but oh well, you found the problem.


> If yes please share the link to download.

You have to ask the OpenSSL project about that or search online, I
don't think anyone here is developing for Windows Mobile. Personally
I would probably try to build also the OpenSSL libraries myself.


//Peter

___
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel


Re: Libssh2 for Windows Mobile - help

2020-10-11 Thread Geetha
Thanks for your help.

I have tried adding libssh2.lib before/after two openssl library files. But
still the same linker errors are happening.

Below is the error which i received.

Doubt: Could you please clarify my doubt, is there any specific OpenSSL for
ARMV4i platform. (I am using the one I used  for Win32 compilation). If yes
please share the link to download.

Please help to resolve these linker errors.

1>-- Build started: Project: Mobiletesting, Configuration: Debug
Windows Mobile 6 Professional SDK (ARMV4I) --
1>Linking...
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_new referenced in function _libssh2_rsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_bin2bn referenced in function _libssh2_rsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_new referenced in function _libssh2_rsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_verify referenced in function _libssh2_rsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_new referenced in function _libssh2_dsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_SIG_free referenced in function _libssh2_dsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_do_verify referenced in function _libssh2_dsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_SIG_new referenced in function _libssh2_dsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_GROUP_get_curve_name referenced in function
_libssh2_ecdsa_key_get_curve_type
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_get0_group referenced in function _libssh2_ecdsa_key_get_curve_type
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_free referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_set_public_key referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_oct2point referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_new referenced in function _libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_new_by_curve_name referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_clear_free referenced in function _libssh2_ecdsa_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ECDSA_do_verify referenced in function _libssh2_ecdsa_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CipherInit referenced in function _libssh2_cipher_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_init referenced in function _libssh2_cipher_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_Cipher referenced in function _libssh2_cipher_crypt
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_set_app_data referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_set_padding referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_EncryptInit referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_aes_256_ecb referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_aes_192_ecb referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_aes_128_ecb referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_key_length referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_EncryptUpdate referenced in function aes_ctr_do_cipher
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_get_app_data referenced in function aes_ctr_do_cipher
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_cleanup referenced in function aes_ctr_cleanup
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_CIPHER_CTX_cleanup
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ENGINE_register_all_complete referenced in function
_libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ENGINE_load_builtin_engines referenced in function
_libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error