summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-28merge defaultben
2016-04-28get rid of size printingben
2016-04-27check program sizeben
2016-04-28rune(2): add Runeerror reencoding considerations in BUGS section (thanks aiju)cinap_lenrek
2016-04-27better memory management of threads (thanks knuth)ben
2016-04-27merge in masterben
2016-04-27use Beof for awk portben
2016-04-27remove ape regexp library, add utility for awk native portben
2016-04-27libjson: add slack space to literal string buffer to handle bad runes ↵cinap_lenrek
(thanks mischief) if the input string contains invalid utf-8, runetochar() produces unicode replacement characters that can overflow the literal buffer. as the overflow check is done after runetochar(), add UTFmax bytes of slack space avoiding the issue.
2016-04-26remove old libregexp files; add headers for upas/bayesben
2016-04-26New libregexp and APE ported to nativeben
2016-04-26abaco(1): remove readwebcinap_lenrek
2016-04-25made abaco's gui respect $font and made readweb respect most installationsMatthew Veety
2016-04-22rsa: rename getkey() to getrsakey(), document rsa2csr in rsa(8)cinap_lenrek
2016-04-22libsec: implement server side SCSV preventing silly client fallbackscinap_lenrek
silly clients (web*) reconnect when the handshake failed with a lower protocol version, which allows downgrade attacks (POODLE). but instead of stopping this madness, they invented a new magic TLSID to indicate to the server that this connection attempt is a retry, and rely on the server to notice and stop them from sabotaging themselfs.
2016-04-21libsec: order tlshand cipher suits by: keyexchange>=cipher>=hash, ignore ↵cinap_lenrek
client preference client preference is usualy crazy, so just ignore it. we always want the diffie hellman suits before static rsa and prefer chacha over aes-gcm.
2016-04-21rsagen: increase default key size to 2048 bitscinap_lenrek
2016-04-21libsec: remove affine coordinate point operations from ecccinap_lenrek
we now just do point addtion in jacobian coordinate system, and convert the result to affine when s->z == nil.
2016-04-20libsec: implement elliptic curve group operations in jacobian coordinate systemcinap_lenrek
2016-04-20rcpu: make sure not to leak /env/fn#server and /env/fn#aanserver for ↵cinap_lenrek
drawterm (thanks mischief)
2016-04-18libsec: implement server side ECDHE key exchange with secp256r1, move DH ↵cinap_lenrek
state in TlsSec structure, simplify implement ECDHE key exchange with secp256r1 on the server side, providing perfect forward secrecy (tho slowly). it is easier to just keep the ECDH/DH state in the TlsSec structure, which fits better with the grouping of the functions. we do the cleanup in tlsConnectionFree() now, so a lot of error handling logic could go away. reinvestigated some error paths and removed the ones that cannot error. move functions to fit the logical grouping. combine the code for signing handshake hashes (for client certs) and DH parameters. provide digestDHparams() function to be shared between server and client code.
2016-04-18webfs: fix memory leak of serverName in tlswrap()cinap_lenrek
2016-04-17rsa(8): provide example for converting OpenSSL generated PEM file to factotumcinap_lenrek
2016-04-17libsec: massive cleanup of tlshand.ccinap_lenrek
don't pass or generate sessionID's. this was never used nor actually implemented and leaks the process pid. get rid of version and random field duplications, move TlsSec structure into TlsConnection. make msgRecv() clear the message first, get rid of unneccesary msgClear() calls.
2016-04-16libsec: fix memory leak of RSApub, avoid parsing certificate twice to ↵cinap_lenrek
extract rsa public key instead of letting factotum_rsa_open() parse the certificate, we pass in the rsa public key which is then matched against the factotum keyring. this avoids parsing the x509 certificate twice. the sec->rsapub was not freed, so free it in tlsSecClose()
2016-04-16libsec: recognize and decode PKCS#8 wrapped RSA private keys for auth/asn12rsacinap_lenrek
example usage: auth/pemdecode 'PRIVATE KEY' test.pem | auth/asn12rsa
2016-04-15webfs: change %H (hostname) format to %N to not collide with encodefmt's %H ↵cinap_lenrek
(hex)
2016-04-15libsec: x509: convert to UTF8 from BMPString and UNIString, reject \0 bytescinap_lenrek
2016-04-13libc: fix out of bounds access in dirpackage(), simplifycinap_lenrek
- dirpackage() was not checking if the stat entry lies within the buffer. fixed. - simplify dirpackage(), as we process all the bytes from the buffer, we do not need to track "ss" here as its the same as "ts". - zero Dir* array pointer early in dirread() and dirreadall() and avoid calling dirpackage on <= buffer length.
2016-04-13kbdfs: add shift+altgr table 7 for polish keymapscinap_lenrek
2016-04-13Subject: typo: ee corrected (thanks Eric Lindblad)cinap_lenrek
sorry there were entries as 3 27 '§ 3 27 '½ should have been 3 27 '§ 3 43 '½ attached is a corrected version
2016-04-13fix estonian keymap (thanks Eric Lindblad)cinap_lenrek
The /sys/lib/kbmap/ee file seemed to have CRs in it. If a first column in the table (for modifier key) as 4 is for Alt Gr + Shift then the attached (UTF-8 without BOM) should work as a replacement ee file. Best Regards, Eric Lindblad
2016-04-13python: make hashlib.py fallback to openssl in case of old python binarycinap_lenrek
2016-04-13remove unused liboventicinap_lenrek
2016-04-13ktrace: sign extend stack dump pc for amd64cinap_lenrek
2016-04-13libc: remove unneeded #include <auth.h> for crypt() and netcrypt()cinap_lenrek
2016-04-13libdraw: avoid BPSHORT()/BPLONG() expansion, cleanup loadchar(),cachechars()cinap_lenrek
assigning the expression value to a temporary variable in BPSHORT() and BPLONG() saves arround 2K of text in rio on arm and arround 1K on amd64. loadchar(): use the passed in "h" as the char index instead of recomputing it from c-f->cache. dont recompute wid. cachechars(): do cache lookup and find oldest entry in a single loop pass.
2016-04-12add danish keymap (thanks Eric Lindblad)cinap_lenrek
2016-04-11ape: explicitely list the ape libs to build in mkfilecinap_lenrek
2016-04-11ape: removing opensslcinap_lenrek
2016-04-11python: remove openssl support, use ape/libsec for cryptographics hash functionscinap_lenrek
2016-04-11gs: replace openssl aes implementation with ape/libseccinap_lenrek
2016-04-11ape: add libauth, libbio, libmp and libsec as replacements for opensslcinap_lenrek
2016-04-10hg: create system wide /sys/lib/hgrc to enabled hgwebfs extensioncinap_lenrek
the openssl we currently use is outdated and will be removed soon. webfs will handle the https for us with native tls code. keys have to be stored in factotum for everyone who also wants to commit directly.
2016-04-10libauth: remove unneeded includes for authsrv.h, avoid pulling in dependency ↵cinap_lenrek
for rerrstr()
2016-04-10libsec: make #include headers consistentcinap_lenrek
2016-04-10libsec: dont use mips assembly routines for spim, wrong endianesscinap_lenrek
2016-04-10libmp: fix build for spim, reduce by the mips assembly filescinap_lenrek
2016-04-10hg: set mercurial.url.has_https when hgwebfs extension is in usecinap_lenrek
this allows the use of SSL/HTTPS even when python is not build with openssl support.
2016-04-10ape: move compatibility libc.h to lib9 directory and incooperate needed ↵cinap_lenrek
functions for ape/mp (wip)