diff --git a/security/mbedtls/mbedtls.cache b/security/mbedtls/mbedtls.cache new file mode 100644 index 000000000..9c02f98fb --- /dev/null +++ b/security/mbedtls/mbedtls.cache @@ -0,0 +1,5 @@ + +[TIMESTAMP] 1431624485 Thu May 14 17:28:05 2015 +[BUILDTIME] 10 (5) +[SIZE] 4.08 MB, 165 files + diff --git a/security/mbedtls/mbedtls.conf b/security/mbedtls/mbedtls.conf new file mode 100644 index 000000000..8134d24aa --- /dev/null +++ b/security/mbedtls/mbedtls.conf @@ -0,0 +1,24 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../mbedtls/mbedtls.conf +# Copyright (C) 2006 - 2015 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +hook_add prepatch 5 ' ' 'we_like_C' +var_append LDFLAGS ' ' "--I../include" + +we_like_C () { + sed -i 's|//\(#define POLARSSL_THREADING_C\)|\1|' $srcdir/include/polarssl/config.h + sed -i 's|//\(#define POLARSSL_THREADING_PTHREAD\)|\1|' $srcdir/include/polarssl/config.h +} + +var_append makeopt ' ' 'SHARED=1 no_test' +var_append makeinstopt ' ' 'DESTDIR=$root/$prefix' diff --git a/security/mbedtls/mbedtls.desc b/security/mbedtls/mbedtls.desc new file mode 100644 index 000000000..efd084162 --- /dev/null +++ b/security/mbedtls/mbedtls.desc @@ -0,0 +1,39 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../mbedtls/mbedtls.desc +[COPY] Copyright (C) 2006 - 2015 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A full featured cryptographic library + +[T] PolarSSL is a cryptographic library written in C. It currently features +[T] several ciphers (AES, Triple-DES, and ARC4), hash functions (MD{2,4,5}, +[T] SHA-1, and SHA-256), and RSA and X. 509 reading support. It also +[T] implements the Secure Sockets Layer version 3 protocol (SSLv3), as well +[T] as the Transport Layer Security version 1 protocol. +[T] +[T] PolarSSL is the official fork of XySSL after the original author +[T] had to stop maintaining the project. + +[U] https://tls.mbed.org/ + +[A] Paul Bakker +[A] Christophe Devine {Original Author} +[M] Alejandro Mery + +[C] base/library + +[L] GPL +[S] Stable +[V] 1.3.10 +[P] X -----5---9 300.000 + +[D] 943245222 mbedtls-1.3.10-gpl.tgz https://tls.mbed.org/download/ diff --git a/security/mbedtls/programs.makefile.patch b/security/mbedtls/programs.makefile.patch new file mode 100644 index 000000000..fb4baf59c --- /dev/null +++ b/security/mbedtls/programs.makefile.patch @@ -0,0 +1,38 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../mbedtls/programs.makefile.patch +# Copyright (C) 2015 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./programs/Makefile 2014-07-31 12:20:17.748459143 -0400 ++++ ./programs/Makefile 2014-07-31 12:21:35.388454356 -0400 +@@ -43,7 +43,7 @@ + test/selftest test/ssl_test \ + util/pem2der util/strerror \ + x509/cert_app x509/crl_app \ +- x509/cert_req ++ x509/cert_req x509/cert_write + + ifdef OPENSSL + APPS += test/o_p_test +@@ -241,6 +241,10 @@ + echo " CC x509/cert_req.c" + $(CC) $(CFLAGS) $(OFLAGS) x509/cert_req.c $(LDFLAGS) -o $@ + ++x509/cert_write: x509/cert_write.c ../library/libpolarssl.a ++ echo " CC x509/cert_write.c" ++ $(CC) $(CFLAGS) $(OFLAGS) x509/cert_write.c $(LDFLAGS) -o $@ ++ + clean: + ifndef WINDOWS + rm -f $(APPS)