Print

Print


We need `-DWITH_OPENSSL3=TRUE` for Ubuntu 22.04, but enabling it causes
```
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:57:8: error: unknown type name 'EVP_MD_CTX'
static EVP_MD_CTX* EVP_MD_CTX_new() {
       ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:58:3: error: unknown type name 'EVP_MD_CTX'
  EVP_MD_CTX *ctx = (EVP_MD_CTX *)OPENSSL_malloc(sizeof(EVP_MD_CTX));
  ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:58:22: error: use of undeclared identifier 'EVP_MD_CTX'
  EVP_MD_CTX *ctx = (EVP_MD_CTX *)OPENSSL_malloc(sizeof(EVP_MD_CTX));
                     ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:58:34: error: expected expression
  EVP_MD_CTX *ctx = (EVP_MD_CTX *)OPENSSL_malloc(sizeof(EVP_MD_CTX));
                                 ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:63:29: error: unknown type name 'EVP_MD_CTX'
static void EVP_MD_CTX_free(EVP_MD_CTX *ctx) {
                            ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:166:4: error: unknown type name 'EVP_MD_CTX'
   EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
   ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:167:10: error: unknown type name 'EVP_MD'
   const EVP_MD *md = EVP_get_digestbyname("sha256");
         ^
builtins/xrootd/XROOTD-prefix/src/XROOTD/src/XrdSec/openssl3/XrdSecProtect.cc:167:23: error: use of undeclared identifier 'EVP_get
_digestbyname'
   const EVP_MD *md = EVP_get_digestbyname("sha256");
                      ^
```
on macOS12. So it seems to "have an effect" also with "openssl" 2-compatible libraries. What do you recommend us to do? Pass `-DWITH_OPENSSL3=TRUE` only if openssl v3 is detected?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1666#issuecomment-1088908274
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1