1

(1 replies, posted in wolfSSL)

I want use curl for sftp client, my system is ubuntu 12.04,
I build wolfssl-3.10.0 with no error,

./configure --prefix=/home/chris/installed_library/
make clean
make
make install

then I try to build libssh2 1.8.0

./configure --prefix=/home/chris/installed_library/libssh2-1.8.0 --with-libssl-prefix=/home/chris/installed_library/wolfssl-3.10.0

then got error msg:

configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
 or --with-libgcrypt-prefix=PATH
 or --with-libmbedtls-prefix=PATH
 or --with-wincng on Windows

Does wolfssl can support libssh2?

Any suggestion?

2

(1 replies, posted in wolfSSL)

I'm trying to use Aes 128 bit ECB mode,
I found this discussion
http://www.yassl.com/forums/topic428-ae … rithm.html
that AesEncryptDirect(...) could do this.

I add

#ifndef CYASSL_AES_DIRECT
#define CYASSL_AES_DIRECT
#endif

before

#ifdef CYASSL_AES_DIRECT

of file aes.c

and it makes libcyassl.so well.

but when I link cyassl lib, during execusion,
it could not work

Building target: aes_ecb_cyassl
Invoking: GCC C Linker
gcc -L/home/chris/installed_library/cyassl-2.8.0-test/lib -o "aes_ecb_cyassl"  ./src/aes_ecb_cyassl.o   -lcyassl -Wl,-rpath -Wl,LIBDIR
Finished building target: aes_ecb_cyassl
 
chris@chris-VirtualBox:~/workspace/aes_ecb_cyassl/Debug$ ./aes_ecb_cyassl 
./aes_ecb_cyassl: symbol lookup error: ./aes_ecb_cyassl: undefined symbol: AesEncryptDirect

How could I fix this?

Thanks

system: ubuntu 12.04 in virtualbox

I have downloaded cyassl-2.8.0 embedded SSL and curl-7.32.0

for cyassl, entering directory and

./configure --prefix=/home/chris/installed_library/cyassl-2.8.0
make clean
make
make install

then successful installation.

for curl:

./configure --prefix=/home/chris/installed_library/curl-7.32.0 --without-ssl --with-cyassl==/home/chris/installed_library/cyassl-2.8.0
make clean
make

it failed, the error message is

/home/chris/installed_library/cyassl-2.8.0/include/cyassl/ctaocrypt/types.h:281:6: error: #error "bad math long / long long settings"
/home/chris/installed_library/cyassl-2.8.0/include/cyassl/ctaocrypt/types.h:283:1: error: expected identifier before '}' token

any suggestion?