The branch OpenSSL_1_1_0-stable has been updated via 46766d003666da5f90346da7e6d09e109355f5c6 (commit) from 3c55aec6e9f68ec45162e85434d2911fa67e8f15 (commit)
- Log ----------------------------------------------------------------- commit 46766d003666da5f90346da7e6d09e109355f5c6 Author: Richard Levitte <levi...@openssl.org> Date: Fri Dec 16 03:50:40 2016 +0100 HP-UX doesn't have hstrerror(), so make our own for that platform Reviewed-by: Rich Salz <rs...@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2092) ----------------------------------------------------------------------- Summary of changes: crypto/bio/b_addr.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index 29f92cf..0f1900d 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -18,6 +18,30 @@ #include <internal/thread_once.h> #include <ctype.h> +#ifdef _HPUX_SOURCE +static const char *ossl_hstrerror(int herr) +{ + switch (herr) { + case -1: + return strerror(errno); + case 0: + return "No error"; + case HOST_NOT_FOUND: + return "Host not found"; + case NO_DATA: /* NO_ADDRESS is a synonym */ + return "No data"; + case NO_RECOVERY: + return "Non recoverable error"; + case TRY_AGAIN: + return "Try again"; + default: + break; + } + return "unknown error"; +} +# define hstrerror(e) ossl_hstrerror(e) +#endif + CRYPTO_RWLOCK *bio_lookup_lock; static CRYPTO_ONCE bio_lookup_init = CRYPTO_ONCE_STATIC_INIT; _____ openssl-commits mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits