summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-12-30Pull out (and largely rewrite) the code that determines the enabledjsing3-40/+54
protocol version range. This also fixes a bug whereby if all protocols were disabled, the client would still use TLSv1.2 in the client hello, only to have if fail with unsupported version when it received and processed the server hello. ok doug@
2016-12-30Place ASN_ITEM_{ptr,rptr,ref} and DECLARE_ASN1_ITEM under #ifndefjsing1-2/+4
LIBRESSL_INTERNAL.
2016-12-30Expand ASN1_ITEM_rptr macros here as well... used with NETSCAPE_X509 of alljsing2-4/+4
things...
2016-12-30Expand ASN1_ITEM_rptr macros - no change in preprocessor output.jsing2-9/+9
2016-12-30Expand ASN1_ITEM_rptr and ASN1_ITEM_ptr macros - no change in generatedjsing9-33/+33
assembly.
2016-12-30Stop using M_PKCS12_* compatibility macros here as well.jsing1-3/+3
2016-12-30Expand ASN1_ITEM_ref and ASN1_ITEM_ptr macros - no change in generatedjsing22-66/+66
assembly. Of particular interest is ASN1_ITEM_ptr which does nothing and resulted in code like: if (method->it) ASN1_ITEM_free(..., ASN1_ITEM_ptr(method->it));
2016-12-30Expand ASN1_ITEM_rptr macros - no change in generated assembly.jsing2-6/+6
2016-12-30Expand ASN1_ITEM_rptr macros - no change in generated assembly.jsing10-37/+37
2016-12-30Expand ASN1_ITEM_rptr macro - no change in generated assembly.jsing2-4/+4
2016-12-30Expand ASN1_ITEM_rptr macros - no change in generated assembly.jsing2-55/+55
2016-12-30Remove now unused c2l, c2ln, l2c, n2l, l2cn and n2l3 macros.jsing2-53/+2
2016-12-30Explicitly include openssl/opensslconf.h in headers that use OPENSSL_NO_*jsing2-2/+4
defines - do not rely on another heading making those available for us.
2016-12-30Place M_PKCS12_* compatibility macros under #ifndef LIBRESSL_INTERNAL.jsing1-1/+5
2016-12-30Expand M_PKCS12_* "compatibility" macros. No change to generated assembly.jsing3-10/+10
2016-12-29Write d2i_ASN1_NULL(3) manual page from scratch.schwarze2-1/+86
Both functions are listed in <openssl/asn1.h> and in OpenSSL doc/man3/d2i_X509.pod. After reading the code, i'm not amused. You wouldn't think that it might take eight stack levels to decode a constant sixteen bit value that does not even allow a single content octet, or would you? Nota bene, this is an average of four stack levels for each non-zero bit decoded... :-(
2016-12-29fix typo; from OpenSSLschwarze1-4/+4
commit 67adf0a7c273a82901ce8705ae8d71ee2f1c959c Author: Markus Triska <triska@metalevel.at> Date: Sun Dec 25 19:58:38 2016 +0100
2016-12-28Write documentation for <openssl/x509v3.h> DER decoding andschwarze9-8/+861
encoding functions from scratch. All 46 functions are listed in OpenSSL doc/man3/d2i_X509.pod.
2016-12-28add missing .Vt macrosschwarze2-8/+15
2016-12-28standard section name;jmc1-3/+3
2016-12-28Rewrite and add d2i_X509_REQ_INFO(3) and i2d_X509_REQ_INFO(3),schwarze1-66/+99
both listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod.
2016-12-28Rewrite and add d2i_X509_CRL_INFO(3), i2d_X509_CRL_INFO(3),schwarze1-67/+94
d2i_X509_REVOKED(3), and i2d_X509_CRL_INFO(3), all listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod.
2016-12-28Use the same parameter names as in ASN1_item_d2i(3).schwarze1-53/+32
Use simpler standard wordings. Add X.509 references.
2016-12-28rewrite in the standard wayschwarze1-60/+29
2016-12-28Minor cleanup:schwarze1-17/+19
Improve the one-line description. Use the standard wordings in some places. Complete the RETURN VALUES section.
2016-12-28Write new manual pages d2i_X509_ATTRIBUTE(3) and d2i_X509_EXTENSION(3)schwarze6-7/+176
from scratch. All six functions are listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod.
2016-12-28In contrast to OpenSSL, do not attempt to document the worldschwarze1-5/+98
in this page - but do include documentation for immediate subobjects that are used nowhere else. All six functions listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod.
2016-12-28Basic cleanup:schwarze1-311/+60
Improve .Nd. Sort functions. Use the same parameter names as in ASN1_item_d2i(3). Point to ASN1_item_d2i(3) for all he details. Delete all the information that's now in ASN1_item_d2i(3). Add missing entries to the RETURN VALUES section. Add STANDARDS section.
2016-12-28Full rewrite.schwarze1-60/+123
Also document d2i_PKCS8_bio(3), i2d_PKCS8_bio(3), d2i_PKCS8_fp(3), and i2d_PKCS8_fp(3) while here, listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod. No, these functions have nothing to do with the many other d2i_PKCS8*(3) functions all around, and nothing with PKCS#8 at all in the first place. Read the BUGS section. I couldn't make this stuff up.
2016-12-28Add a dire warning to not confuse i2d_PKCS8PrivateKey_bio(3)schwarze1-4/+12
with i2d_PKCS8PrivateKeyInfo_bio(3). While here, polish the cross references.
2016-12-28Document i2d_PKCS8PrivateKeyInfo_bio(3) and i2d_PKCS8PrivateKeyInfo_fp(3),schwarze1-6/+41
listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod. These functions are very similar to i2d_PrivateKey(3) but very different from i2d_PKCS8PrivateKey_bio(3), that's why they go into this manual page and not into the other one. When the naming was decided, somebody clearly considered too briefly or too long.
2016-12-28Write new manual page d2i_PKCS8_PRIV_KEY_INFO(3) from scratch.schwarze2-1/+116
These six function are listed in <openssl/x509.h> and in OpenSSL doc/man3/d2i_X509.pod.
2016-12-27Write new manual pages d2i_OCSP_REQUEST(3) and d2i_OCSP_RESPONSE(3)schwarze3-1/+423
from scratch. All these functions are listed in <openssl/ocsp.h> and in OpenSSL doc/man3/d2i_X509.pod.
2016-12-27New manual pages d2i_ESS_SIGNING_CERT(3) and d2i_TS_REQ(3) writtenschwarze3-1/+446
from scratch. All functions listed in <openssl/ts.h> and in OpenSSL doc/man3/s2i_X509.pod.
2016-12-27Place the DECLARE_ASN1_* macros under #ifndef LIBRESSL_INTERNAL.jsing1-4/+10
2016-12-27Use correct version of previous macro expansion.jsing1-5/+5
2016-12-27Expand DECLARE_ASN1_FUNCTIONS_{fname,name} macros - no change tojsing1-6/+22
preprocessor output, excluding line numbers and newlines.
2016-12-27Expand DECLARE_ASN1_{NDEF,PRINT}_FUNCTION macros - no change injsing1-3/+3
preprocesssor output.
2016-12-27Remove all DECLARE_ASN1_SET_OF macro usage - since 2000 these have beenjsing7-32/+7
nothing but markers for utils/mkstack.pl... and we removed the code that generated more macros from these markers in 2014.
2016-12-27Place some macros under #ifndef LIBRESSL_INTERNAL.jsing1-2/+5
2016-12-27Kill some #if 0 code that uses old-style ASN.1 encoding.jsing1-45/+1
2016-12-27Expand DECLARE_ASN1_ITEM macros - no change in preprocessor output.jsing1-6/+6
2016-12-27Expand DECLARE_ASN1_ITEM - no change to preprocessor output.jsing1-3/+3
2016-12-27Expand DECLARE_ASN1_ITEM macros - no change to preprocessor output.jsing1-3/+3
2016-12-27Expand DECLARE_ASN1_ITEM macros - no change in preprocessor output.jsing2-12/+12
2016-12-27remove a stray comment line that might cause confusionschwarze1-2/+1
2016-12-27Expand DECLARE_ASN1_* macros. No change in preprocessor output, excludingjsing1-20/+92
line numbering and new lines.
2016-12-27minor fixes;jmc2-7/+7
2016-12-26Typo, "more then" -> "more than"jca1-2/+2
2016-12-26also document the weird i2d_PKCS7_NDEF(3)schwarze1-1/+14
listed in <openssl/pkcs7.h> and OpenSSL doc/man3/d2i_X509.pod