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 B5C93200B38 for ; Fri, 8 Jul 2016 19:37:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B461B160A5A; Fri, 8 Jul 2016 17:37:32 +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 D80BE160A36 for ; Fri, 8 Jul 2016 19:37:31 +0200 (CEST) Received: (qmail 56517 invoked by uid 500); 8 Jul 2016 17:37:31 -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 56505 invoked by uid 99); 8 Jul 2016 17:37:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2016 17:37:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 335731A6178 for ; Fri, 8 Jul 2016 17:37:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.198 X-Spam-Level: X-Spam-Status: No, score=0.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5qJLM0d3mXbH for ; Fri, 8 Jul 2016 17:37:28 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 4F8BD5F2F0 for ; Fri, 8 Jul 2016 17:37:27 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id t74so49556032ioi.0 for ; Fri, 08 Jul 2016 10:37:27 -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=xOaD+h3NedNgv7uIHAtIhH/g+ARiP3zVpk8/clKUOuo=; b=1Ikn9yOQ0VEOd2FzQE8Waw454nr7CUdimVnYaUg4KbvOl/EOTsGslBChCoRm7sqMCf Rov8cvCdJqp8rRTElnreTkCYvGbcP/Sj12yPUA2lKJKnAOXtM3v/lotyyhX32ambo6QZ k5jI4yhZzAT6zD8xKj/buZic4fvxX22pINECa7R6my1YRhg0G4AXdnxRxffx22IW5kPp cvubvFgweq6XOIIaOmGJMxZY4uttxmFRTgcC7LbhKkCVjmUZ26CXQFJVq7RNx44UpjpU tYpN5rEqQG1neDZt/yXuFAKb0OyBa4BSHe6BhlM0NjKAu5XNQxfFq3o4aVzvVJxc8UPE rOPA== 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=xOaD+h3NedNgv7uIHAtIhH/g+ARiP3zVpk8/clKUOuo=; b=Qj8KgpHCx7IPs4MCdAX5Wg5eE+se9Tz9jO2Zwhxg+jkHMHvUeMcVkEGsszJygdT2rQ epW92/0TKMFAI+DgbrBs0Kc4Addr65hE1fDhwZPe930+pB2WzRzZdcysJq8ql57faeWC /C+uGafdgZ3i7pHlN6sF2BTxWugHmUC7NrTtdD5DRpe0jjVmxX5sMY5SrjwQSWIZqjro KueGecFTs3TxBuelrNx9q52XxCRVk7eBm5PnR0AJgOr5gRYuNA0KK+r//QvoQApwcq/2 4W7vPoiADljn8n6SYbu3B8b7SKjqzvgJNLxUzWZcw4pficcz5Rvgpi0Q+xFFkhAG3bZ3 AgQA== X-Gm-Message-State: ALyK8tKKQ0Kq9JpquHg/ZIrbvbBsrKUnBnygRR5WH3D08LiDN/kxbswo+4APlRp5mjYRnolBeUqT+9ksaZrpJg== X-Received: by 10.107.3.104 with SMTP id 101mr9702019iod.40.1467999439919; Fri, 08 Jul 2016 10:37:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.14.206 with HTTP; Fri, 8 Jul 2016 10:37:18 -0700 (PDT) In-Reply-To: References: From: sebb Date: Fri, 8 Jul 2016 18:37:18 +0100 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:37:32 -0000 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. >> >> 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