ソースを参照

aiccu: enable GnuTLS support

Sébastien Noel 9 年 前
コミット
ff70f87986
共有2 個のファイルを変更した25 個の追加3 個の削除を含む
  1. 3
    3
      ipv6/aiccu/Makefile
  2. 22
    0
      ipv6/aiccu/patches/500-gnutls_3.4.patch

+ 3
- 3
ipv6/aiccu/Makefile ファイルの表示

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=aiccu
11 11
 PKG_VERSION:=20070115
12
-PKG_RELEASE:=14
12
+PKG_RELEASE:=15
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
@@ -24,7 +24,7 @@ include $(INCLUDE_DIR)/package.mk
24 24
 define Package/aiccu
25 25
   SECTION:=net
26 26
   CATEGORY:=Network
27
-  DEPENDS:=+libpthread +ip +kmod-sit +kmod-tun
27
+  DEPENDS:=+libpthread +ip +kmod-sit +kmod-tun +libgnutls
28 28
   TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
29 29
   URL:=http://www.sixxs.net/tools/aiccu/
30 30
   MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
@@ -36,7 +36,7 @@ endef
36 36
 
37 37
 define Build/Compile
38 38
 	$(MAKE) -C $(PKG_BUILD_DIR) \
39
-		CC="$(TARGET_CC)" OS_NAME="Linux" OS_VERSION="$(LINUX_VERSION)" \
39
+		CC="$(TARGET_CC)" OS_NAME="Linux" OS_VERSION="$(LINUX_VERSION)" HAVE_GNUTLS=1 \
40 40
 		EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
41 41
 		EXTRA_LDFLAGS="$(TARGET_LDFLAGS) -pthread" \
42 42
 		DEBUG=0

+ 22
- 0
ipv6/aiccu/patches/500-gnutls_3.4.patch ファイルの表示

@@ -0,0 +1,22 @@
1
+--- aiccu/common/common.c
2
++++ aiccu/common/common.c
3
+@@ -271,8 +271,6 @@
4
+ TLSSOCKET sock_alloc(void)
5
+ {
6
+ #ifdef AICCU_GNUTLS
7
+-	/* Allow connections to servers that have OpenPGP keys as well */
8
+-	const int	cert_type_priority[3] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 };
9
+ 	int		ret;
10
+ #endif /* AICCU_GNUTLS*/
11
+ 
12
+@@ -300,7 +298,8 @@
13
+ 	gnutls_set_default_priority(sock->session);
14
+ 	/* XXX: Return value is not documented in GNUTLS documentation! */
15
+ 
16
+-	gnutls_certificate_type_set_priority(sock->session, cert_type_priority);
17
++	/* Allow connections to servers that have OpenPGP keys as well */
18
++	gnutls_priority_set_direct(sock->session, "NORMAL:+CTYPE-OPENPGP", NULL);
19
+ 	/* XXX: Return value is not documented in GNUTLS documentation! */
20
+ 
21
+ 	/* Configure the x509 credentials for the current session */
22
+