X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fcversion.c;h=8ecfba7b16bac1dac3dd368589a10fbf49b0b402;hb=7e6617611f833385257dcfa11dc5e4d1aedf1591;hp=d6e452a7de7bc4d294eb9f684c227269102e8569;hpb=d10f052be50d9115b574d1848e600fb93adade25;p=oweals%2Fopenssl.git diff --git a/crypto/cversion.c b/crypto/cversion.c index d6e452a7de..8ecfba7b16 100644 --- a/crypto/cversion.c +++ b/crypto/cversion.c @@ -59,21 +59,21 @@ #include #include #include "cryptlib.h" -#include "crypto.h" -#include "date.h" +#include -char *SSLeay_version(t) -int t; +#include "buildinf.h" + +const char *SSLeay_version(int t) { if (t == SSLEAY_VERSION) - return("OpenSSL 0.9.2 31-Dec-1998"); + return OPENSSL_VERSION_TEXT; if (t == SSLEAY_BUILT_ON) { #ifdef DATE static char buf[sizeof(DATE)+11]; sprintf(buf,"built on: %s",DATE); - return(buf); + return(buf); #else return("built on: date not available"); #endif @@ -98,12 +98,20 @@ int t; return(buf); #else return("platform: information not available"); +#endif + } + if (t == SSLEAY_DIR) + { +#ifdef OPENSSLDIR + return "OPENSSLDIR: \"" OPENSSLDIR "\""; +#else + return "OPENSSLDIR: N/A"; #endif } return("not available"); } -unsigned long SSLeay() +unsigned long SSLeay(void) { return(SSLEAY_VERSION_NUMBER); }