Skip to content

Commit 4a8f2a7

Browse files
committed
Fix: Handle build errors with .deb package + date build time
1 parent 71afa73 commit 4a8f2a7

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
@@ -10754,7 +10754,11 @@ const char* wolfSSL_OpenSSL_version(int type)
1075410754
case OPENSSL_CFLAGS:
1075510755
return "compiler: information not available";
1075610756
case OPENSSL_BUILT_ON:
10757+
#ifdef HAVE_REPRODUCIBLE_BUILD
10758+
return "built on: date not available";
10759+
#else
1075710760
return "built on: " __DATE__ " " __TIME__;
10761+
#endif
1075810762
case OPENSSL_PLATFORM:
1075910763
return "platform: information not available";
1076010764
case OPENSSL_DIR:

tests/api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18656,7 +18656,8 @@ defined(OPENSSL_EXTRA) && defined(WOLFSSL_DH_EXTRA)
1865618656
static int test_wolfSSL_i2d_PUBKEY_bio(void)
1865718657
{
1865818658
EXPECT_DECLS;
18659-
#if defined(OPENSSL_EXTRA) && !defined(NO_BIO)
18659+
#if defined(OPENSSL_EXTRA) && !defined(NO_BIO) && \
18660+
!defined(NO_ASN) && !defined(NO_PWDBASED)
1866018661
BIO* bio = NULL;
1866118662
EVP_PKEY* pkey = NULL;
1866218663
EVP_PKEY* pkey2 = NULL;

0 commit comments

Comments
 (0)