Give unique name to host build shared libraries

Change-Id: Ib4d2ababe8bf6876a2d41c2dcc2db881515089b9
Merge "Give unique name to host build shared libraries"
Give unique name to host build shared libraries

(cherry picked from commit 32e8f93ccd0aad87b5570b88f3ce5f1ea7530be3)

Change-Id: I63d341a0bd2ea502e617e6bb6aee4ad6fb72a06f
am 7f01ddce: Merge "Give unique name to host build shared libraries"

* commit '7f01ddce5984e5555cb3315289af0d18530d9c3b':
  Give unique name to host build shared libraries
Switch compiler to clang

Clang now is performant enough to use instead of GCC. We can later
switch on ftrapv to better deal with potential problems. Clang was
having problems with BN multiply operations, but it appears to not
affect RSA speeds anymore.

gcc:
openssl speed -elapsed rsa
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000759s 0.000073s   1317.5  13621.0
rsa 1024 bits 0.004109s 0.000234s    243.4   4276.1
rsa 2048 bits 0.027652s 0.000842s     36.2   1188.3
rsa 4096 bits 0.198824s 0.003204s      5.0    312.1

clang:
openssl speed -elapsed rsa
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000784s 0.000074s   1274.9  13522.6
rsa 1024 bits 0.004132s 0.000235s    242.0   4256.9
rsa 2048 bits 0.027680s 0.000851s     36.1   1175.5
rsa 4096 bits 0.198824s 0.003245s      5.0    308.2

Change-Id: Iadad4739cf925a552158463047bdf1e19f9d0e83
Merge "Switch compiler to clang"
am 1cd04072: Merge "Switch compiler to clang"

* commit '1cd04072fc7c86297474402859cf13c08c40d578':
  Switch compiler to clang
Remove clang as compiler for static versions

There appears to be a problem with the way openssl is built for static
libraries and clang currently. Revert that until it works.

Change-Id: I2650ecbfbfa2efd23a77a455f40dc05a27802cde
Remove clang as compiler for static versions

There appears to be a problem with the way openssl is built for static
libraries and clang currently. Revert that until it works.

(cherry picked from commit f264be4610fd389595966f888df2f7eb41122706)

Change-Id: I2650ecbfbfa2efd23a77a455f40dc05a27802cde
Merge "Remove clang as compiler for static versions"
am 4768d150: Merge "Remove clang as compiler for static versions"

* commit '4768d150edb4ad27fb32161acd071356600d8d49':
  Remove clang as compiler for static versions
am 0306b808: am 4768d150: Merge "Remove clang as compiler for static versions"

* commit '0306b8084ff855932f3bde69401bf1bbe3241b94':
  Remove clang as compiler for static versions
Don't use clang for unbundled build target

Clang is not in the NDK, so don't try to use it for unbundled builds.
When clang is in the NDK, we can revert this change.

Change-Id: I8afbdee24673c4af7021703b0cece2e2139d2d35
Merge "Don't use clang for unbundled build target"
am a417d05a: Merge "Don\'t use clang for unbundled build target"

* commit 'a417d05adc329e0cda1768aed67f207bc4168998':
  Don't use clang for unbundled build target
am d1175680: am a417d05a: Merge "Don\'t use clang for unbundled build target"

* commit 'd1175680fa9036ea776aaa4134b337e4c57c5b79':
  Don't use clang for unbundled build target
Don't use Clang if WITHOUT_CLANG is set

Change-Id: I1fc78fe80a1b54e8fc1fc10be627e6e28e09f8e8
Revert "Don't use Clang if WITHOUT_CLANG is set"

This reverts commit 6caea2d2fbc53be14f7eff513c97dd25ebd0396d.
Add TLS 1.2 digests patch

Fixes a bug with handling TLS 1.2 and digest functions for DSA and ECDSA
keys.

Patch from Adam Langley <agl@chromium.org>

Change-Id: I11b74472c0df16eca8de3aa36413686603814243
Add ALPN support patch

This change adds support for ALPN[1] in OpenSSL. ALPN is the IETF
blessed version of NPN and we'll be supporting both ALPN and NPN for
some time yet.

[1] https://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg-00

Patch from Adam Langley <agl@chromium.org>

Change-Id: I556b1ee877f398ae8b7f1d4abbaddc44611e5f51