summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-12-12Document DIRECTORYSTRING_new(3), DIRECTORYSTRING_free(3),schwarze1-6/+32
DISPLAYTEXT_new(3), DISPLAYTEXT_free(3). These functions are clearly public because OpenSSL documents them and they are in the public <openssl/asn1.h> header. OpenSSL documents these four functions in doc/man3/X509_dup.pod [sic], but the information given is completely wrong: wrong header file, wrong prototypes, misleading description. Why, oh why do people even bother to write documentation if nothing of what they write is true?
2016-12-11import openssl.cnf(5) and x509v3.cnf(5) from OpenSSL;schwarze6-14/+1259
below OpenBSD quality standards, but better than nothing...
2016-12-11Distribute the text of ec(3) to the individual EC manuals where it belongs.schwarze11-107/+70
Make sure EC_GROUP_new(3) points to all EC manuals and all EC manuals point back to EC_GROUP_new(3), and add some other useful links as well. Change all links to ec(3) to point to EC_GROUP_new(3) instead.
2016-12-11Merge all of rsa(3) into RSA_new(3).schwarze3-93/+86
In this case, keep the text about individual struct fields because it contains some actual information.
2016-12-11Change all references to rsa(3) to point to RSA_new(3) instead.schwarze17-50/+51
Make sure all RSA pages point back to RSA_new(3).
2016-12-11add missing section number to Xr;jmc1-3/+3
2016-12-11some fixes for the dsa.3 -> DSA_new.3 changes;jmc3-9/+8
2016-12-10Merge one sentence and the references from dsa(3) to DSA_new(3) andschwarze3-80/+23
discard the rest of the text. There is no value in documenting some of the fields of a structure and then going on to say that the structure is intended as opaque. Besides, i doubt that we want such strong marketing of ENGINE support.
2016-12-10Change all references to dsa(3) to point to DSA_new(3).schwarze12-35/+33
Make sure all DSA pages point back to DSA_new(3).
2016-12-10Merge one sentence and the references from dh(3) to DH_new(3) andschwarze3-67/+12
discard the rest of the text. There is no value in documenting some of the fields of a structure and then going on to say that the structure is intended as opaque. Besides, i doubt that we want such strong marketing of ENGINE support.
2016-12-10Replace all references to dh(3) with DH_new(3).schwarze12-34/+30
Make sure that all DH pages point back to DH_new(3).
2016-12-10Add Copyright and license; jmc@ noticed that i forgot this file.schwarze1-30/+53
Correct the header: It's <openssl/ui_compat.h>, not <openssl/des_old.h>. Delete documentation of des_read_password(3) and des_read_2passwords(3) which no longer exist. Probably, the rest of this ought to be deleted as well...
2016-12-10Add Copyright and license; jmc@ noticed that i missed this file.schwarze1-1/+50
2016-12-10Merge bn(3) into BN_new(3).schwarze3-76/+41
OpenSSL removed bn(3) without replacement, but the introductory text does seem helpful, and it is good for a sub-library to have a central page pointing to all other pages and pointed at from all other pages of the sub-library.
2016-12-10replace all references to bn(3) with BN_new(3),schwarze24-70/+74
and make sure all BN*(3) pages point back to BN_new(3)
2016-12-10Add Copyright and license; jmc@ noticed that i missed this file.schwarze1-2/+50
I'm not merging documentation for X509_STORE_set_verify_func(3) from OpenSSL because their documentations does not appear to match the code we have, and i don't understand what the code does.
2016-12-10Copyright and license; jmc@ noticed that is forgot this fileschwarze1-2/+50
2016-12-10Add Copyright and license.schwarze1-1047/+149
Delete all the function prototypes. They are all available from their individual manual pages. Here, they were incomplete and nothing but a maintenance nightmare. Add several missing cross reference, such that this page now references all libssl manual pages. Delete a sentence that said nothing and correct a typo. Now all libssl manuals have proper Copyright notices and licenses, and i have merged all improvements from OpenSSL that i could find.
2016-12-10Write an SSL_get_shared_ciphers(3) manual from scratch; another oneschwarze2-1/+72
where BUGS is longer than DESCRIPTION. The function is listed in ssl(3) and <openssl/ssl.h>, so it's clearly public. The code looks slightly mysterious to me, so it would be welcome if somebody more familiar with TLS protocols could check factual accuracy.
2016-12-10New manual pages SSL_get_certificate(3), SSL_get_state(3), andschwarze5-4/+286
SSL_num_renegotiations(3) written from scratch. These functions are listed in ssl(3) and <openssl/ssl.h>, so they are clearly public.
2016-12-10Document SSL_version(3). It's listed in ssl(3) and <openssl/ssl.h>,schwarze1-7/+20
so it's clearly a public interface.
2016-12-08some Vt fixes;jmc5-18/+18
2016-12-08minor cleanup;jmc5-24/+20
2016-12-08various cleanup;jmc12-61/+58
2016-12-08Fix regressions introduce in the fix for CVE-2016-6559.millert1-6/+5
From FreeBSD (glebius)
2016-12-07Write SSL_renegotiate(3) manual from scratch; this function is listedschwarze2-1/+58
in ssl(3) and <openssl/ssl.h>, so it's clearly a public interface. More could probably be said, the code looks somewhat mysterious to me, but i think this stub is already better than nothing.
2016-12-07add missing .Nm SSL_peek in the NAME sectionschwarze1-3/+4
2016-12-07Write SSL_copy_session_id(3) manual from scratch. This function isschwarze2-1/+78
listed in ssl(3) and <openssl/ssl.h>, so it's clearly a public interface. We might wish to merge the improved code from OpenSSL 1.1.0, but that's major bump, so i'm documenting the BUGS for now.
2016-12-07Write new SSL_dup(3) manual from scratch. This function is listedschwarze2-1/+61
in ssl(3) and <openssl/ssl.h>, so it is clearly public.
2016-12-07New SSL_dup_CA_list(3) manual written from scratch.schwarze2-1/+53
Mentioned in ssl(3) and <openssl/ssl.h>, so it is public.
2016-12-07Add documentation for SSL_add_file_cert_subjects_to_stack(3) andschwarze1-25/+103
SSL_add_dir_cert_subjects_to_stack(3), written from scratch. Both functions are listed in ssl(3) and <openssl/ssl.h> and recommended for the use by browsers in source code comments, so they are clearly public interfaces. Mention deduplication. Purge some duplicate text and improve some wording while here. Two additional cross references instead of the useless ssl(3). Add HISTORY, AUTHORS, and BUGS. It is depressing that BUGS (purely from code inspection) became longer than the DESCRIPTION.
2016-12-07Convert ssl3_send_client_kex_dhe() to CBB.jsing1-14/+23
ok doug@
2016-12-07Ensure that we zero memory that contiansthe ASN.1 encoded session, sincejsing1-26/+29
this contains the session master key. ok deraadt@ doug@
2016-12-07Ensure that we zero memory used to hold the ASN.1 encoded session, sincejsing1-1/+4
this contains the session master key. ok deraadt@ doug@
2016-12-07Fix a typo, decrement rem, don't increment for single digit hex bytes.millert1-2/+2
From Henri Kemppainen
2016-12-06An SSL_SESSION_print(3) manual written from scratch. It's clearlyschwarze2-1/+68
a public interface since it's listed both in ssl(3) and in <openssl/ssl.h>. Nothing to pilfer from OpenSSL in this case...
2016-12-06s/SSL_CTX_need_tmp_rsa/SSL_CTX_need_tmp_RSA/schwarze1-5/+5
because that's what <openssl/ssl.h> #defines. That's likely a typo in the header file because all the other functions are called *tmp_rsa*(). But it would be a bad idea to fix such a bug in interfaces that are only provided for backward compatibility in the first place, so i'm adjusting the manual to be bug-compatible with the code, for now. But, pretty please, for the next major bump, somebody go get Bob's flensing knife and excise this part of the interface. Like, export ciphers? Really?
2016-12-06Copyright and license for the remaining manuals in this directoryschwarze6-13/+296
2016-12-06CVE-2016-6559: fix potential buffer overflow(s) in link_ntoa(3).millert1-19/+35
A specially crafted struct sockaddr_dl argument can trigger a stack overflow of a static buffer in libc. An attacker may be able to use this to write to arbitrary locations in the data segment. From FreeBSD (glebius); OK deraadt@ mestre@
2016-12-06Add Copyright and license.schwarze1-8/+52
Garbage collect empty RETURN VALUES section. Delete useless cross reference to ssl(3). Add cross reference to SSL_SESSION_new(3).
2016-12-06New manual page SSL_SESSION_new(3) written from scratch.schwarze2-1/+64
The function prototype is listed in ssl(3) and <openssl/ssl.h>, so it's clearly a public interface, but OpenSSL has no documentation about it whatsoever.
2016-12-06Copyright and licenseschwarze1-2/+50
2016-12-06Copyright and licenseschwarze1-2/+53
2016-12-06We don't support Certificate Transparency Extensions andschwarze1-8/+2
we don't define preprocessor constants for the related NIDs, so delete the subsection discussing them.
2016-12-06Delete most references to crypto(3). That page isn't useful enoughschwarze14-42/+28
to be pointed to from random individual pages.
2016-12-06make sure that all the BIO pages point back to the master page BIO_new(3)schwarze20-41/+75
2016-12-06Add Copyright and license.schwarze1-41/+107
Mention AES, Chacha20, ECDSA, OCSP, OPENSSL_config. Improve many cross references. Convert the table into some real text and polish some wording. Stop talking about SSL. Drop vague references to undocumented internals (objects, stack, txt_db). Delete verbiage that says nothing or is duplicate. Ultimately, the content of this page should be merged into OPENSSL_init_crypto(3), but we don't have that function yet, so the merge has to wait.
2016-12-06tweak previous;jmc1-6/+6
2016-12-06Convert ssl3_send_client_kex_rsa() to CBB.jsing1-14/+36
ok doug@
2016-12-06Now that ssl3_send_{client,server}_certificate() are using the commonjsing4-176/+6
handshake functions, we can remove more copied code from DTLS.