summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strncpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-09-11Bring back the expansion-into-.byte-sequences routines removed in r1.9, butmiod2-24/+134
only define them if not building for the "openbsd" flavour. This way, non-obfuscated output can still be generated for analysis, by using the "openbsd" flavour (which OpenBSD HEAD will do), and obfuscated output, compatible with older as(1), will be generated for other platforms. The portable version of LibreSSL can then use "openbsd-portable" as the flavour for OpenBSD/amd64 so that generated files can be compiled with OpenBSD 5.7 and other older versions stuck with as(1) 2.15.
2015-09-11Put the *method* data structures and functions in the same place.jsing4-155/+122
We can also now nuke ssl23_get_method() since it is the same as tls1_get_method(). And the empty file can bite the dust. ok bcook@ miod@
2015-09-11Pass "openbsd" instead of "openbsd-elf" as the "flavour" to the perl assemblermiod2-4/+4
machinery. OpenBSD has never been not ELF on amd64, and changing this will actually make -portable life slightly easier in the near future.
2015-09-11Put the *server_method* data structures and functions in the same place.jsing4-148/+122
We can also now nuke ssl23_get_server_method() since it is the same as tls1_get_server_method(). ok miod@
2015-09-11"Shutdown" should be "Shut down" in the usage for s_time's -no_shutdownlteo1-2/+2
flag. Pointed out by jmc@'s commit to the openssl(1) man page.
2015-09-11Put the *client_method* data structures and functions in the same place.jsing4-148/+122
We can also now nuke ssl23_get_client_method() since it is the same as tls1_get_client_method(). ok bcook@ miod@
2015-09-11Remove engine command and parameters from openssl(1).bcook40-1726/+184
We do not have any builtin or dynamic engines, meaning openssl(1) has no way to use the engine command or parameters at all. ok jsing@
2015-09-11more for NAME;jmc1-1/+4
2015-09-11more cleanup;jmc1-16/+15
2015-09-11update NAME; various cleanupjmc1-20/+20
2015-09-11document tls_get_peer_subject, tls_get_peer_issuer, and tls_get_peer_hashbeck2-3/+58
ok jsing@
2015-09-11!= -> == that I broke while bikesheddingbeck1-2/+2
2015-09-11Do not match a wildcard against a name with no host part.beck1-1/+4
ok jsing@
2015-09-11regress test that we do not allow a wildcard match for ".openbsd.org"beck1-1/+6
against a wildcard of "*.openbsd.org"
2015-09-11fix verify to allow for servername->namebeck1-25/+25
ok jsing@
2015-09-11add tls_peer functions for checking names and issuers of peer certificates.beck7-13/+95
ok jsing@
2015-09-11Fixup inter-bank movq/movd operations, emit bytes for pclmulqdq again.bcook6-26/+54
Fixes builds gcc + Apple's assembler, working on reenabling builds with older OpenBSD releases. based on OpenSSL commit: https://git.openssl.org/?p=openssl.git;a=commitdiff;h=902b30df193afc3417a96ba72a81ed390bd50de3 ok miod@
2015-09-11unify files furtherderaadt20-122/+122
2015-09-11Provide tls_peer_cert_hash() which returns a hash of the raw certificatejsing3-2/+92
that was presented by the peer. The hash used is currently SHA256, however since we prefix the result with the hash name, we can change this in the future as the need arises. The same output can be generated by using: h=$(openssl x509 -outform der -in mycert.crt | sha256) printf "SHA256:${h}\n" ok beck@
2015-09-11_getnetbyaddr and _getnetbyname appear to be historical accidents inderaadt3-103/+2
our tree. ok guenther miod
2015-09-11remove stupid castsderaadt1-4/+4
2015-09-11Store a reference to the peer certificate (if any) upon completion of thejsing2-2/+8
handshake. Free the reference when we reset the TLS context. ok beck@
2015-09-11Wrap blowfish, sha*, md5, and rmd160 so that internal calls go directguenther2-2/+24
ok deraadt@
2015-09-11specify what is permitted as an argument to tls_config_set_ciphers()beck1-1/+11
2015-09-11actually set return value to 0 on success.beck1-1/+2
ok jsing@ who wears the cone of shame.
2015-09-11- add some missing NAME entriesjmc1-6/+8
- zap trailing whitespace - avoid "can not"
2015-09-11sort MLINKS into the same order as the man page;jmc1-4/+4
2015-09-11shutdown (n.) -> shut down (v.);jmc1-2/+2
2015-09-11Change the default behavior of the s_time command so that it willlteo1-2/+7
perform a proper shutdown by sending a "close notify" alert to the server. This allows s_time to benchmark a full TLS connection more accurately. Introduce a new flag called -no_shutdown to make s_time adopt the previous behavior (i.e. shut down the connection without notifying the server) so that comparisons can still be made with OpenSSL's version. The idea of using a flag (which replaces a #define) was suggested by bcook@. Thanks to millert@ and miod@ as well for their feedback on an earlier diff which resulted in this change. ok bcook@ beck@
2015-09-11*** empty log message ***lteo1-19/+24
2015-09-10Nuke references to DTLS1_BAD_VER and unbreak the tree.jsing1-5/+2
2015-09-10Add support for building arc4random with MSVC.bcook1-7/+8
By default, MSVC's stdlib.h defines min(), so we need to spell out something less common to avoid picking it up. ok deraadt@ beck@ miod@
2015-09-10Call tls_set_errorx() instead of tls_set_error() injsing1-5/+5
tls_configure_ssl_verify(). Also tweak an error message and unwrap a line.
2015-09-10Pull in namespace.h when building all .c files using gcc's -include option,guenther2-3/+18
so that we can provide asm labels for the memcpy/memset/__stack_smash_handler calls that it generates ab initio. Eliminate direct #includes of it. Make sure it's a dependency of all objects (unnecessary for asm, but close enough). ok deraadt@
2015-09-10When loading a DSA key from an raw (without DH parameters) ASN.1 serialization,miod2-4/+96
perform some consistency checks on its `p' and `q' values, and return an error if the checks failed. Thanks for Georgi Guninski (guninski at guninski dot com) for mentioning the possibility of a weak (non prime) q value and providing a test case. See https://cpunks.org/pipermail/cypherpunks/2015-September/009007.html for a longer discussion. ok bcook@ beck@
2015-09-10delete empty SYNOPSIS sectionschwarze2-6/+4
2015-09-10Remove support for DTLS_BAD_VER. We do not support non-standard andjsing20-98/+46
incomplete implementations just so that we can interoperate with products from vendors who have not bothered to fix things in the last ~10 years. ok bcook@ miod@
2015-09-10improve examples,deraadt1-8/+11
1. hoist pollfd fields which don't change upwards 2. show ret as ssize_t, it MUST BE, or there will be lots of crying 3. on first pass, must check for either POLLIN|POLLOUT ok millert beck
2015-09-10Remove call to CRYPTO_malloc_init(), which does nothing.jsing1-2/+1
2015-09-10Put OPENSSL_cleanse under #ifndef LIBRESSL_INTERNAL.jsing2-2/+8
2015-09-10CRYPTO_set_mem_debug_functions() and CRYPTO_set_mem_functions() are alreadyjsing2-36/+6
noops, so neuter the CRYPTO_malloc_init and CRYPTO_malloc_debug_init macros. With input from miod@ ok beck@ bcook@ miod@
2015-09-10Correct spelling of OPENSSL_cleanse.jsing6-17/+17
2015-09-10Correct spelling of OPENSSL_cleanse.jsing139-399/+423
ok miod@
2015-09-10document client side certificate verification functionality.beck2-3/+19
ok jsing@
2015-09-10reduce .Nd to one line and kill .Tn while hereschwarze5-25/+15
2015-09-10Remove pointless comments.jsing6-12/+12
ok "captain obvious"
2015-09-10document changed tls_read and tls_write semantics.beck1-15/+58
document functions that clear errno. change examples to provide demonstration of both the blocking and non-blocking cases. ok jsing@, bluhm@
2015-09-10Replace remaining M_ASN1_STRING_* macros with calls to ASN1_STRING_*.jsing6-36/+36
This is not the same as the macro expansion, however the ASN1_STRING_* functions do match the macro expansions. ok doug@ miod@
2015-09-10mlink tls_handshake;jmc1-1/+2
2015-09-10tweak previous;jmc1-3/+3