bket 232587b5c7 Update to mbedtls-2.16.11
This release includes fixes for security issues:
- Local side channel attack on RSA
- Local side channel attack on static Diffie-Hellman with Montgomery curves

https://github.com/ARMmbed/mbedtls/releases/tag/v2.16.11

Build tested by, and OK from inoguchi@
2021-07-15 03:26:28 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.40 2021/07/15 03:26:28 bket Exp $
PORTROACH= limit:^2\.16
COMMENT= SSL library with an intuitive API and readable source code
GH_ACCOUNT= ARMmbed
GH_PROJECT= mbedtls
GH_TAGNAME= mbedtls-2.16.11
DISTNAME= ${GH_TAGNAME}
# check SOVERSION
SHARED_LIBS += mbedtls 6.2 # 12
SHARED_LIBS += mbedcrypto 4.4 # 3
SHARED_LIBS += mbedx509 3.1 # 0
CATEGORIES= security
HOMEPAGE= https://tls.mbed.org/
# Dual licensed: GPLv2+/Commercial, Apache v2 is also available
PERMIT_PACKAGE= Yes
WANTLIB += c pthread
MODULES= devel/cmake \
lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
MODPY_RUNDEP= No
CONFIGURE_ARGS= -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
-DLINK_WITH_PTHREAD=ON
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mbedtls
cd ${WRKSRC}; ${INSTALL_DATA} README.md ChangeLog \
${PREFIX}/share/doc/mbedtls
mv ${PREFIX}/bin ${PREFIX}/share/examples/mbedtls
(echo "These programs are useful code samples for a crypto expert, but";\
echo "should not be relied upon by the normal end-user.") \
> ${PREFIX}/share/examples/mbedtls/README
.include <bsd.port.mk>