Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565268 - net-wireless/aircrack-ng: add libressl support
Summary: net-wireless/aircrack-ng: add libressl support
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2015-11-09 16:33 UTC by Marek Behún
Modified: 2015-11-17 00:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
aircrack-ng-1.2_rc1-r2.ebuild (aircrack-ng-1.2_rc1-r2.ebuild,3.50 KB, text/plain)
2015-11-09 16:33 UTC, Marek Behún
Details
aircrack-ng-1.2_rc2-r1.ebuild (aircrack-ng-1.2_rc2-r1.ebuild,3.54 KB, text/plain)
2015-11-09 16:34 UTC, Marek Behún
Details
aircrack-ng-9999-r1.ebuild (aircrack-ng-9999-r1.ebuild,3.78 KB, text/plain)
2015-11-09 16:34 UTC, Marek Behún
Details
aircrack-ng-1.2_rc1-r2.ebuild.patch (file_565268.txt,929 bytes, patch)
2015-11-10 13:00 UTC, Marek Behún
Details | Diff
aircrack-ng-1.2_rc2-r1.ebuild.patch (file_565268.txt,678 bytes, patch)
2015-11-10 13:00 UTC, Marek Behún
Details | Diff
aircrack-ng-9999-r1.ebuild.patch (file_565268.txt,672 bytes, patch)
2015-11-10 13:01 UTC, Marek Behún
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Behún 2015-11-09 16:33:07 UTC
Tested ebuild in attachment

Reproducible: Always
Comment 1 Marek Behún 2015-11-09 16:33:45 UTC
Created attachment 416452 [details]
aircrack-ng-1.2_rc1-r2.ebuild
Comment 2 Marek Behún 2015-11-09 16:34:00 UTC
Created attachment 416454 [details]
aircrack-ng-1.2_rc2-r1.ebuild
Comment 3 Marek Behún 2015-11-09 16:34:13 UTC
Created attachment 416456 [details]
aircrack-ng-9999-r1.ebuild
Comment 4 Marek Behún 2015-11-10 13:00:16 UTC
Created attachment 416566 [details, diff]
aircrack-ng-1.2_rc1-r2.ebuild.patch
Comment 5 Marek Behún 2015-11-10 13:00:45 UTC
Created attachment 416568 [details, diff]
aircrack-ng-1.2_rc2-r1.ebuild.patch
Comment 6 Marek Behún 2015-11-10 13:01:08 UTC
Created attachment 416570 [details, diff]
aircrack-ng-9999-r1.ebuild.patch
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2015-11-10 17:00:41 UTC
you have added a patch, which is great, but you skipped why I should care.

please start with that.  this is a password cracker, does this make it faster? slower? what?
Comment 8 Marek Behún 2015-11-10 17:07:46 UTC
There is not a stable support for libressl in gentoo yet. These patches are meant to add that support, one package at a time. OpenSSL and LibreSSL cannot be installed at the same time, so with a stable libressl support when user chooses libressl, he will not be able to install aircrack-ng (because it depends on openssl). Unless these patches are accepted.
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2015-11-10 18:48:18 UTC
(In reply to Marek Behun from comment #8)
> There is not a stable support for libressl in gentoo yet. These patches are
> meant to add that support, one package at a time. OpenSSL and LibreSSL
> cannot be installed at the same time, so with a stable libressl support when
> user chooses libressl, he will not be able to install aircrack-ng (because
> it depends on openssl). Unless these patches are accepted.

if openssl and libressl are equivilent then make a virtual.  if they aren't, then baring extensive testing I fail to see why I should care if aircrack-ng allows libressl or not.
Comment 10 Marek Behún 2015-11-11 13:31:27 UTC
See here the discussion why it was decided to go with libressl useflag instead of virtuals. http://thread.gmane.org/gmane.linux.gentoo.devel/91899/focus=94484

I don't see why it is a problem to add this to the ebuild. The libressl use flag is masked from stable anyway, it is not like ordinary users are going to build aircrack-ng against libressl. The package compiles without warnings agais SSL library. Other packages are doing this, see bug 565372, bug 565252, bug 565244, bug 565274 and othes (search for libressl).
Comment 11 Kristian Fiskerstrand (RETIRED) gentoo-dev 2015-11-11 13:47:54 UTC
(In reply to Marek Behun from comment #10)
> See here the discussion why it was decided to go with libressl useflag
> instead of virtuals.
> http://thread.gmane.org/gmane.linux.gentoo.devel/91899/focus=94484
> 
> I don't see why it is a problem to add this to the ebuild. The libressl use
> flag is masked from stable anyway, it is not like ordinary users are going

Just a general observation/comment: Any addition of use flag increase complexity and potentially maintainer burden over time. In particular when the use flag adds dependencies on potentially competing namespaces that are not ABI nor API compatible. Upstream might think they are doing people a service by not having to rewrite things, but the long term result is just utter craziness.

So as a hypothetical question (as I'm not maintaining the question in the first place, but just curious based on the thread); if adding this use flag, would you be prepared to provide fixes related to  it in the long term, not only a single patch-and-run? Also keeping in mind that a crypto provider is a security sensitive core component..
Comment 12 Marek Behún 2015-11-17 00:43:29 UTC
> Just a general observation/comment: Any addition of use flag increase
> complexity and potentially maintainer burden over time. In particular when
> the use flag adds dependencies on potentially competing namespaces that are
> not ABI nor API compatible. Upstream might think they are doing people a
> service by not having to rewrite things, but the long term result is just
> utter craziness.

There is no disagreement with me here, but I thought that Gentoo does want to support LibreSSL...

> So as a hypothetical question (as I'm not maintaining the question in the
> first place, but just curious based on the thread); if adding this use flag,
> would you be prepared to provide fixes related to  it in the long term, not
> only a single patch-and-run? Also keeping in mind that a crypto provider is
> a security sensitive core component..

To answer that question I looked into the sources of aircrack-ng and discovered that the only usage of OpenSSL is for SHA and HMAC hashing, and AES and RC4 ciphers. Those are also supported by LibreSSL's crypto library and if they were slow or buggy, someone would already notice, because LibreSSL is already widely used (Max OS X for example switched from OpenSSL to LibreSSL already). Nothing else is used from libcrypto or libssl, so I am confident enough that even if it would be a problem in the future, it would be solvable pretty quickly.