diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-05 00:12:56 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-05 00:12:56 +0200 |
commit | 1ce14037c0c4f7448422ba2d4c7f12ceb1289811 (patch) | |
tree | 081314bebb9e54e6b74514bd7a6dd76c66bc8396 | |
parent | 30bd59ba6ef86487c3a5e2d6d96a811622730eae (diff) |
openssl: removed error string #ifdef
ERR_error_string_n() was introduced in 0.9.6, no need to #ifdef anymore
-rw-r--r-- | lib/vtls/openssl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 0525942d8..6378e10ff 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -102,10 +102,6 @@ #undef HAVE_PKCS12_SUPPORT #endif -#if OPENSSL_VERSION_NUMBER >= 0x00906001L -#define HAVE_ERR_ERROR_STRING_N 1 -#endif - #if OPENSSL_VERSION_NUMBER >= 0x00909000L #define SSL_METHOD_QUAL const #else @@ -680,15 +676,10 @@ static int x509_name_oneline(X509_NAME *a, char *buf, size_t size) */ static char *SSL_strerror(unsigned long error, char *buf, size_t size) { -#ifdef HAVE_ERR_ERROR_STRING_N /* OpenSSL 0.9.6 and later has a function named ERR_error_string_n() that takes the size of the buffer as a third argument */ ERR_error_string_n(error, buf, size); -#else - (void) size; - ERR_error_string(error, buf); -#endif return buf; } |