Skip to content

Commit c8a2eae

Browse files
committed
CCBC-1596: show "unknown" if ERR_func_error_string() unavailable
Change-Id: I1afb66ffcfb1cc3ec14afde7f9d8767737e22592 Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/190117 Reviewed-by: Trond Norbye <trond.norbye@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
1 parent 0caa5ab commit c8a2eae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl/ssl_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static long decode_ssl_protocol(const char *protocol)
324324
#if (OPENSSL_VERSION_NUMBER < 0x30000000L)
325325
#define lcb_openssl_func_error_string(err) ERR_func_error_string(err)
326326
#else
327-
#define lcb_openssl_func_error_string(err) (char*)NULL
327+
#define lcb_openssl_func_error_string(err) "unknown"
328328
#endif
329329
static lcb_STATUS add_certificate_authority(const lcb_settings *settings, SSL_CTX *ctx, const char *certificate_value,
330330
int certificate_length)

0 commit comments

Comments
 (0)