pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/mbedtls
Module Name: pkgsrc
Committed By: nia
Date: Thu Jun 11 11:43:50 UTC 2020
Modified Files:
pkgsrc/security/mbedtls: Makefile distinfo
pkgsrc/security/mbedtls/patches: patch-library_net__sockets.c
patch-programs_aes_aescrypt2.c
patch-programs_aes_crypt__and__hash.c
Added Files:
pkgsrc/security/mbedtls/patches: patch-programs_ssl_ssl__mail__client.c
Log Message:
mbedtls: Update patches. Add links to PRs.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/security/mbedtls/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/security/mbedtls/distinfo
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/security/mbedtls/patches/patch-library_net__sockets.c
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c \
pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c
cvs rdiff -u -r0 -r1.1 \
pkgsrc/security/mbedtls/patches/patch-programs_ssl_ssl__mail__client.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/mbedtls/Makefile
diff -u pkgsrc/security/mbedtls/Makefile:1.14 pkgsrc/security/mbedtls/Makefile:1.15
--- pkgsrc/security/mbedtls/Makefile:1.14 Sat Apr 18 14:21:56 2020
+++ pkgsrc/security/mbedtls/Makefile Thu Jun 11 11:43:50 2020
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2020/04/18 14:21:56 nia Exp $
+# $NetBSD: Makefile,v 1.15 2020/06/11 11:43:50 nia Exp $
DISTNAME= mbedtls-2.16.6-apache
PKGNAME= ${DISTNAME:-apache=}
+PKGREVISION= 1
CATEGORIES= security devel
MASTER_SITES= https://tls.mbed.org/download/
EXTRACT_SUFX= .tgz
Index: pkgsrc/security/mbedtls/distinfo
diff -u pkgsrc/security/mbedtls/distinfo:1.10 pkgsrc/security/mbedtls/distinfo:1.11
--- pkgsrc/security/mbedtls/distinfo:1.10 Tue Jun 2 15:07:59 2020
+++ pkgsrc/security/mbedtls/distinfo Thu Jun 11 11:43:50 2020
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.10 2020/06/02 15:07:59 nia Exp $
+$NetBSD: distinfo,v 1.11 2020/06/11 11:43:50 nia Exp $
SHA1 (mbedtls-2.16.6-apache.tgz) = 3cb5b681597a5bd798d31038c129c0dc911d8a2c
RMD160 (mbedtls-2.16.6-apache.tgz) = da5ede944292874afdb24a8fe21c643b34255206
SHA512 (mbedtls-2.16.6-apache.tgz) = a0c48b694d7bc70256d26c44bfb2ac802428560b02e50fe2e47762bc595e2c7b8fac934badb3452acb01d8a54386eafae0ff2894320d24ab7554f1c8e6cb4bcf
Size (mbedtls-2.16.6-apache.tgz) = 2699220 bytes
-SHA1 (patch-library_net__sockets.c) = cd8f9cf84947800eb73d004847789626511ceb35
-SHA1 (patch-programs_aes_aescrypt2.c) = 216cc7cb0b5530897ea5ca194128b8928def5f16
-SHA1 (patch-programs_aes_crypt__and__hash.c) = 3c2d72abf89d5e29d434abb6d745c0d086496556
+SHA1 (patch-library_net__sockets.c) = dc1b304432a2837f72035245a3bc8f1cfcaacbd9
+SHA1 (patch-programs_aes_aescrypt2.c) = ffce071071ba00c37441973e2305d93a2374c748
+SHA1 (patch-programs_aes_crypt__and__hash.c) = 29bd90a0cb2cb4d970c57e57aad6318949479137
+SHA1 (patch-programs_ssl_ssl__mail__client.c) = 739bae07a927977fc701e2decaefaa464c38d2bb
Index: pkgsrc/security/mbedtls/patches/patch-library_net__sockets.c
diff -u pkgsrc/security/mbedtls/patches/patch-library_net__sockets.c:1.2 pkgsrc/security/mbedtls/patches/patch-library_net__sockets.c:1.3
--- pkgsrc/security/mbedtls/patches/patch-library_net__sockets.c:1.2 Fri Dec 21 09:43:00 2018
+++ pkgsrc/security/mbedtls/patches/patch-library_net__sockets.c Thu Jun 11 11:43:50 2020
@@ -1,16 +1,26 @@
-$NetBSD: patch-library_net__sockets.c,v 1.2 2018/12/21 09:43:00 wiz Exp $
+$NetBSD: patch-library_net__sockets.c,v 1.3 2020/06/11 11:43:50 nia Exp $
-Comment out _POSIX_C_SOURCE, this makes sockaddr_storage unavailable on NetBSD.
-https://github.com/ARMmbed/mbedtls/issues/2310
+Make sure sockaddr_storage and socklen_t are available on NetBSD.
---- library/net_sockets.c.orig 2018-12-02 13:20:52.000000000 +0000
+https://github.com/ARMmbed/mbedtls/pull/3422
+
+--- library/net_sockets.c.orig 2020-04-09 13:12:23.000000000 +0000
+++ library/net_sockets.c
-@@ -22,7 +22,7 @@
- /* Enable definition of getaddrinfo() even when compiling with -std=c99. Must
+@@ -23,6 +23,7 @@
* be set before config.h, which pulls in glibc's features.h indirectly.
* Harmless on other platforms. */
--#define _POSIX_C_SOURCE 200112L
-+//#define _POSIX_C_SOURCE 200112L
+ #define _POSIX_C_SOURCE 200112L
++#define _XOPEN_SOURCE 600 /* sockaddr_storage */
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
+@@ -319,7 +320,8 @@ int mbedtls_net_accept( mbedtls_net_cont
+ struct sockaddr_storage client_addr;
+
+ #if defined(__socklen_t_defined) || defined(_SOCKLEN_T) || \
+- defined(_SOCKLEN_T_DECLARED) || defined(__DEFINED_socklen_t)
++ defined(_SOCKLEN_T_DECLARED) || defined(__DEFINED_socklen_t) || \
++ defined(socklen_t)
+ socklen_t n = (socklen_t) sizeof( client_addr );
+ socklen_t type_len = (socklen_t) sizeof( type );
+ #else
Index: pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c
diff -u pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c:1.1 pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c:1.2
--- pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c:1.1 Tue Jun 2 15:07:59 2020
+++ pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c Thu Jun 11 11:43:50 2020
@@ -1,8 +1,10 @@
-$NetBSD: patch-programs_aes_aescrypt2.c,v 1.1 2020/06/02 15:07:59 nia Exp $
+$NetBSD: patch-programs_aes_aescrypt2.c,v 1.2 2020/06/11 11:43:50 nia Exp $
Not actually so harmless on SunOS, which requires at least 200112L
when compiling c99.
+https://github.com/ARMmbed/mbedtls/pull/3421
+
--- programs/aes/aescrypt2.c.orig 2020-04-09 13:12:23.000000000 +0000
+++ programs/aes/aescrypt2.c
@@ -22,7 +22,7 @@
Index: pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c
diff -u pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c:1.1 pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c:1.2
--- pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c:1.1 Tue Jun 2 15:07:59 2020
+++ pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c Thu Jun 11 11:43:50 2020
@@ -1,8 +1,10 @@
-$NetBSD: patch-programs_aes_crypt__and__hash.c,v 1.1 2020/06/02 15:07:59 nia Exp $
+$NetBSD: patch-programs_aes_crypt__and__hash.c,v 1.2 2020/06/11 11:43:50 nia Exp $
Not actually so harmless on SunOS, which requires at least 200112L
when compiling c99.
+https://github.com/ARMmbed/mbedtls/pull/3421
+
--- programs/aes/crypt_and_hash.c.orig 2020-04-09 13:12:23.000000000 +0000
+++ programs/aes/crypt_and_hash.c
@@ -23,7 +23,7 @@
Added files:
Index: pkgsrc/security/mbedtls/patches/patch-programs_ssl_ssl__mail__client.c
diff -u /dev/null pkgsrc/security/mbedtls/patches/patch-programs_ssl_ssl__mail__client.c:1.1
--- /dev/null Thu Jun 11 11:43:50 2020
+++ pkgsrc/security/mbedtls/patches/patch-programs_ssl_ssl__mail__client.c Thu Jun 11 11:43:50 2020
@@ -0,0 +1,16 @@
+$NetBSD: patch-programs_ssl_ssl__mail__client.c,v 1.1 2020/06/11 11:43:50 nia Exp $
+
+Make sure gethostname is available on NetBSD.
+
+https://github.com/ARMmbed/mbedtls/pull/3422
+
+--- programs/ssl/ssl_mail_client.c.orig 2020-04-09 13:12:23.000000000 +0000
++++ programs/ssl/ssl_mail_client.c
+@@ -23,6 +23,7 @@
+ * be set before config.h, which pulls in glibc's features.h indirectly.
+ * Harmless on other platforms. */
+ #define _POSIX_C_SOURCE 200112L
++#define _XOPEN_SOURCE 600
+
+ #if !defined(MBEDTLS_CONFIG_FILE)
+ #include "mbedtls/config.h"
Home |
Main Index |
Thread Index |
Old Index