Skip to content

Commit 12e2b22

Browse files
committed
Fix: Handle build errors with .deb package + date build time
1 parent 8b2ed1d commit 12e2b22

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10758,7 +10758,11 @@ const char* wolfSSL_OpenSSL_version(int type)
1075810758
case OPENSSL_CFLAGS:
1075910759
return "compiler: information not available";
1076010760
case OPENSSL_BUILT_ON:
10761+
#ifdef HAVE_REPRODUCIBLE_BUILD
10762+
return "built on: date not available";
10763+
#else
1076110764
return "built on: " __DATE__ " " __TIME__;
10765+
#endif
1076210766
case OPENSSL_PLATFORM:
1076310767
return "platform: information not available";
1076410768
case OPENSSL_DIR:

tests/api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18831,7 +18831,8 @@ defined(OPENSSL_EXTRA) && defined(WOLFSSL_DH_EXTRA)
1883118831
static int test_wolfSSL_i2d_PUBKEY_bio(void)
1883218832
{
1883318833
EXPECT_DECLS;
18834-
#if defined(OPENSSL_EXTRA) && !defined(NO_BIO)
18834+
#if defined(OPENSSL_EXTRA) && !defined(NO_BIO) && \
18835+
!defined(NO_ASN) && !defined(NO_PWDBASED)
1883518836
BIO* bio = NULL;
1883618837
EVP_PKEY* pkey = NULL;
1883718838
EVP_PKEY* pkey2 = NULL;

0 commit comments

Comments
 (0)