summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorGireesh Punathil <gpunathi@in.ibm.com>2018-09-24 04:58:29 -0400
committerAnna Henningsen <anna@addaleax.net>2018-10-11 21:25:52 -0700
commitd3d6cd3ecad19602a894bbe046253ae924d278d4 (patch)
treea72c64e3fce50da1229a5ab1b30b8390d89506d1 /src/node_crypto.h
parent82ea7058b6c25ee2c1467665c1b53b2b2b9ca139 (diff)
downloadandroid-node-v8-d3d6cd3ecad19602a894bbe046253ae924d278d4.tar.gz
android-node-v8-d3d6cd3ecad19602a894bbe046253ae924d278d4.tar.bz2
android-node-v8-d3d6cd3ecad19602a894bbe046253ae924d278d4.zip
src: improve SSL version extraction logic
The openssl version as defined in ssl libraries is complex. The current logic to extract the major.minor.patch format uses C semantics to loop through the text and search for specific patterns. Use C++ string to tidy it up. PR-URL: https://github.com/nodejs/node/pull/23050 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 2ca333f3c2..f4afd2fdaf 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -93,6 +93,7 @@ extern int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx);
extern void UseExtraCaCerts(const std::string& file);
void InitCryptoOnce();
+std::string GetOpenSSLVersion();
class SecureContext : public BaseObject {
public: