summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-06-24Properly document the return values of EVP_PKEY_base_id(3)schwarze4-70/+152
and EVP_PKEY_id(3), then describe the "type" parameters of various functions more precisely referencing that information. In particular, document X509_get_signature_type(3) which was so far missing. OK tb@
2020-06-24use n-bit <noun> consistently; ok schwarze for the principal of the idea,jmc6-28/+28
and for flagging which pages to check;
2020-06-24Make tls13_legacy_shutdown() match ssl3_shutdown() semantics.jsing1-21/+22
When first called, queue and send a close notify, before returning 0 or 1 to indicate if a close notify has already been received from the peer. If called again only attempt to read a close notify if there is no pending application data and only read one record from the wire. In particular, this avoids continuing to read application data where the peer continues to send application data. Issue noted by naddy@ with ftp(1). ok jca@ tb@
2020-06-24new manual page ChaCha(3);schwarze3-2/+257
OK tb@
2020-06-24new manual page CMAC_Init(3);schwarze5-7/+298
OK tb@
2020-06-24Document eight additional pre-OpenSSL-1.1 accessor functions that areschwarze1-21/+122
still widely used according to code searches on the web, so people reading existing code will occasionally want to look them up. While here, correct the return type of X509_CRL_get0_lastUpdate(3) and X509_CRL_get0_nextUpdate(3), which return const pointers. Also, add some precision regarding RETURN VALUES.
2020-06-24enable test-tls13-keyshare-omitted.pytb1-5/+2
2020-06-24Enforce restrictions for ClientHello extensionstb1-1/+44
RFC 8446 section 9.2 imposes some requirements on the extensions sent in the ClientHello: key_share and supported_groups must either both be present or both be absent. If no pre_shared_key was sent, the CH must contain both signature_algorithms and supported_groups. If either of these conditions is violated, servers must abort the handshake with a missing_extensions alert. Add a function that enforces this. If we are going to enforce that clients send an SNI, we can also do this in this function. Fixes failing test case in tlsfuzzer's test-tls13-keyshare-omitted.py ok beck inoguchi jsing
2020-06-24Add test-ffdhe-expected-params.pytb1-1/+2
2020-06-19Enable lucky 13 test.tb1-5/+2
2020-06-19We inherited the constant time CBC padding removal from BoringSSL, buttb1-4/+4
missed a subsequent fix for an off-by-one in that code. If the first byte of a CBC padding of length 255 is mangled, we don't detect that. Adam Langley's BoringSSL commit 80842bdb44855dd7f1dde64a3fa9f4e782310fc7 Fixes the failing tlsfuzzer lucky 13 test case. ok beck inoguchi
2020-06-19mark the functions documented in des_read_pw(3) as deprecatedschwarze2-6/+11
and point to UI_UTIL_read_pw(3) instead; tb@ agrees with the general direction
2020-06-19document X509_get0_pubkey_bitstr(3),schwarze1-5/+81
correct the description of X509_get_X509_PUBKEY(3), document error handling of the read accessors, and mention the relevant STANDARDS
2020-06-19document error handling of X509_PUBKEY_get0(3) and X509_PUBKEY_get(3)schwarze1-3/+52
2020-06-19Merge documentation of X509_get0_serialNumber(3) from OpenSSL-1.1.1schwarze1-4/+19
which is still under a free license. Wording tweaked by me.
2020-06-15Document EVP_read_pw_string_min(3)tb1-6/+44
Add detailed information on the return values of all the functions in this page and remove the previous incorrect information. tweaks & ok schwarze
2020-06-15Document PEM_def_callback(3).schwarze3-106/+158
Move pem_password_cb(3) to the file PEM_read(3) and rewrite its description from scratch for precision and conciseness. Plus some minor improvements in the vicinity. Tweaks and OK tb@.
2020-06-12add my Copyright and license, which i forgot when adding a significantschwarze1-3/+20
amount of text, the ERRORS section, in the previous commit
2020-06-12add a comment saying that name_cmp() is intentionally undocumented;schwarze1-2/+5
tb@ agrees that it should not be part of the public API
2020-06-12document PEM_ASN1_read(3) and PEM_ASN1_read_bio(3);schwarze5-7/+236
tweaks and OK tb@
2020-06-11wording tweaks from ross l richardson and tb;jmc1-6/+6
ok tb
2020-06-10Add lucky13 and bleichenbacher-timing teststb1-1/+7
2020-06-10document PKCS7_get_signer_info(3)schwarze5-8/+75
2020-06-10describe six more PKCS7 attribute functionsschwarze1-14/+208
2020-06-09The check_includes step is incorrect dependency management model forderaadt3-33/+3
how our tree gets built. If this was done in all the libraries (imagine sys/dev), it would disrupt the development process hugely. So it should not be done here either. use 'make includes' by hand instead.
2020-06-06Implement a rolling hash of the ClientHello message, Enforce RFC 8446beck7-9/+181
section 4.1.2 to ensure subsequent ClientHello messages after a HelloRetryRequest messages must be unchanged from the initial ClientHello. ok tb@ jsing@
2020-06-05Add a custom copy handler for AES key wraptb1-5/+31
This is necessary because ctx->cipher_data is an EVP_AES_WRAP_CTX containing a pointer to ctx->iv. EVP_CIPHER_CTX_copy() uses memcpy to copy cipher_data to the target struct. The result is that the copy contains a pointer to the wrong struct, which then leads to a use-after-free. The custom copy handler fixes things up to avoid that. Issue reported by Guido Vranken ok beck inoguchi jsing
2020-06-05Use IANA allocated GOST ClientCertificateTypes.jsing3-9/+15
IANA has allocated numbers for GOST ClientCertificateType. Use them in addition to private values (left in place for compatibility). Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
2020-06-05Stop sending GOST R 34.10-94 as a CertificateType.jsing1-3/+1
GOST R 34.10-94 is an obsolete certificate type, unsupported by LibreSSL and by the rest of current software, so there is no point in sending in the CertificateTypes. Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
2020-06-05Handle GOST in ssl_cert_dup().jsing1-1/+5
Add missing case entry for SSL_PKEY_GOST01. Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
2020-06-05Enable GOST_SIG_FORMAT_RS_LE when verifying certificate signatures.jsing2-2/+15
GOST cipher suites requires that CertVerify signatures be generated in a special way (see ssl3_send_client_kex_gost(), ssl3_get_cert_verify()). However, the GOST_SIG_FORMAT_RS_LE flag was not passed in case of TLS 1.2 connections (because they use different code path). Set this flag on GOST PKEYs. Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
2020-06-05Allow GOST R 34.11-2012 in PBE/PBKDF2/PKCS#5.jsing1-1/+3
Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
2020-06-05Add OIDs for HMAC using Streebog (GOST R 34.11-2012) hash function.jsing2-0/+4
Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
2020-06-05Add a few more errors to help debugging.jsing1-6/+16
Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux. ok inoguchi@ tb@
2020-06-05Add support for additional GOST curves.jsing4-12/+182
These GOST curves are defined in RFC 7836 and draft-deremin-rfc4491-bis. Add aliases for 256-bit GOST curves (see draft-smyshlyaev-tls12-gost-suites) and rename the 512-bit curve ids to follow names defined in tc26 OID registry. Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux. ok inoguchi@
2020-06-05Remove remaining error *_str_functs[]jsing4-274/+11
A number of years ago we dropped the concept of having function names in errors, since it is not that useful and very quickly gets out of sync when refactoring. It would seem that some new ones got imported and some missed the last clean up. ok tb@ beck@ "kill it with fire"
2020-06-05Apply some style(9).jsing1-34/+30
2020-06-05One error file per directory is plenty.jsing3-229/+157
2020-06-04When X509_ATTRIBUTE_create() receives an invalid NID (e.g., -1), returnschwarze4-19/+124
failure rather than silently constructing a broken X509_ATTRIBUTE object that might cause NULL pointer accesses later on. This matters because X509_ATTRIBUTE_create() is used by documented API functions like PKCS7_add_attribute(3) and the NID comes straight from the user. This fixes a bug found while working on documentation. OK tb@ and "thanks" bluhm@
2020-06-04minor polishing:schwarze1-4/+10
* below SEE ALSO, point to the most similar function that is not deprecated * add a comment saying why ERR_load_ERR_strings() is intentionally undocumented * update the comment specifying the merge status
2020-06-04Align tls13_server_select_certificate() withtb1-3/+7
tls13_client_select_certificate(). ok inoguchi
2020-06-04Improve client certificate selection for TLSv1.3tb1-16/+80
This allows clients to use EC certificates. ok inoguchi, jsing
2020-06-04mention that TLS_method(3) also supports TLSv1.3;schwarze1-3/+3
tb@ OKed this part of a larger diff from inoguchi@
2020-06-04Collapse the x509v3 directory into x509.jsing38-47/+44
This avoids the need to grep across directories to find functions and prepares for further rototilling and chainsawing. Discussed with tb@ (who also tested the release build)
2020-06-04new manual page PKCS7_add_attribute(3);schwarze7-12/+201
tweaks and OK tb@
2020-06-03Properly document PKCS7_final(3), which was already mentionedschwarze10-32/+263
in passing in some other manual pages.
2020-06-03Enable the record layer limits test and mark two finished test cases astb1-5/+8
xfail for now. Arguably, the expected decode_error is more appropriate than the decrypt_error that we send at the moment.
2020-06-02Remove const modifier in return type of tls13_handshake_active_state()tb1-3/+3
which make no sense as pointed out by gcc on sparc64. ok jsing
2020-06-02distracting whitespacetb1-5/+5
2020-06-01Split the handling of post handshake handshake messages into itstb1-55/+44
own recv function. This simplifies tls13_recod_layer_read_internal() greatly and makes the phh handling easier to reason about since the code is no longer glued to the right hand edge of the terminal. ok jsing