Update OpenSSL error codes for BoringSSL.

The OpenSSL error code system really doesn't work very well. The values
export far too much of the internals (including internal function
names!) and so are quite unstable. Really they're only suitable for
printing out.

However, people do need to programatically handle errors in some cases
and since the error queue is all there is, that's what one has to use.

This change updates the error handling in the light of BoringSSL.

Change-Id: I3cc99729e755a7e8e28d399631d7c4b2408c877a
1 file changed