I'm trying to compile the Java wrapper on Linux and I'm getting the following error - ‘InitCyaSSL’ was not declared in this scope. The full message is

Making JNI Library
g++ -I /usr/local/lib/include -I /usr/lib/jvm/jdk1.7.0/jdk1.7.0_15/include -I /usr/lib/jvm/jdk1.7.0/jdk1.7.0_15/include/linux -I ./src/native/include -Wno-write-strings -fpic -DPIC -c ./src/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto_alt.cpp -o ./src/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto_alt.o
./src/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto_alt.cpp: In function ‘void Java_com_yassl_xnet_provider_jsse_SocketImpl_nativeinitstatic(JNIEnv*, jclass)’:
./src/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto_alt.cpp:1251:16: error: ‘InitCyaSSL’ was not declared in this scope

I think it's something to do with having the wolfSSL library not compiled properly - although make test passes all tests, so I'm not sure. The version I'm using is cyassl-2.5.0 on Ubuntu 32 bit on an AMDx86 CPU.

The config.log is here - http://pastebin.com/fybgeZTW. Options I build wolfSSL with are --enable-sessioncerts, --enable-opensslExtra, --disable-shared, --enable-ntru

I got a warning about either autoconf or automake being newer than the one wolfSSL was written for, and the only similar post I can find on the net says to try disabling werror for the build, again unsure as how to go about that.

Anyone have any ideas?

2

(1 replies, posted in wolfSSL)

I would like to use wolfSSL embedded SSL in a final year project I'm doing in a Software Engineering degree. The project is open source & is a drop box like system that uses quantum proof encryption.

YaSSL seems to have the only implementation I can find of -

   CipherSuite TLS_NTRU_NSS_WITH_RC4_128_SHA           = { 0x00, 0x61 }
   CipherSuite TLS_NTRU_NSS_WITH_3DES_EDE_CBC_SHA      = { 0x00, 0x62 }
   CipherSuite TLS_NTRU_NSS_WITH_AES_128_CBC_SHA       = { 0x00, 0x63 }
   CipherSuite TLS_NTRU_NSS_WITH_AES_256_CBC_SHA       = { 0x00, 0x64 }
   CipherSuite TLS_NTRU_RSA_WITH_RC4_128_SHA           = { 0x00, 0x65 }
   CipherSuite TLS_NTRU_RSA_WITH_3DES_EDE_CBC_SHA      = { 0x00, 0x66 }
   CipherSuite TLS_NTRU_RSA_WITH_AES_128_CBC_SHA       = { 0x00, 0x67 }
   CipherSuite TLS_NTRU_RSA_WITH_AES_256_CBC_SHA       = { 0x00, 0x68 }

I can't use the standard implementations of SSL because they all use some variant of Diffie Hellman to handshake. I've tried compiling NTru wolfSSL but it appears that there are files missing. Is it possible to get a student / open source license for this? Also, does the Java wrapper work with the above? I couldn't find the options in the source. (In an ideal world I'd use Java but I can always use inline C)
Any advice or direction would be much appreciated.