% cd /
% hget http://www.9legacy.org/9legacy/patch/tls-tlshand12.diff | ape/patch -p1
% hget http://www.9legacy.org/9legacy/patch/libsec-x509-sha2.diff | ape/patch -p1
% hget http://www.9legacy.org/9legacy/patch/libsec-x509-sig.diff | ape/patch -p1
% hget http://www.9legacy.org/9legacy/patch/libsec-tlshand12-nossl3.diff | ape/patch -p1
% hget http://www.9legacy.org/9legacy/patch/libsec-tlshand12-norc4.diff | ape/patch -p1
% hget http://www.9legacy.org/9legacy/patch/libsec-tlshand12-fixes.diff | ape/patch -p1
% hget http://www.9legacy.org/9legacy/patch/libsec-tlshand-sigalgs.diff | ape/patch -p1
% cd /sys/src/libsec
% mk nuke
% mk install
% cd /sys/src
% mk nuke
% mk install
Sources: http://www.9legacy.org/patch.html