Hello:
Well, I can use JNI and web applet when I signed
this applet. I don´t have problem with JNI and web applet. The problem is when I
use openssl functions in my native code. If I don´t use openssl it
work fine.
I read some articles about the
incompatibility JNI and web-loaded applets, but It work.
Regards.
Ángel Martínez
----- Original Message -----
Sent: Tuesday, September 13, 2005 12:55
PM
Subject: Re: OpenSSL use into java
applet
Hi Angel,
JNI and web-loaded Applets are incompatible, even if you sign them or
jump through incredible hoops. You must use a Signed Applet to
install an second signed one on the client's local hard disk, and then use
that second Applet to do your JNI work. Even then loadLibrary is unreliable.
I can't gurantee that but it may work for you.
Regards,
Bhupendra K Joshi
Angel Martinez Gonzalez
<[EMAIL PROTECTED]> wrote:
Hello:
I
use various jar files because I use a jar with the code of my program,
and others jar files from libraries that my code use.
My html code
is:
archive="parteI.jar,base-core.jar,base-opt.jar,pcsc-wrapper-2.0.jar,referenc e-services.jar"
width=325 height=325>
The file "parteI.jar" is
my code, and the others are from OpenCard.
I have signed this jar
files to allow the execution and not have
security restrictions.
What do you suggest
me?
Regards.
----- Original Message ----- From:
"Dominique Lohez" <[EMAIL PROTECTED]> To:
Sent: Tuesday, September 13, 2005 10:42
AM Subject: Re: OpenSSL use into java applet
Angel Martinez
Gonzalez wrote:
>Hello: > >Sorry for my
english. > >I have a native methods written in C that use
openssl functions. This native >methods are invoke into java applet
throught JNI, but it don´t work. I think >that my applet don´t find
some .dll or .lib from OpenSSL, but I don´t know >how do
it. > >I use Micro soft Visual Studio 6.0 to do my native
methods, and here I set >the library modules "libeay32.lib" and
"ssleay32.lib"; the additional >library path
"D:\openssl-0.9.7e\out32dll"; and the additional include >directory
"D:\openssl-0.9.7e\inc32". Then, I build a dll that is load from >my
java applet. > >The whole program works fine from an java
application that use JNI to invoke >this native methods, but from
an applet don´t work. > This sounds as a security restriction
related the use of an applet. This can be come around by puting in an
UNIQUE jar file all the programs needed to run the
applet.
Dominique LOHEZ
> >Somebody can help me?.
Thanks. > >Regards. > > >______________________________________________________________________ >OpenSSL
Project http://www.openssl.org >User Support Mailing List
openssl-users@openssl.org >Automated List Manager
[EMAIL PROTECTED] > > > > >
--
Dr Dominique LOHEZ ISEN 41, Bd Vauban F59046
LILLE France
Phone : +33 (0)3 20 30 40 71 Email:
[EMAIL PROTECTED]
______________________________________________________________________ OpenSSL
Project http://www.openssl.org User Support Mailing List
openssl-users@openssl.org Automated List Manager
[EMAIL PROTECTED]
______________________________________________________________________ OpenSSL
Project http://www.openssl.org User Support Mailing List
openssl-users@openssl.org Automated List Manager
[EMAIL PROTECTED]
Yahoo! for Good Click
here to donate to the Hurricane Katrina relief effort.
|