diff options
Diffstat (limited to 'src/lib/libcrypto/cversion.c')
-rw-r--r-- | src/lib/libcrypto/cversion.c | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c index ea9f25fd16..1fe92a4bfa 100644 --- a/src/lib/libcrypto/cversion.c +++ b/src/lib/libcrypto/cversion.c | |||
@@ -62,56 +62,53 @@ | |||
62 | #include "buildinf.h" | 62 | #include "buildinf.h" |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | const char *SSLeay_version(int t) | 65 | const char |
66 | { | 66 | *SSLeay_version(int t) |
67 | { | ||
67 | if (t == SSLEAY_VERSION) | 68 | if (t == SSLEAY_VERSION) |
68 | return OPENSSL_VERSION_TEXT; | 69 | return OPENSSL_VERSION_TEXT; |
69 | if (t == SSLEAY_BUILT_ON) | 70 | if (t == SSLEAY_BUILT_ON) { |
70 | { | ||
71 | #ifdef DATE | 71 | #ifdef DATE |
72 | static char buf[sizeof(DATE)+11]; | 72 | static char buf[sizeof(DATE) + 11]; |
73 | 73 | ||
74 | BIO_snprintf(buf,sizeof buf,"built on: %s",DATE); | 74 | BIO_snprintf(buf, sizeof buf, "built on: %s", DATE); |
75 | return(buf); | 75 | return (buf); |
76 | #else | 76 | #else |
77 | return("built on: date not available"); | 77 | return("built on: date not available"); |
78 | #endif | 78 | #endif |
79 | } | 79 | } |
80 | if (t == SSLEAY_CFLAGS) | 80 | if (t == SSLEAY_CFLAGS) { |
81 | { | ||
82 | #ifdef CFLAGS | 81 | #ifdef CFLAGS |
83 | static char buf[sizeof(CFLAGS)+11]; | 82 | static char buf[sizeof(CFLAGS) + 11]; |
84 | 83 | ||
85 | BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS); | 84 | BIO_snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); |
86 | return(buf); | 85 | return (buf); |
87 | #else | 86 | #else |
88 | return("compiler: information not available"); | 87 | return("compiler: information not available"); |
89 | #endif | 88 | #endif |
90 | } | 89 | } |
91 | if (t == SSLEAY_PLATFORM) | 90 | if (t == SSLEAY_PLATFORM) { |
92 | { | ||
93 | #ifdef PLATFORM | 91 | #ifdef PLATFORM |
94 | static char buf[sizeof(PLATFORM)+11]; | 92 | static char buf[sizeof(PLATFORM) + 11]; |
95 | 93 | ||
96 | BIO_snprintf(buf,sizeof buf,"platform: %s", PLATFORM); | 94 | BIO_snprintf(buf, sizeof buf, "platform: %s", PLATFORM); |
97 | return(buf); | 95 | return (buf); |
98 | #else | 96 | #else |
99 | return("platform: information not available"); | 97 | return("platform: information not available"); |
100 | #endif | 98 | #endif |
101 | } | 99 | } |
102 | if (t == SSLEAY_DIR) | 100 | if (t == SSLEAY_DIR) { |
103 | { | ||
104 | #ifdef OPENSSLDIR | 101 | #ifdef OPENSSLDIR |
105 | return "OPENSSLDIR: \"" OPENSSLDIR "\""; | 102 | return "OPENSSLDIR: \"" OPENSSLDIR "\""; |
106 | #else | 103 | #else |
107 | return "OPENSSLDIR: N/A"; | 104 | return "OPENSSLDIR: N/A"; |
108 | #endif | 105 | #endif |
109 | } | ||
110 | return("not available"); | ||
111 | } | ||
112 | |||
113 | unsigned long SSLeay(void) | ||
114 | { | ||
115 | return(SSLEAY_VERSION_NUMBER); | ||
116 | } | 106 | } |
107 | return("not available"); | ||
108 | } | ||
117 | 109 | ||
110 | unsigned long | ||
111 | SSLeay(void) | ||
112 | { | ||
113 | return (SSLEAY_VERSION_NUMBER); | ||
114 | } | ||