aboutsummaryrefslogtreecommitdiff
path: root/crypto/cversion.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-10-27 15:11:48 -0400
committerRich Salz <rsalz@openssl.org>2015-10-30 17:21:42 -0400
commitb0700d2c8de79252ba605748a075cf2e5d670da1 (patch)
tree80d8b70286dfab4ef907cf1ac388f691821b0f2e /crypto/cversion.c
parent87d9cafa332bd006086b56dc645c03fe7cfed654 (diff)
downloadopenssl-b0700d2c8de79252ba605748a075cf2e5d670da1.zip
openssl-b0700d2c8de79252ba605748a075cf2e5d670da1.tar.gz
openssl-b0700d2c8de79252ba605748a075cf2e5d670da1.tar.bz2
Replace "SSLeay" in API with OpenSSL
All instances of SSLeay (any combination of case) were replaced with the case-equivalent OpenSSL. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/cversion.c')
-rw-r--r--crypto/cversion.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto/cversion.c b/crypto/cversion.c
index 6111b65..aa479a9 100644
--- a/crypto/cversion.c
+++ b/crypto/cversion.c
@@ -62,11 +62,16 @@
# include "buildinf.h"
#endif
-const char *SSLeay_version(int t)
+unsigned long OpenSSL_version_num()
{
- if (t == SSLEAY_VERSION)
+ return OPENSSL_VERSION_NUMBER;
+}
+
+const char *OpenSSL_version(int t)
+{
+ if (t == OPENSSL_VERSION)
return OPENSSL_VERSION_TEXT;
- if (t == SSLEAY_BUILT_ON) {
+ if (t == OPENSSL_BUILT_ON) {
#ifdef DATE
# ifdef OPENSSL_USE_BUILD_DATE
return (DATE);
@@ -77,21 +82,21 @@ const char *SSLeay_version(int t)
return ("built on: date not available");
#endif
}
- if (t == SSLEAY_CFLAGS) {
+ if (t == OPENSSL_CFLAGS) {
#ifdef CFLAGS
return (CFLAGS);
#else
return ("compiler: information not available");
#endif
}
- if (t == SSLEAY_PLATFORM) {
+ if (t == OPENSSL_PLATFORM) {
#ifdef PLATFORM
return (PLATFORM);
#else
return ("platform: information not available");
#endif
}
- if (t == SSLEAY_DIR) {
+ if (t == OPENSSL_DIR) {
#ifdef OPENSSLDIR
return "OPENSSLDIR: \"" OPENSSLDIR "\"";
#else
@@ -100,8 +105,3 @@ const char *SSLeay_version(int t)
}
return ("not available");
}
-
-unsigned long SSLeay(void)
-{
- return (SSLEAY_VERSION_NUMBER);
-}