synchronise util/libeay.num with the 0.9.7-stable variant (guys, this
[openssl.git] / crypto / cversion.c
index 72af476fbeee07f10398f170e9bb296256c11967..8ecfba7b16bac1dac3dd368589a10fbf49b0b402 100644 (file)
@@ -60,6 +60,7 @@
 #include <string.h>
 #include "cryptlib.h"
 #include <openssl/crypto.h>
+
 #include "buildinf.h"
 
 const char *SSLeay_version(int t)
@@ -97,6 +98,14 @@ const char *SSLeay_version(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");