summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2014-12-10libssl major++Joel Sing
2014-12-10Add support for ALPN.Joel Sing
Based on OpenSSL and BoringSSL. ok bcook@
2014-12-10add stdint.h to ssl.h.Brent Cook
ok jsing@
2014-12-10Prefer .In and .Rv -stdPhilip Guenther
2014-12-10Improve the description and layout of the RUSAGE_* values, and do somePhilip Guenther
general cleanup diff from Kaspars Bankovskis (kaspars (at) bankovskis.net) ok and tweaks schwarze@, jmc@
2014-12-09Xr and Ox fixes;Jason McIntyre
2014-12-09random seed buffer must be unsignedTheo de Raadt
2014-12-09put back some information what the character classes actually mean;Ingo Schwarze
while here, remove the lie that regex(3) character classes would depend on the locale; ok jmc@
2014-12-09LC_CTYPE has no effect on ctype(3), but on wctype(3); ok jmc@Ingo Schwarze
2014-12-09Import new amd64 assembly versions of strchr/index, strrchr/rindex,Reyk Floeter
and strlen that provide a significantly faster performance than our previous .c or .S implementations. Based on NetBSD's code. Tested with different amd64 CPUs. ok deraadt@ mikeb@
2014-12-09no more string(3);Jason McIntyre
2014-12-09no more ctype(3);Jason McIntyre
2014-12-09fix NAME;Jason McIntyre
2014-12-09improve warnings from rand_r(), rand(), and random()Theo de Raadt
It may take a few iterations to get the tone right. previously discussed with millert
2014-12-09In ingo's new world order, we do not want multiple manual pages describingTheo de Raadt
the same thingies. Therefore these "lists of functions" man pages can go away. Hurray! I've wanted these pages to die for around 10 years! ok ingo (and i think jmc)
2014-12-09more standardsier: cast to int to make sure we keep the negative numbers.Ted Unangst
observed by jonas termansen
2014-12-08Oops, got the sense of the test backwards. Hilarious that we didn't spot it.Theo de Raadt
2014-12-08Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()Theo de Raadt
to returning strong random by default, source from arc4random(3). Parameters to the seeding functions are ignored, and the subsystems remain in strong random mode. If you wish the standardized deterministic mode, call srand_deterministic(), srandom_determistic(), srand48_deterministic(), seed48_deterministic() or lcong48_deterministic() instead. The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are unaffected by this change and remain in deterministic mode (for now). Verified as a good roadmap forward by auditing 8800 pieces of software. Roughly 60 pieces of software will need adaptation to request the deterministic mode. Violates POSIX and C89, which violate best practice in this century. ok guenther tedu millert
2014-12-08typoTheo de Raadt
2014-12-08major++Ted Unangst
2014-12-08Add chflagsat(), modeled on fchmodat() with name to match FreeBSD.Philip Guenther
2014-12-08more libc, less kernel documentationTed Unangst
2014-12-08tweak recommendation to use arc4random_bufTed Unangst
2014-12-08delete documentation for deleted DES interfacesTed Unangst
2014-12-08remove cfree from documentationTed Unangst
2014-12-08don't do silly (and slow) one byte reads in unbuffered mode.Ted Unangst
from enh at google
2014-12-08delete obsolete sunos cfree function. ok deraadt millert naddyTed Unangst
2014-12-08add siphash from the kernel to libcTed Unangst
2014-12-08remove setkey and encrypt interfaces. they are useless and dangerous.Ted Unangst
ok deraadt naddy
2014-12-08avoid void arithmetic. from david carlierTed Unangst
2014-12-08Use platform-defined method of printing a pointer.Brent Cook
Casting a pointer to an unsigned long discards bits on an LLP64 system. ok deraadt@
2014-12-08avoid left shift overflow in reallocarray.Brent Cook
Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with (size_t)1 so that we get the correct constant size for the platform. discussed with tedu@ & deraadt@
2014-12-07Allow specific libtls hostname validation errors to propagate.Brent Cook
Remove direct calls to printf from the tls_check_hostname() path. This allows NUL byte error messages to bubble up to the caller, to be logged in a program-appropriate way. It also removes non-portable calls to getprogname(). ok jsing@
2014-12-07Make GOST compile with a strict C compiler - in this case incrementing aJoel Sing
void pointer is undefined and initialising an array with {} is a syntax error. Based on a diff from kinichiro inoguchi.
2014-12-07Correctly output the result in STREEBOG512_Final() when running on a big-endianMiod Vallat
system. *blush*
2014-12-07Fix a memory leak in tls_check_subject_altname() by callingJoel Sing
sk_GENERAL_NAME_pop_free() instead of sk_GENERAL_NAME_free(). The latter only frees the stack itself and does not free the items. From Basskrapfen on github.
2014-12-07Make sure to load absolute symbol address with `dla' instead of `la' whenMiod Vallat
generating code for 64-bit mips userland.
2014-12-07revert previous change for now, adjusting based on comments from jsing@Brent Cook
2014-12-07Revert to the use of C code for the basic BN routines (bn_add_words,Miod Vallat
bn_div_words, bn_mul_add_words, bn_mul_words, bn_sqr_words, bn_sub_words) on sgi, because the generated assembly code isn't R4000-safe.
2014-12-07Remove OPENSSL_FIPSCANISTER mentions.Miod Vallat
2014-12-07Allow specific libtls hostname validation errors to propagate.Brent Cook
Remove direct calls to printf from the tls_check_hostname() path. This allows NUL byte error messages to bubble up to the caller, to be logged in a program-appropriate way. It also removes non-portable calls to getprogname(). The semantics of tls_error() are changed slightly: the last error message is not necessarily preserved between subsequent calls into the library. When the previous call to libtls succeeds, client programs should treat the return value of tls_error() as undefined. ok tedu@
2014-12-07Remove get_optional_pkey_id() - it is a hack that existed due to GOSTJoel Sing
only sometimes being available... and when it was available it was via the crypto engine. GOST is now part of libcrypto proper. Instead of trying to do EVP PKEY lookups via string literals and the ASN1 interfaces, lookup the methods directly using the appropriate NID. ok bcook@
2012-10-13import OpenSSL-1.0.1cDamien Miller
2014-12-06fix manual names that clash with other manualsIngo Schwarze
2014-12-06A few last 'easy' #include dedups.Kenneth R Westerback
ok tedu@
2014-12-06delete four MLINKS that are both duplicate and wrongIngo Schwarze
2014-12-06Avoid modifying input on failure in X509_(TRUST|PURPOSE)_add.Doug Hogan
If X509_TRUST_add() or X509_PURPOSE_add() fail, they will leave the object in an inconsistent state since the name is already freed. This commit avoids changing the original name unless the *_add() call will succeed. Based on BoringSSL's commit: ab2815eaff6219ef57aedca2f7b1b72333c27fd0 ok miod@
2014-12-06malloc(3) is in the "comp" install set, malloc.conf(5) in "man",Ingo Schwarze
breaking the hardlink between file system entries, confusing apropos(1). Split malloc.conf(5) out of malloc(3) as suggested by deraadt@. Feedback and OK jmc@, OK deraadt@ tedu@ jasper@.
2014-12-06Remove now bogus comment that got missed in the GOST commit.Joel Sing
2014-12-06Fix some horrible style(9) violations...Joel Sing