Skip to contentSkip to conversation

safeclib: new package

PATCH New Fabrice Fontaine 1 participant 1 message Dec 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 safeclib: new package

safec fork with all C11 Annex K functions

This library implements the secure C11 Annex K functions on top of most libc implementations, which are missing from them.

https://rurban.github.io/safeclib/

---
Changes v1 -> v2:
- Fix build when wchar is disabled (patch already merged upstream)

 DEVELOPERS                                         |  1 +
 package/Config.in                                  |  1 +
 ...0001-Fix-install-when-HAVE_WCHAR-is-unset.patch | 50 ++++++++++++++++++++++
 package/safeclib/Config.in                         |  9 ++++
 package/safeclib/safeclib.hash                     |  3 ++
 package/safeclib/safeclib.mk                       | 15 +++++++
 6 files changed, 79 insertions(+)
 create mode 100644 package/safeclib/0001-Fix-install-when-HAVE_WCHAR-is-unset.patch
 create mode 100644 package/safeclib/Config.in
 create mode 100644 package/safeclib/safeclib.hash
 create mode 100644 package/safeclib/safeclib.mk
DEVELOPERS +1 -0
index 082d7e1740..a64a14e546 100644
@@ -633,6 +633,7 @@ F:	package/libupnp18/
 F:	package/minissdpd/
 F:	package/motion/
 F:	package/rygel/
+F:	package/safeclib/
 F:	package/tinycbor/
 F:	package/tinydtls/
 
package/Config.in +1 -0
index 6847f8965c..24cd00254f 100644
@@ -1544,6 +1544,7 @@ menu "Security"
 	source "package/libselinux/Config.in"
 	source "package/libsemanage/Config.in"
 	source "package/libsepol/Config.in"
+	source "package/safeclib/Config.in"
 endmenu
 
 menu "Text and terminal handling"
package/safeclib/0001-Fix-install-when-HAVE_WCHAR-is-unset.patch new file +50 -0

50 lines not on this page · raw message

package/safeclib/Config.in new file +9 -0
new file mode 100644
index 0000000000..5117c49da7
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SAFECLIB
+	bool "safeclib"
+	help
+	  safec fork with all C11 Annex K functions
+
+	  This library implements the secure C11 Annex K functions on
+	  top of most libc implementations, which are missing from them.
+
+	  https://rurban.github.io/safeclib/
package/safeclib/safeclib.hash new file +3 -0
new file mode 100644
index 0000000000..95a862eef0
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256	9c09c6e9fc95207c7d45944f8b669f2454056bef2bbaef70c94ba3f81be1cbb2	safeclib-v09102017.tar.gz
+sha256	c33e77efd5781e3d59a2bb648c82d2a615035ef0d24cf58880380e3af906510b	COPYING
package/safeclib/safeclib.mk new file +15 -0
new file mode 100644
index 0000000000..65c6621e0a
@@ -0,0 +1,15 @@
+################################################################################
+#
+# safeclib
+#
+################################################################################
+
+SAFECLIB_VERSION = v09102017
+SAFECLIB_SITE = $(call github,rurban,safeclib,$(SAFECLIB_VERSION))
+SAFECLIB_LICENSE = MIT 
+SAFECLIB_LICENSE_FILES = COPYING
+SAFECLIB_INSTALL_STAGING = YES
+# From git
+SAFECLIB_AUTORECONF = YES
+
+$(eval $(autotools-package))
Signature · 1 line
2.14.1