]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
gnupg: option to include RSA support.
authorPeter Sanford <psanford@nearbuysystems.com>
Mon, 30 Sep 2013 00:25:20 +0000 (17:25 -0700)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 1 Oct 2013 20:01:09 +0000 (22:01 +0200)
gnupg is compiled with --enable-minimal flag. This produces a binary that only
supports ElGamal and DSA public key algorithms.

RSA has been the default for `gpg --gen-key` since 2009, so it makes sense to
be able to build a gnupg binary that supports it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gnupg/Config.in
package/gnupg/gnupg.mk

index 8ddffaa19fb74d744d6a93970137220ff3ef08e8..90f07c24c662f8ccd73c2a96532362fe57d5289d 100644 (file)
@@ -15,6 +15,11 @@ config BR2_PACKAGE_GNUPG
 
 if BR2_PACKAGE_GNUPG
 
+config BR2_PACKAGE_GNUPG_RSA
+       bool "RSA support"
+       help
+         Support for RSA public key algorithm
+
 config BR2_PACKAGE_GNUPG_GPGV
        bool "gpgv"
        help
index f0c4b034c61c12da4b80174b9d6832e6042f0c3c..38604b590714bd9eb830ea4fcd34bc7260ac45e3 100644 (file)
@@ -31,6 +31,12 @@ else
 GNUPG_CONF_OPT += --without-readline
 endif
 
+ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
+GNUPG_CONF_OPT += --enable-rsa
+else
+GNUPG_CONF_OPT += --disable-rsa
+endif
+
 ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
 define GNUPG_REMOVE_GPGV
        rm -f $(TARGET_DIR)/usr/bin/gpgv \