summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-05-19 15:56:28 -0700
committerAdam Langley <agl@google.com>2015-05-19 15:56:28 -0700
commit12addf8c63e77091bece8ad715f30cfd957a5332 (patch)
tree0d2b57963c91e7abe6deb571d2322402df9c82c0 /src/crypto
parent71cbcbedb24dacc402647b2e8b2a52b76cf5cfc2 (diff)
downloadexternal_boringssl-12addf8c63e77091bece8ad715f30cfd957a5332.zip
external_boringssl-12addf8c63e77091bece8ad715f30cfd957a5332.tar.gz
external_boringssl-12addf8c63e77091bece8ad715f30cfd957a5332.tar.bz2
external/boringssl: fix |SSLeay|.
SSLeay is a compatibility function for OpenSSL, but I got it wrong. It doesn't return a string, it returns a number. This doesn't end up making any difference, but it fixes a warning when building OpenSSH. Bug: 21304170 Change-Id: I3e4bb0240b18647cfe2a3ce5869948a4527ff0f0
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/crypto.c b/src/crypto/crypto.c
index 64e55f4..d9bb07e 100644
--- a/src/crypto/crypto.c
+++ b/src/crypto/crypto.c
@@ -104,9 +104,9 @@ void CRYPTO_library_init(void) {
}
const char *SSLeay_version(int unused) {
- return SSLeay();
+ return "BoringSSL";
}
-const char *SSLeay(void) {
- return "BoringSSL";
+unsigned long SSLeay(void) {
+ return OPENSSL_VERSION_NUMBER;
}