diff options
| author | beck <> | 1999-09-29 04:37:45 +0000 |
|---|---|---|
| committer | beck <> | 1999-09-29 04:37:45 +0000 |
| commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
| tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/cversion.c | |
| parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
| download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip | |
OpenSSL 0.9.4 merge
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/cversion.c | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c index 4e823be52f..affdfca98f 100644 --- a/src/lib/libcrypto/cversion.c +++ b/src/lib/libcrypto/cversion.c | |||
| @@ -59,40 +59,53 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | #include "cryptlib.h" | 61 | #include "cryptlib.h" |
| 62 | #include "crypto.h" | 62 | #include <openssl/crypto.h> |
| 63 | #include "date.h" | ||
| 64 | 63 | ||
| 65 | char *SSLeay_version(t) | 64 | #ifndef NO_WINDOWS_BRAINDEATH |
| 66 | int t; | 65 | #include "buildinf.h" |
| 66 | #endif | ||
| 67 | |||
| 68 | const char *SSLeay_version(int t) | ||
| 67 | { | 69 | { |
| 68 | if (t == SSLEAY_VERSION) | 70 | if (t == SSLEAY_VERSION) |
| 69 | return("SSLeay 0.9.0b 29-Jun-1998"); | 71 | return OPENSSL_VERSION_TEXT; |
| 70 | if (t == SSLEAY_BUILT_ON) | 72 | if (t == SSLEAY_BUILT_ON) |
| 71 | { | 73 | { |
| 72 | #ifdef DATE | 74 | #ifdef DATE |
| 73 | static char buf[sizeof(DATE)+10]; | 75 | static char buf[sizeof(DATE)+11]; |
| 74 | 76 | ||
| 75 | sprintf(buf,"built on %s",DATE); | 77 | sprintf(buf,"built on: %s",DATE); |
| 76 | return(buf); | 78 | return(buf); |
| 77 | #else | 79 | #else |
| 78 | return("build date not available"); | 80 | return("built on: date not available"); |
| 79 | #endif | 81 | #endif |
| 80 | } | 82 | } |
| 81 | if (t == SSLEAY_CFLAGS) | 83 | if (t == SSLEAY_CFLAGS) |
| 82 | { | 84 | { |
| 83 | #ifdef CFLAGS | 85 | #ifdef CFLAGS |
| 84 | static char buf[sizeof(CFLAGS)+10]; | 86 | static char buf[sizeof(CFLAGS)+11]; |
| 87 | |||
| 88 | sprintf(buf,"compiler: %s",CFLAGS); | ||
| 89 | return(buf); | ||
| 90 | #else | ||
| 91 | return("compiler: information not available"); | ||
| 92 | #endif | ||
| 93 | } | ||
| 94 | if (t == SSLEAY_PLATFORM) | ||
| 95 | { | ||
| 96 | #ifdef PLATFORM | ||
| 97 | static char buf[sizeof(PLATFORM)+11]; | ||
| 85 | 98 | ||
| 86 | sprintf(buf,"C flags:%s",CFLAGS); | 99 | sprintf(buf,"platform: %s", PLATFORM); |
| 87 | return(buf); | 100 | return(buf); |
| 88 | #else | 101 | #else |
| 89 | return("C flags not available"); | 102 | return("platform: information not available"); |
| 90 | #endif | 103 | #endif |
| 91 | } | 104 | } |
| 92 | return("not available"); | 105 | return("not available"); |
| 93 | } | 106 | } |
| 94 | 107 | ||
| 95 | unsigned long SSLeay() | 108 | unsigned long SSLeay(void) |
| 96 | { | 109 | { |
| 97 | return(SSLEAY_VERSION_NUMBER); | 110 | return(SSLEAY_VERSION_NUMBER); |
| 98 | } | 111 | } |
