summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/system.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-02-09Summarize the 4 same name functions and move it to apps.cinoguchi7-72/+26
ok tb@ jsing@
2019-02-07Implement processing of EncryptedExtensions in the TLS 1.3 client.jsing2-8/+28
ok bcook@ tb@
2019-02-05Add islower check to show_ciphers in pkey.c and rsa.c.inoguchi2-2/+10
suggested by jsing@ ok tb@
2019-02-05Convert openssl(1) pkey to the newer style of option handling.inoguchi1-96/+171
ok jsing@
2019-02-04Implement parsing and processing of TLSv1.3 ServerHello messages.jsing3-11/+187
ok tb@
2019-02-04Make it easier to build with LIBRESSL_HAS_TLS1_3 enabled.jsing1-1/+4
ok tb@
2019-02-04Document missing command line options for the rsautl command.tb2-9/+16
ok jsing, "looks good!" jmc
2019-02-03zap spaces before tabstb1-5/+5
2019-02-03Convert openssl(1) rsautl to the newer style of option handling.jsing1-121/+196
ok beck@ inoguchi@ tb@
2019-02-03Revert r1.38 as it introduces use of a stack value post function return.jsing1-50/+86
The deduplication is also not quite right - this will be revisited in due course.
2019-02-03Use malloc() and memcpy() the test X25519 x25519_peer_public value.jsing1-3/+6
Otherwise, if tlsext_keyshare_server_build() fails we call free with a pointer to static memory and bad things happen. Reported by bcook@
2019-01-31unwrap a line introduced in previous.tb1-3/+2
2019-01-30Correct handling of TLS sigalgs extension for TLSv1.0/TLSv1.1.jsing1-33/+19
When operating as a TLSv1.0 or TLSv1.1 server, we still have to parse the TLS sigalgs extension if presented by the client (which might be TLSv1.2 capable), rather than treating its presence as an error. While here, remove future version dependence issues by avoiding explicit version equality checks. Issue reported by bluhm@. ok bluhm@ tb@
2019-01-29instead of calling abort() for 3 "must not use anymore" interfaces,deraadt1-7/+4
call OPENSSL_assert() with the specific message, which due to recent changes will end up syslog :) ok jsing
2019-01-29Remove SSLv23 padding mode from rsautl's usage (left behind in a removaltb1-2/+1
from code and manual in 2017). Reported by KEINOS in github issue #101.
2019-01-28spelling;jmc1-3/+3
2019-01-28Deduplicate a bunch of replicated code in the extension handlingbeck1-86/+50
ok tb@
2019-01-28Add tls_extension_seen(), a utility to know if a particular extensionbeck2-9/+15
has been seen in the handshake so far. Use it for keyshare. ok tb@
2019-01-27zap a commented out line. 0RTT will need more thought thantb1-2/+1
just uncommenting this.
2019-01-27refactor and clean up the code generating dot output.tb1-53/+76
2019-01-26Recent discussions about abort() potentially leaving key material inderaadt1-5/+8
core files (which can depend upon various file layouts) have resonated with my hate for this function outside a purely debugging context. I also dislike how the report goes to stderr which may get lost or ignored. Increase the noise (with syslog_r) and use _exit(1) to gaurantee termination. ok jsing
2019-01-25print errors to stderrtb1-19/+21
2019-01-25sort output suffixestb1-2/+2
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.millert27-61/+61
2019-01-24Add code to visualize the state machine. Both the state machine and thetb2-5/+79
output will have to be tweaked, but this may as well happen in-tree. To try it, pkg_add graphviz and run 'make handshake.svg' in this directory. Committing early so Bob's followers can play.
2019-01-24Set pointer variables in tls13 handshake to NULL on clearbeck1-1/+5
ok jsing@ bcook@
2019-01-24set the NEGOTIATED flag in the flags argument rather thantb1-4/+4
squeezing it into the table.
2019-01-24Add server side of versions, keyshare, and client and server of cookiebeck5-28/+742
extensions for tls1.3. versions is currently defanged to ignore its result until tls13 server side wired in full, so that server side code still works today when we only support tls 1.2 ok bcook@ tb@ jsing@
2019-01-24move the extensions_seen into the handshake structbeck3-6/+12
ok jsing@
2019-01-24Remove SHA224 based sigalgs from use in TLS 1.2 as SHA224 is deprecated.beck3-37/+22
Remove GOST based sigalgs from TLS 1.2 since they don't work with TLS 1.2. ok jsing@
2019-01-23Correct ECDSA_SECP512R1 typo to ECDSA_SECP521R1beck2-6/+6
spotted by naddy@
2019-01-23make whitespace inside curlies consistent; sort function prototypes.tb1-24/+24
2019-01-23Rename NUM_HANDSHAKE to handshake_count and make it a variabletb3-13/+47
so it can be used from regress. Update regress accordingly. Make sure the print target generates the entire table as it currently is in tls13_handshake.c discussed with beck and jsing ok jsing
2019-01-23assert.h is often misused. It should not be used in a librarybeck2-8/+5
ok bcook@ jsing@
2019-01-23Modify sigalgs extension processing to accomodate TLS 1.3.beck8-40/+93
- Make a separate sigalgs list for TLS 1.3 including only modern algorithm choices which we use when the handshake will not negotiate TLS 1.2. - Modify the legacy sigalgs for TLS 1.2 to include the RSA PSS algorithms as mandated by RFC8446 when the handshake will permit negotiation of TLS 1.2 from a 1.3 handshake. ok jsing@ tb@
2019-01-23revert previous, accidentally contained another diff in additionbeck10-408/+61
to the one I intended to commit
2019-01-23Modify sigalgs extension processing for TLS 1.3.beck10-61/+408
- Make a separate sigalgs list for TLS 1.3 including only modern algorithm choices which we use when the handshake will not negotiate TLS 1.2 - Modify the legacy sigalgs for TLS 1.2 to include the RSA PSS algorithms as mandated by RFC8446 when the handshake will permit negotiation of TLS 1.2 ok jsing@ tb@
2019-01-23Sync the handshakes table with the generated table in regress.tb1-19/+19
This sorts the valid handshakes with respect to ascending flags value instead of the ad-hoc order produced by the algorithm. ok jsing
2019-01-23incorrrect spellingtb1-2/+2
2019-01-23do not print the command in the print: targettb1-2/+2
2019-01-23Add a regression test that builds up the handshake state tabletb2-1/+399
from graph information and cross-checks it against the state table in tls13_handshake.c. with help from jsing
2019-01-23Remove static from handshakes[][] so it is visible from regress/tb1-2/+2
ok bcook
2019-01-23No need to include <bsd.prog.mk> here.tb2-4/+2
ok bcook
2019-01-22sort sections, and add a missing verb to the EXAMPLES text;jmc1-24/+24
2019-01-22Wrap long lineotto1-4/+4
2019-01-22bump minors after symbol additiontb3-3/+3
2019-01-22Document SSL_get1_supported_ciphers(3) and SSL_get_client_ciphers(3).tb1-7/+61
The text comes from OpenSSL, where it was still published under a free license. from schwarze
2019-01-22Add a re-implementation of SSL_get1_supported_ciphers().tb3-2/+38
Part of OpenSSL 1.1 API (pre-licence-change). input schwarze ok jsing
2019-01-22Provide SSL_get_client_ciphers().tb3-2/+12
Part of OpenSSL 1.1 API, pre-licence change. ok jsing
2019-01-22Add missing symbols from the EC_KEY_METHOD port.tb1-0/+8
Reported by bcook and sthen