VirtualBox

Changeset 100445 in vbox


Ignore:
Timestamp:
Jul 8, 2023 2:58:50 PM (17 months ago)
Author:
vboxsync
Message:

IPRT,OpenSSL: Support ECDSA for verficiation purposes when IPRT links with OpenSSL. This required quite a bit of cleanups, so not entirely no-risk. [build fixes] bugref:10479 ticketref:21621

Location:
trunk/src/VBox/Runtime/common/crypto
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/key-openssl.cpp

    r100442 r100445  
    7272        || hKey->enmType == RTCRKEYTYPE_ECDSA_PRIVATE)
    7373    {
     74# if OPENSSL_VERSION_NUMBER >= 0x30000000 && !defined(LIBRESSL_VERSION_NUMBER)
    7475        void          *pvFree = NULL;
    7576        const uint8_t *pbRaw  = NULL;
     
    9091            RTMemTmpFree(pvFree);
    9192        }
     93#else
     94        /** @todo d2i_KeyParams was introduced with 3.0.0, so ECDSA stuff won't work
     95         *        with older openssl versions atm.  Fortunately we only really needs
     96         *        it on Windows atm., so no problem. */
     97        rc = RTERRINFO_LOG_SET_F(pErrInfo, VERR_NOT_SUPPORTED,
     98                                 "OpenSSL version %#x is too old for IPRTs ECDSA code", OPENSSL_VERSION_NUMBER);
     99#endif
    92100    }
    93101    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette