Search Linux Wireless

[CRDA PATCH 1/4] Do not initialize gcrypt twice.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Davide Pesavento <davidepesa@xxxxxxxxx>

---
 crda.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/crda.c b/crda.c
index 98d80f5..4c7681c 100644
--- a/crda.c
+++ b/crda.c
@@ -14,7 +14,7 @@
 
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
-#include <netlink/genl/ctrl.h>  
+#include <netlink/genl/ctrl.h>
 #include <netlink/msg.h>
 #include <netlink/attr.h>
 #include <linux/nl80211.h>
@@ -192,14 +192,12 @@ int main(int argc, char **argv)
 	int ok = 0;
 #endif
 #ifdef USE_GCRYPT
-	/* initialise */
-	gcry_check_version(NULL);
-
 	gcry_mpi_t mpi_e, mpi_n;
 	gcry_sexp_t rsa, signature, data;
 	__u8 hash[20];
 	int ok = 0;
 #endif
+
 	char *regdb = "/usr/lib/crda/regulatory.bin";
 
 	if (argc != 1) {
@@ -213,7 +211,7 @@ int main(int argc, char **argv)
 		return -EINVAL;
 	}
 
-	
+
 	if (!is_alpha2(env_country) && !is_world_regdom(env_country)) {
 		fprintf(stderr, "Invalid alpha2 set in COUNTRY\n");
 		return -EINVAL;
-- 
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux