Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CADF3200B38 for ; Fri, 8 Jul 2016 19:47:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C97A2160A5A; Fri, 8 Jul 2016 17:47:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EA711160A36 for ; Fri, 8 Jul 2016 19:47:03 +0200 (CEST) Received: (qmail 82530 invoked by uid 500); 8 Jul 2016 17:47:02 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 82518 invoked by uid 99); 8 Jul 2016 17:47:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2016 17:47:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 26E6F180290 for ; Fri, 8 Jul 2016 17:47:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.979 X-Spam-Level: X-Spam-Status: No, score=0.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rQ20HVRLY-dw for ; Fri, 8 Jul 2016 17:47:00 +0000 (UTC) Received: from mail-it0-f49.google.com (mail-it0-f49.google.com [209.85.214.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1D2265F56B for ; Fri, 8 Jul 2016 17:47:00 +0000 (UTC) Received: by mail-it0-f49.google.com with SMTP id h190so15109029ith.1 for ; Fri, 08 Jul 2016 10:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nkNt2EqbAmILFMVtvShFdQq+SLlLaiVh9JcSMKMEmXM=; b=UL8DM5QZJbpq/rVPh9hO8gbh+vfezfNOHL0fq2CUuKzUFGFxvxJ5oqHT4bwE9afBju 2LlIkTb1g1Clhy2RvYf/fdrG10oE+suRNPatvNxyA/lp0BXXHfUchk5Cszwnac7dtNE4 GFeZLTc6qnSGeKpT93Gq6UVLRXCyfd4AdEZv6nj6gLSRjkV72r5cAcnS8OqFlvojKPuF 13TuZX/gNe01MpqPkfG5sLji64zTgcDRH0TGZklmb1dLtMPhkFPePVsiYxTbQaNCQtuP SbFNPZdeFRlJ0vdlEVyE2YVMkkC2Y2kOOqnDZZHsLC8Yz2PKhDPZzuIVd6EUrVmNahgk LIfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nkNt2EqbAmILFMVtvShFdQq+SLlLaiVh9JcSMKMEmXM=; b=AAfZaHoQ5yCWVfctlE2+PbkktFKqOtvbvmfbcGhx3Ljzlu9h0j3VKZwFXiMlq2VgNn 0yKc2EBAtAYZ4nhj3sUywnYel1BlDMexmLtUnExc2o36i5eg1xaxK20qQPqntmN4aR2a GzthzY9C/lVIc2a/Nek2guWm5ECH3EMx/sKO9oyq8fn9Um5ZrbTkjmBsa5dXdCiSNizp NrAp+jZHTZ75JXUSIvpTsFXQ8SrVOxjN6SrTOtAA6/FxDEweLITSbNw0ogOqgbJDzHHl q/A0YdQwfJuExUp5D2Wp/L9/3t1QI2KQwXq66ELjsN1t611G8LCQgLY/na/EwlmCW7jZ j+1w== X-Gm-Message-State: ALyK8tIuIYSLM/d2Ko8FymTXAwKpgN2WAWZfsM7yHjPiXvWPIU0jfxJMBEgxnhGuZH3veSJFiXl74FmRrrdH/A== X-Received: by 10.36.14.76 with SMTP id 73mr4384649ite.70.1468000013345; Fri, 08 Jul 2016 10:46:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.11.229 with HTTP; Fri, 8 Jul 2016 10:46:13 -0700 (PDT) In-Reply-To: References: From: "Bhowmik, Bindul" Date: Fri, 8 Jul 2016 11:46:13 -0600 Message-ID: Subject: Re: [CRYPTO]1.0.0 Release Plan To: Commons Developers List Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 08 Jul 2016 17:47:05 -0000 On Fri, Jul 8, 2016 at 11:37 AM, sebb wrote: > On 8 July 2016 at 18:31, Gary Gregory wrote: >> On Fri, Jul 8, 2016 at 10:07 AM, Marcelo Vanzin wrote: >> >>> Answering based on old knowledge of this code, but I don't believe it >>> has changed... >>> >>> On Fri, Jul 8, 2016 at 9:36 AM, Gary Gregory >>> wrote: >>> > The delivered jar file contains a native .so file, and this .so file is >>> > _extracted_ and _installed_ on the user's machine at runtime? See >>> > NativeCodeLoader.extractLibraryFile(). >>> >>> It's not really installed, but copied to a temp location. There might >>> be flags to configure a permanent location (which would bypass this >>> code that finds the library inside the jar), but I don't remember if >>> that was added to crypto. >>> >>> This feature is borrowed from Snappy's java bindings, and is pretty >>> helpful on distributed applications where a "launcher" app starts >>> processes on a whole bunch of different machines (and needs these >>> libraries). >>> >>> > Does this mean that the jar will contain all possible native formats >>> (.so, >>> > .dll, what about 32 vs. 64 bit, or are we only dealing with 64 bit?) and >>> > extract the right one at runtime for the current platform? Seems wasteful >>> > in space but portable and clever. One option could be to go the Eclipse way, the way they handle SWT distributions which have native components[1]. Thinking more about it, that might even be a better option given that the different binary components may need to be built on different OSes. And from a consumption standpoint, if the user is using Maven, they could use profiles to select the correct dependency. I have done something like this for SWT on a project: org.eclipse.swt ${swt.artifact} ${eclipse.swt.version} compile win64_x8664 windows x86_64 swt-win32-win32-x86_64 linux64_x8664 unix x86_64 swt-gtk-linux-x86_64 - Bindul [1] http://download.eclipse.org/eclipse/downloads/drops4/R-4.6-201606061100/#SWT >>> >>> That's the goal if multiple OSes are to be supported; I'm not sure how >>> easy it would be to achieve with the current build system available >>> (haven't really looked into it), but I have ideas of how to hack >>> something like that in maven (using a few separate jobs per OS + a >>> final job to collect everything). >>> >>> I've heard comments here about using JNA, so maybe this whole >>> discussion will eventually become moot? >>> >> >> The JNA code is in place, it's just much slower than the JNI path. > > Have you managed to get it going on Windows? > > So far I have failed. > It's tricky getting JNA to find the crypto DLL, and then it hangs for > me on the ERR_load_crypto_strings() call. > [Or it is so slow that it seems like it is hanging] > > I was able to get SSLeay_version(int type) working in a simple app > that does not do the ERR_load call. > But if I leave out the ERR_load from OpenSslNativeJna.java the tests still hang. > >> Gary >> >> >>> >>> -- >>> Marcelo >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> >> >> >> -- >> E-Mail: garydgregory@gmail.com | ggregory@apache.org >> Java Persistence with Hibernate, Second Edition >> >> JUnit in Action, Second Edition >> Spring Batch in Action >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org