diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-06-29 07:35:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-06-29 07:35:02 +0000 |
commit | a3949c77864339d90681b76ea8efac5eb3ee012b (patch) | |
tree | 833dc780bfd9a861b28f93c0662c311335ca5cf2 /lib | |
parent | 232060626226706013ba7da5a92748612cc02dbf (diff) |
with a very recent yassl, we now can display 'yassl' when the OpenSSL API is
in fact provided by yassl instead
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 37ef58aa6..d0dc7ddfa 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1788,6 +1788,12 @@ ssize_t Curl_ossl_recv(struct connectdata *conn, /* connection data */ size_t Curl_ossl_version(char *buffer, size_t size) { +#ifdef YASSL_VERSION + /* yassl provides an OpenSSL API compatiblity layer so it looks identical + to OpenSSL in all other aspects */ + return snprintf(buffer, size, " yassl/%s", YASSL_VERSION); +#else /* YASSL_VERSION */ + #if (SSLEAY_VERSION_NUMBER >= 0x905000) { char sub[2]; @@ -1838,5 +1844,7 @@ size_t Curl_ossl_version(char *buffer, size_t size) } #endif /* (SSLEAY_VERSION_NUMBER >= 0x900000) */ #endif /* SSLEAY_VERSION_NUMBER is less than 0.9.5 */ + +#endif /* YASSL_VERSION */ } #endif /* USE_SSLEAY */ |