VirtualBox

Changeset 73672 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 14, 2018 6:40:01 PM (6 years ago)
Author:
vboxsync
Message:

IPRT,SUP,Main: Working on new crypto key handling and rsa signing. bugref:9152 [build fix]

Location:
trunk/src/VBox/Runtime
Files:
4 edited

Legend:

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

    r73665 r73672  
    6161 */
    6262DECLHIDDEN(int) rtCrKeyToOpenSslKey(RTCRKEY hKey, bool fNeedPublic, const char *pszAlgoObjId,
    63                                     EVP_PKEY **ppEvpKey, const EVP_MD **ppEvpMdType, PRTERRINFO pErrInfo)
     63                                    void /*EVP_PKEY*/ **ppEvpKey, const void /*EVP_MD*/ **ppEvpMdType, PRTERRINFO pErrInfo)
    6464{
    6565    *ppEvpKey = NULL;
  • trunk/src/VBox/Runtime/common/crypto/pkix-sign.cpp

    r73670 r73672  
    155155    EVP_PKEY     *pEvpPrivateKey = NULL;
    156156    const EVP_MD *pEvpMdType = NULL;
    157     int rcOssl = rtCrKeyToOpenSslKey(hPrivateKey, false /*fNeedPublic*/, pszAlgObjId, &pEvpPrivateKey, &pEvpMdType, pErrInfo);
     157    int rcOssl = rtCrKeyToOpenSslKey(hPrivateKey, false /*fNeedPublic*/, pszAlgObjId,
     158                                     (void **)&pEvpPrivateKey, (const void **)&pEvpMdType, pErrInfo);
    158159    if (RT_SUCCESS(rcOssl))
    159160    {
  • trunk/src/VBox/Runtime/common/crypto/pkix-verify.cpp

    r73665 r73672  
    116116    EVP_PKEY     *pEvpPublicKey = NULL;
    117117    const EVP_MD *pEvpMdType = NULL;
    118     int rcOssl = rtCrKeyToOpenSslKey(hPublicKey, true /*fNeedPublic*/, pAlgorithm->szObjId, &pEvpPublicKey, &pEvpMdType, pErrInfo);
     118    int rcOssl = rtCrKeyToOpenSslKey(hPublicKey, true /*fNeedPublic*/, pAlgorithm->szObjId,
     119                                     (void **)&pEvpPublicKey, (const void **)&pEvpMdType, pErrInfo);
    119120    if (RT_SUCCESS(rcOssl))
    120121    {
     
    229230    EVP_PKEY     *pEvpPublicKey = NULL;
    230231    const EVP_MD *pEvpMdType = NULL;
    231     int rcOssl = rtCrKeyToOpenSslKey(hPublicKey, true /*fNeedPublic*/, pszAlgObjId, &pEvpPublicKey, &pEvpMdType, pErrInfo);
     232    int rcOssl = rtCrKeyToOpenSslKey(hPublicKey, true /*fNeedPublic*/, pszAlgObjId,
     233                                     (void **)&pEvpPublicKey, (const void **)&pEvpMdType, pErrInfo);
    232234    if (RT_SUCCESS(rcOssl))
    233235    {
  • trunk/src/VBox/Runtime/include/internal/iprt-openssl.h

    r73665 r73672  
    4040
    4141DECLHIDDEN(int)  rtCrKeyToOpenSslKey(RTCRKEY hKey, bool fNeedPublic, const char *pszAlgoObjId,
    42                                      struct evp_pkey_st **ppEvpKey, const struct evp_md_st **ppEvpMdType, PRTERRINFO pErrInfo);
     42                                     void /*EVP_PKEY*/ **ppEvpKey, const void /*EVP_MD*/ **ppEvpMdType, PRTERRINFO pErrInfo);
    4343
    4444RT_C_DECLS_END
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