[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] libcrypto: fix compilation with LibreSSL
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: [PATCH] libcrypto: fix compilation with LibreSSL
- From: Stefan Strogin <steils@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 1 Jul 2019 13:46:37 +0300
- To: libssh@xxxxxxxxxx
- Cc: Stefan Strogin <steils@xxxxxxxxxx>
LibreSSL does not support FIPS, so do not check it. Signed-off-by: Stefan Strogin <steils@xxxxxxxxxx> --- include/libssh/libcrypto.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h index 541912b5..1a1df635 100644 --- a/include/libssh/libcrypto.h +++ b/include/libssh/libcrypto.h @@ -112,7 +112,11 @@ typedef BN_CTX* bignum_CTX; /* Returns true if the OpenSSL is operating in FIPS mode */ +#ifndef LIBRESSL_VERSION_NUMBER #define ssh_fips_mode() (FIPS_mode() != 0) +#else +#define ssh_fips_mode() false +#endif #endif /* HAVE_LIBCRYPTO */ -- 2.22.0
Re: [PATCH] libcrypto: fix compilation with LibreSSL | Stefan Strogin <steils@xxxxxxxxxx> |
Re: [PATCH] libcrypto: fix compilation with LibreSSL | Jakub Jelen <jjelen@xxxxxxxxxx> |