Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Sp1l's full-sized avatar

Bernard Spil Sp1l

View GitHub Profile
# make
os.c:298:22: error: implicit declaration of function 'kmem_alloc_nofault' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
vm_offset_t res = kmem_alloc_nofault(kernel_map, PAGE_SIZE);
^
os.c:355:14: error: incompatible pointer types passing 'vm_map_t'
(aka 'struct vm_map *') to parameter of type 'struct vmem *'
[-Werror,-Wincompatible-pointer-types]
kmem_free(kernel_map, (vm_offset_t)mapping, PAGE_SIZE);
^~~~~~~~~~
@Sp1l
Sp1l / LibreSSL-frogs
Last active August 29, 2015 14:07
FreeBSD LibreSSL info from frogs
http://pastebin.com/raw.php?i=3J2M0qTU
switching freebsd ports from openssl to libressl
* identify which programs and libraries are using openssl
* for base programs (like openssh) you will need to switch to the ports equivalent
sh -c 'find /usr/local -type f -exec ldd {} + 2> /dev/null | \
@Sp1l
Sp1l / LibreSSL
Last active August 29, 2015 14:07
LibreSSL
http://www.openbsd.org/papers/eurobsdcon2014_arc4random/index.html
https://svnweb.freebsd.org/base?view=revision&revision=267379
http://thread.gmane.org/gmane.os.netbsd.bugs/10114
http://www.openbsd.org/papers/eurobsdcon2014-libressl.html
https://github.com/gentoo/libressl/
Replace SSLv23_method with TLSv1_method (but loose support for 1.1 and 1.2)
Libressl removed:
- compression
pkg query -g '%n-%v %dn-%dv' '*' | \
while read pkg dep ; do
[ "$pkg" != "$prev" ] && echo $pkg
echo "> $dep"
prev=$pkg
done > ${pkg_logs}/${datestamp}.pkg_tree