import OpenSSL-1.0.0a
More manual OPENSSL_NO_EC and OPENSSL_NO_TLSEXT cleanup.
More KNF.
Move the cts128 and gcm128 tests to regress.
Some KNF and fix the vairable spelling.
copy a comment placed in other files; req from miod
Add a comment documenting where libssl depends upon the current (objectionable)
behaviour of this code, to prevent people from blindly changing it.
BUF_MEM_grow_clean() takes a size_t as the size argument. Remove false comments
mentioning it's an int, bogus (int) casts and bounds checks against INT_MAX
(BUF_MEM_grow_clean has its own integer bounds checks).

ok deraadt@
Change the actual default for returned asn1 strings to be utf8 in the code,
rather than only in the config file, to trip people up later.
Found, and fix pleaded for by <spider@skuggor.se> who apparently
spent hours chasing it down.
ok miod@
annoying whitespace
Get the public headers from the official place with <openssl/ >
from Brent Cook
Use C99 initialisers for cipher_aliases. This improves readability,
removes the need for zero values to be specified (meaning that we usually
specify two fields instead of 12), makes the field names grepable and
protects from future field reordering/removal.

ok beck@ miod@
Clean up the tls1_change_cipher_state() key length handling and use a
single variable with a descriptive name, instead of two poorly named
variables.

Largely based on Adam Langley's chromium patches.

ok miod@
EBCDIC support died a while ago, except in a comment.
Avoid the use of an uninitialised variable. In reality, this is a non-issue
since the calculated value is not actually used in the uninitialised case.
Change the code so that we only do the calculation if we actually need it.

Issue detected by clang and reported by both brad@ and Brent Cook.
Add a deprecated attribute to all CRYPTO_dbg_ functions.
ok deraadt@
Remove __bio_h__attr__ wrapper around __attribute__, since earlier statements
in this file directly use __attribute__.

ok deraadt@
fix type string conversion warning

ASN1_STRING_data returns an unsigned char *, but strlcat's second
parameter is a const char *
remove unused static datastructures

Neither of these is used anywhere within their object files.
Check output of write() to stdout, updated -quiet documentation

Check for errors on write and log errors. This is likely to cause a
SIGPIPE on failure anyway, and there is no reason to explicitly abort
since this is basically debug output.

Update builtin -quiet doc to match the manpage documentation, which
explains why this isn't using BIO like the rest of the surrounding code:

https://www.openssl.org/docs/apps/s_server.html