Changeset 73672 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Aug 14, 2018 6:40:01 PM (6 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/key-openssl.cpp
r73665 r73672 61 61 */ 62 62 DECLHIDDEN(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) 64 64 { 65 65 *ppEvpKey = NULL; -
trunk/src/VBox/Runtime/common/crypto/pkix-sign.cpp
r73670 r73672 155 155 EVP_PKEY *pEvpPrivateKey = NULL; 156 156 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); 158 159 if (RT_SUCCESS(rcOssl)) 159 160 { -
trunk/src/VBox/Runtime/common/crypto/pkix-verify.cpp
r73665 r73672 116 116 EVP_PKEY *pEvpPublicKey = NULL; 117 117 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); 119 120 if (RT_SUCCESS(rcOssl)) 120 121 { … … 229 230 EVP_PKEY *pEvpPublicKey = NULL; 230 231 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); 232 234 if (RT_SUCCESS(rcOssl)) 233 235 { -
trunk/src/VBox/Runtime/include/internal/iprt-openssl.h
r73665 r73672 40 40 41 41 DECLHIDDEN(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); 43 43 44 44 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.