-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 5/30/17 4:57 PM, Mark Thomas wrote:
> On 30/05/17 21:00, Emmanuel Bourg wrote:
>> On 05/30/2017 08:01 PM, Christopher Schultz wrote:
>> 
>>> Unless OpenSSL starts providing a JNI binding, we'll always
>>> have to have a wrapper for it.
>> 
>> Unless JNA is used. Has anyone experimented with this yet?
> 
> I've looked at it, but not worked with it. Essentially it is a
> general purpose JNI wrapper. It is ALv2 licensed. It looked like it
> could do the job. I wondered what the performance was like. Looks
> to be worth exploring.

I see only basic data types implemented. I suspect that calling puts()
would work just fine but trying to call fputs() isn't going to work.
Most of the OpenSSL methods need to accept parameters of type
SSL_whatever which may not be possible unless JNA views everything it
doesn't understand as a (void*) and therefore a "Pointer" object.

If the Java code doesn't have to do anything other than maintain the
pointer and pass it into all the various methods, JNA might be a
possibility.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJZLwx7AAoJEBzwKT+lPKRYyA8P/ReUInvL4ZdZAkzBzdIPvDjO
+jxuuE/gVdSwlEMLi7lifctQBqyYsI+GnHNQho8Ayy1o9otM7UG6FNQA7d2Yy8zk
6SeCQOF6W6g07x1so6SNk+MRzhJ3OUxIrxSE4Ti+05NJEvea94ByIzKPl742b9rm
agyPg/MECd7Ee5f3TmWEGrkit4xoPrFPZhiMTr/AEfZqU1pnbiCXVO5zY1bmjvuA
2aXnjNfyOR4Vy//xUQeQXekJvJdB7WQQ+QdESmFhFk/ZI/XS3KHBDJin2GRxkXpc
2Ks8eIogOV/9hwvDB2cDEH6+9/Rmf/55ZHZSOzRPVIkXSXsOC6PLlL3V/MSxdnKx
0lzf++Ml+rgBCoUuKMK5UrZa290lc0zJKUOVt9AOLw58ecnwECN2pTRtmZ6y6knY
T+LXN6vs3FA2ViMUSF9yaszyYzv17WYGEguefNKdrAWc2QQcLA/xu/Zh41Hy5L3O
1yjVsOXTz7fIjnjkq2S+XDOxkSYI3iXRnGK24KXm3C2av+lzXLb6GsA2Ji8CMnq3
Ixl5eA+b4DDAkJq7fqnYxtjZKaHQIUjZL5ywyiJ4ieLXM24Dkt+BFywRRd5Knkir
HS50K5GwO4rPECp4RTksszlvLoD5N9qoVBjbcoO9DK61kg5vWtzy4rwckRaWgbUt
CCQW6DoJ5GYl8b/Q0sjR
=LbjL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to