diff options
author | Matt Caswell <matt@openssl.org> | 2016-05-23 13:52:29 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-23 23:26:10 +0100 |
commit | 7d37818dacc87c21dfc9d2def5014657344875e3 (patch) | |
tree | 459cf7a75959c26b09b1e91be893b5f4fe27b3fe /crypto/include | |
parent | a93e0e78db78e03bdcd29acf9bbc8a812ee50cb6 (diff) |
Use strerror_r()/strerror_s() instead of strerror() where possible
The function strerror() is not thread safe. We should use strerror_r()
where possible, or strerror_s() on Windows.
RT#2267
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/cryptlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/include/internal/cryptlib.h b/crypto/include/internal/cryptlib.h index 1327dca446..f2377d1c93 100644 --- a/crypto/include/internal/cryptlib.h +++ b/crypto/include/internal/cryptlib.h @@ -67,6 +67,8 @@ void OPENSSL_showfatal(const char *fmta, ...); extern int OPENSSL_NONPIC_relocated; void crypto_cleanup_all_ex_data_int(void); +int openssl_strerror_r(int errnum, char *buf, size_t buflen); + #ifdef __cplusplus } #endif |