Openlitespeed does not build on the new version of Alpine Linux 3.15.0

#1
The new version of alpine linux uses openssl 1.1.1
Because of this, an error occurs during assembly.

Code:
sslocspstapling.cpp:733:18: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  733 |     if (m_pCertId->issuerKeyHash && m_pCertId->issuerKeyHash->length)
      |                  ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:733:46: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  733 |     if (m_pCertId->issuerKeyHash && m_pCertId->issuerKeyHash->length)
      |                                              ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:734:35: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  734 |         MD5_Update(&ctx, m_pCertId->issuerKeyHash->data,
      |                                   ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:735:28: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  735 |                   m_pCertId->issuerKeyHash->length);
      |                            ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:736:18: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  736 |     if (m_pCertId->issuerNameHash && m_pCertId->issuerNameHash->length)
      |                  ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:736:47: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  736 |     if (m_pCertId->issuerNameHash && m_pCertId->issuerNameHash->length)
      |                                               ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:737:35: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  737 |         MD5_Update(&ctx, m_pCertId->issuerNameHash->data,
      |                                   ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:738:28: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  738 |                   m_pCertId->issuerNameHash->length);
      |                            ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:739:18: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  739 |     if (m_pCertId->serialNumber && m_pCertId->serialNumber->length)
      |                  ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:739:45: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  739 |     if (m_pCertId->serialNumber && m_pCertId->serialNumber->length)
      |                                             ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:740:35: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  740 |         MD5_Update(&ctx, m_pCertId->serialNumber->data,
      |                                   ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
      |                ^~~~~~~~~~~~~~~
sslocspstapling.cpp:741:28: error: invalid use of incomplete type 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
  741 |                   m_pCertId->serialNumber->length);
      |                            ^~
In file included from sslocspstapling.cpp:19:
../../src/sslpp/sslocspstapling.h:31:16: note: forward declaration of 'OCSP_CERTID' {aka 'struct ocsp_cert_id_st'}
   31 | typedef struct ocsp_cert_id_st OCSP_CERTID;
You can't downgrade the opensl version. It is part of the system applications.
What steps can be taken to solve the problem?
Is it possible to completely disable sslscan to avoid problems with the new openssl?
 
Top