>Ok well thats not the problem so, its definately in /usr/lib/. I am
>having this problem not only on OpenSSL crypto libraries but a very
>similiar problem at work with some c crypto libraries we are using. Its
>more likely my jni interface thats misbehaving then. (although i did
>check it several times b4 asking this q here). 

I think yours is not a code problem in this case, 
because I could run your code without UnsatisfiedLinkError.

# Still I have any wired understanding?
-----
host:~/user/jni$ tail jni.c
  enc[len] = '\0';
  dec = malloc(len+1);
  dec[len] = '\0';

  encrypt(txtToEncrypt, enc, len, key1); //Encrypt txtToEncryptt usingenc with 
key1
  decrypt(enc, dec, len, key2);  //Decrypt enc(txtToEncrypt) using key2

  printf("done!\n");
}

host:~/user/jni$ make
gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include 
-I/usr/j2sdk1.4.2_
08/include/linux jni.c -o jni.o
gcc -shared -Wl,-soname,libnativebf.so -o libnativebf.so jni.o -g -L/usr/lib -
lcrypto
host:~/user/jni$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`; export LD_LIBRARY_PATH
host:~/user/jni$ java nativeBF
done!
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to