summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/system.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-21explain how tls_accept_socket works.tedu1-2/+9
2015-02-21tls_config_set_protocols is really void. Greg Martin.tedu1-3/+3
2015-02-21fill out docs a bit more, notably the read/write again behaviors.tedu1-3/+27
ok jsing
2015-02-19If BN_rand() or BN_pseudo_rand() are called with a NULL rnd argument,jsing2-6/+16
BN_bin2bn() will helpfully allocate a BN which is then leaked. Avoid this by explicitly checking for NULL at the start of the bnrand() function. Fixes Coverity ID 78831. ok miod@
2015-02-19BN_free() has its own NULL check.jsing1-14/+7
2015-02-19KNF.jsing1-766/+834
2015-02-18fix coverity 105350 and 10345beck1-1/+2
ok miod@, doug@
2015-02-17Memory leak in error path. Coverity CID 78822.miod2-16/+18
ok doug@
2015-02-16Amend documentation for AI_ADDRCONFIGjca1-2/+4
ok jmc@
2015-02-16third batch of perlpod(1) to mdoc(7) conversionschwarze25-1367/+2121
2015-02-16Add more error checking and free resources in bytestringtest.doug1-26/+47
2015-02-15Avoid calling BN_CTX_end() on a context that wasn't started.doug2-8/+8
In dsa_builtin_paramgen(), if BN_MONT_CTX_new() fails, the BN_CTX_new() call above it will have allocated a ctx without calling BN_CTX_start() on it. The error handling calls BN_CTX_end() when ctx is allocated. Move the BN_MONT_CTX_new() call up so it will fail first without splitting up the BN_CTX_new() and BN_CTX_start(). tweak + ok miod@, ok bcook@
2015-02-15Use "In" to mark up include files, instead of wrongly wrapping with Aq.bentley1-3/+3
Aq is not the same as <> in non-ASCII situations, so this caused incorrect output in some places. And it provided no semantics besides. ok schwarze@
2015-02-15Regenmiod6-528/+564
2015-02-15s/tls_load_keys/tls_load_file/jsing1-2/+2
2015-02-15Document tls_config_parse_protocols() and update documentation forjsing2-5/+27
tls_config_set_protocols().
2015-02-15Fix various memory leaks by not exiting so abruptly from failed tests.miod1-579/+507
2015-02-15Remove ancient gcc workaround on mips.miod1-3/+2
2015-02-15Memory leak. Coverity CID 78865miod1-2/+3
2015-02-15Wrong logic; Coverity CID 78894miod1-1/+1
2015-02-15If we decide to discard the provided seed buffer because its size is notmiod2-16/+12
large enough, do it correctly so that the local seed buffer on the stack gets properly initialized in the first iteration of the loop. While there, remove an outdated and bogus comment. Coverity CID 21785 ok doug@ jsing@
2015-02-15Check ASN1_OCTET_STRING_new() for failure. Coverity CID 78904miod2-12/+16
ok doug@
2015-02-15In ec_wNAF_mul(), move the declaration of tmp_wNAF higher in scope, so thatmiod2-12/+10
all the function's exit paths can make sure it gets freed. Coverity CID 78861 tweaks & ok doug@ jsing@
2015-02-15lsearch and lfind return void *tedu1-4/+4
2015-02-14Support for nc -T on IPv6 addresses.jca1-7/+16
ok sthen@
2015-02-14Remove asn1_ex_i2c() prototype, now that this function has been made static;miod2-4/+2
reminded by bcook@
2015-02-14Words read better when they are separated by spaces.miod2-2/+2
2015-02-141.18 would introduce a possible out-of-bounds access in the error path;miod2-14/+10
Coverity CID 105346 ok doug@
2015-02-14Remove DEBUG_PKCS5V2 code.miod2-50/+2
2015-02-14Unchecked allocations in x509_name_canon().miod2-2/+10
ok doug@ jsing@
2015-02-14Memory leak upon error in X509_add1_{trust,reject}_object.miod2-14/+46
ok doug@
2015-02-14Manually expand IMPLEMENT_EXTERN_ASN1 macro (the only occurence in crypto).jsing2-6/+20
Only change to generated assembly is due to line numbers.
2015-02-14Remove IMPLEMENT_COMPAT_ASN1() and related support code. Nothing uses it inmiod10-282/+14
libcrypto/libssl, and nothing seems to use it in the wild, apart from embedded copies of OpenSSL. ok jsing@
2015-02-14Make asn1_ex_i2c() static. ok jsing@miod2-4/+8
2015-02-14Memory leak in `should not happen' condition; Coverity CID 78889.miod2-8/+8
ok doug@ jsing@
2015-02-14Memory leak upon error; Coverity CID 78857miod2-2/+8
ok doug@ jsing@ CVy: Committing in .
2015-02-14Check i2d_name_canon() for failure (negative return). Coverity CID 78888.miod2-12/+16
ok doug@ jsing@
2015-02-14Possible NULL pointer dereferences. Coverity CID 21719, 21732.miod4-6/+14
ok doug@ jsing@
2015-02-14Potential NULL dereference in the error path; Coverity CID 21720miod2-4/+4
ok doug@ jsing@
2015-02-14Coverity CID 21733 (unchecked allocation), 78823 (leak on error).miod2-2/+12
ok doug@ jsing@
2015-02-14Check for allocation error in RSA_eay_mod_exp(). Coverity CID 25217.miod4-4/+14
ok jsing@
2015-02-14Memory leaks upon error. Coverity CID 78874.miod2-20/+20
ok jsing@
2015-02-14Fix tests that got incorrectly inverted with the BN_CTX_get() return checkjsing2-10/+10
diff. Spotted by miod@
2015-02-14Expand ASN1_CHOICE*, ASN1_SEQUENCE* and associated macros, making thejsing6-120/+832
data structures visible and easier to review, without having to wade through layers and layers of asn1t.h macros. Change has been scripted and there is no change to the generated assembly. Discussed with beck@ miod@ tedu@
2015-02-14Expand ASN1_CHOICE*, ASN1_SEQUENCE* and associated macros, making thejsing2-18/+106
data structures visible and easier to review, without having to wade through layers and layers of asn1t.h macros. Change has been scripted and there is no change to the generated assembly. Discussed with beck@ miod@ tedu@
2015-02-14Attempt to correctly free temporary storage upon error. With help frommiod2-30/+36
doug@ and jsing@, ok doug@ three months ago (sigh... I sometimes suck bigtime at commiting bugfixes)
2015-02-14second batch of perlpod(1) to mdoc(7) conversionschwarze23-924/+1381
2015-02-14While doing development work on pod2mdoc(1),schwarze11-534/+773
profit of the occasion to start the conversion of LibreSSL libcrypto manuals from perlpod(1) to mdoc(7). miod@ jmc@ bentley@ agreed to the process when shown this patch.
2015-02-14Spell NULL correctly, be explicit with NULL checks and it is also easier tojsing4-20/+12
initialise during declaration and drop the else statement. ok doug@ miod@
2015-02-14Fix pod markup error.miod1-1/+1