Changeset 74295 in vbox for trunk/include/iprt
- Timestamp:
- Sep 16, 2018 3:36:08 PM (6 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asn1.h
r73662 r74295 1022 1022 RTDECL(int) RTAsn1Time_CompareWithTimeSpec(PCRTASN1TIME pLeft, PCRTTIMESPEC pTsRight); 1023 1023 1024 RTDECL(int) RTAsn1Time_InitEx(PRTASN1TIME pThis, uint32_t uTag, PCRTASN1ALLOCATORVTABLE pAllocator); 1025 1024 1026 /** @name Predicate macros for determing the exact type of RTASN1TIME. 1025 1027 * @{ */ … … 1151 1153 const char *pszErrorTag); 1152 1154 RTDECL(uint64_t) RTAsn1BitString_GetAsUInt64(PCRTASN1BITSTRING pThis); 1155 RTDECL(int) RTAsn1BitString_RefreshContent(PRTASN1BITSTRING pThis, uint32_t fFlags, 1156 PCRTASN1ALLOCATORVTABLE pAllocator, PRTERRINFO pErrInfo); 1157 RTDECL(bool) RTAsn1BitString_AreContentBitsValid(PCRTASN1BITSTRING pThis, uint32_t fFlags); 1153 1158 1154 1159 RTASN1_IMPL_GEN_SEQ_OF_TYPEDEFS_AND_PROTOS(RTASN1SEQOFBITSTRINGS, RTASN1BITSTRING, RTDECL, RTAsn1SeqOfBitStrings); … … 1182 1187 RTASN1TYPE_STANDARD_PROTOTYPES(RTASN1OCTETSTRING, RTDECL, RTAsn1OctetString, Asn1Core); 1183 1188 1184 RTDECL(int) RTAsn1OctetStringCompare(PCRTASN1OCTETSTRING pLeft, PCRTASN1OCTETSTRING pRight); 1189 RTDECL(bool) RTAsn1OctetString_AreContentBytesValid(PCRTASN1OCTETSTRING pThis, uint32_t fFlags); 1190 RTDECL(int) RTAsn1OctetString_RefreshContent(PRTASN1OCTETSTRING pThis, uint32_t fFlags, 1191 PCRTASN1ALLOCATORVTABLE pAllocator, PRTERRINFO pErrInfo); 1185 1192 1186 1193 RTASN1_IMPL_GEN_SEQ_OF_TYPEDEFS_AND_PROTOS(RTASN1SEQOFOCTETSTRINGS, RTASN1OCTETSTRING, RTDECL, RTAsn1SeqOfOctetStrings); … … 1257 1264 */ 1258 1265 RTDECL(int) RTAsn1String_CompareEx(PCRTASN1STRING pLeft, PCRTASN1STRING pRight, bool fTypeToo); 1266 RTDECL(int) RTAsn1String_CompareValues(PCRTASN1STRING pLeft, PCRTASN1STRING pRight); 1259 1267 1260 1268 /** … … 1692 1700 const char *pszErrorTag); 1693 1701 1702 RTDECL(int) RTAsn1CursorInitSub(PRTASN1CURSOR pParent, uint32_t cb, PRTASN1CURSOR pChild, const char *pszErrorTag); 1694 1703 1695 1704 /** -
trunk/include/iprt/crypto/key.h
r73749 r74295 60 60 61 61 62 RTDECL(int) RTCrKeyCreateFromSubjectPublicKeyInfo(PRTCRKEY hKey, struct RTCRX509SUBJECTPUBLICKEYINFO const *pSrc,62 RTDECL(int) RTCrKeyCreateFromSubjectPublicKeyInfo(PRTCRKEY phKey, struct RTCRX509SUBJECTPUBLICKEYINFO const *pSrc, 63 63 PRTERRINFO pErrInfo, const char *pszErrorTag); 64 RTDECL(int) RTCrKeyCreateFromPublicAlgorithmAndBits(PRTCRKEY hKey, PCRTASN1OBJID pAlgorithm,64 RTDECL(int) RTCrKeyCreateFromPublicAlgorithmAndBits(PRTCRKEY phKey, PCRTASN1OBJID pAlgorithm, 65 65 PCRTASN1BITSTRING pPublicKey, 66 66 PRTERRINFO pErrInfo, const char *pszErrorTag); 67 RTDECL(int) RTCrKeyCreateFromPemSection(PRTCRKEY hKey, uint32_t fFlags, struct RTCRPEMSECTION const *pSection,67 RTDECL(int) RTCrKeyCreateFromPemSection(PRTCRKEY phKey, uint32_t fFlags, struct RTCRPEMSECTION const *pSection, 68 68 const char *pszPassword, PRTERRINFO pErrInfo, const char *pszErrorTag); 69 RTDECL(int) RTCrKeyCreateFromBuffer(PRTCRKEY hKey, uint32_t fFlags, void const *pvSrc, size_t cbSrc,69 RTDECL(int) RTCrKeyCreateFromBuffer(PRTCRKEY phKey, uint32_t fFlags, void const *pvSrc, size_t cbSrc, 70 70 const char *pszPassword, PRTERRINFO pErrInfo, const char *pszErrorTag); 71 RTDECL(int) RTCrKeyCreateFromFile(PRTCRKEY hKey, uint32_t fFlags, const char *pszFilename,71 RTDECL(int) RTCrKeyCreateFromFile(PRTCRKEY phKey, uint32_t fFlags, const char *pszFilename, 72 72 const char *pszPassword, PRTERRINFO pErrInfo); 73 73 /** @todo add support for decrypting private keys. */ … … 81 81 /** @} */ 82 82 83 RTDECL(int) RTCrKeyCreateNewRsa(PRTCRKEY phKey, uint32_t cBits, uint32_t uPubExp, uint32_t fFlags); 84 85 83 86 RTDECL(uint32_t) RTCrKeyRetain(RTCRKEY hKey); 84 87 RTDECL(uint32_t) RTCrKeyRelease(RTCRKEY hKey); … … 87 90 RTDECL(bool) RTCrKeyHasPublicPart(RTCRKEY hKey); 88 91 RTDECL(uint32_t) RTCrKeyGetBitCount(RTCRKEY hKey); 89 92 RTDECL(int) RTCrKeyQueryRsaModulus(RTCRKEY hKey, PRTBIGNUM pModulus); 93 RTDECL(int) RTCrKeyQueryRsaPrivateExponent(RTCRKEY hKey, PRTBIGNUM pPrivateExponent); 90 94 91 95 /** Public key markers. */ -
trunk/include/iprt/err.h
r74179 r74295 2786 2786 /** The key was decrypted. */ 2787 2787 #define VINF_CR_KEY_WAS_DECRYPTED (23814) 2788 /** Failed to generate RSA key. */ 2789 #define VERR_CR_KEY_GEN_FAILED_RSA (-23815) 2788 2790 /** @} */ 2789 2791 -
trunk/include/iprt/mangling.h
r74148 r74295 2768 2768 # define RTAsn1CursorInitArrayAllocation RT_MANGLER(RTAsn1CursorInitArrayAllocation) 2769 2769 # define RTAsn1CursorInitPrimary RT_MANGLER(RTAsn1CursorInitPrimary) 2770 # define RTAsn1CursorInitSub RT_MANGLER(RTAsn1CursorInitSub) 2770 2771 # define RTAsn1CursorInitSubFromCore RT_MANGLER(RTAsn1CursorInitSubFromCore) 2771 2772 # define RTAsn1CursorIsNextEx RT_MANGLER(RTAsn1CursorIsNextEx) … … 2790 2791 # define RTAsn1BitString_GetAsUInt64 RT_MANGLER(RTAsn1BitString_GetAsUInt64) 2791 2792 # define RTAsn1BitString_Init RT_MANGLER(RTAsn1BitString_Init) 2793 # define RTAsn1BitString_AreContentBitsValid RT_MANGLER(RTAsn1BitString_AreContentBitsValid) 2794 # define RTAsn1BitString_RefreshContent RT_MANGLER(RTAsn1BitString_RefreshContent) 2792 2795 # define RTAsn1SeqOfBitStrings_CheckSanity RT_MANGLER(RTAsn1SeqOfBitStrings_CheckSanity) 2793 2796 # define RTAsn1SeqOfBitStrings_Clone RT_MANGLER(RTAsn1SeqOfBitStrings_Clone) … … 2948 2951 # define RTAsn1OctetString_Enum RT_MANGLER(RTAsn1OctetString_Enum) 2949 2952 # define RTAsn1OctetString_Init RT_MANGLER(RTAsn1OctetString_Init) 2953 # define RTAsn1OctetString_AreContentBytesValid RT_MANGLER(RTAsn1OctetString_AreContentBytesValid) 2954 # define RTAsn1OctetString_RefreshContent RT_MANGLER(RTAsn1OctetString_RefreshContent) 2950 2955 # define RTAsn1SeqOfOctetStrings_CheckSanity RT_MANGLER(RTAsn1SeqOfOctetStrings_CheckSanity) 2951 2956 # define RTAsn1SeqOfOctetStrings_Clone RT_MANGLER(RTAsn1SeqOfOctetStrings_Clone) … … 3015 3020 # define RTAsn1String_Compare RT_MANGLER(RTAsn1String_Compare) 3016 3021 # define RTAsn1String_CompareEx RT_MANGLER(RTAsn1String_CompareEx) 3022 # define RTAsn1String_CompareValues RT_MANGLER(RTAsn1String_CompareValues) 3017 3023 # define RTAsn1String_CompareWithString RT_MANGLER(RTAsn1String_CompareWithString) 3018 3024 # define RTAsn1String_Delete RT_MANGLER(RTAsn1String_Delete) … … 3086 3092 # define RTAsn1Time_Enum RT_MANGLER(RTAsn1Time_Enum) 3087 3093 # define RTAsn1Time_Init RT_MANGLER(RTAsn1Time_Init) 3094 # define RTAsn1Time_InitEx RT_MANGLER(RTAsn1Time_InitEx) 3088 3095 # define RTAsn1UtcTime_CheckSanity RT_MANGLER(RTAsn1UtcTime_CheckSanity) 3089 3096 # define RTAsn1UtcTime_Clone RT_MANGLER(RTAsn1UtcTime_Clone) … … 3139 3146 # define RTCrKeyRelease RT_MANGLER(RTCrKeyRelease) 3140 3147 # define RTCrKeyRetain RT_MANGLER(RTCrKeyRetain) 3148 # define RTCrKeyQueryRsaModulus RT_MANGLER(RTCrKeyQueryRsaModulus) 3149 # define RTCrKeyQueryRsaPrivateExponent RT_MANGLER(RTCrKeyQueryRsaPrivateExponent) 3150 # define RTCrRc4 RT_MANGLER(RTCrRc4) 3151 # define RTCrRc4SetKey RT_MANGLER(RTCrRc4SetKey) 3141 3152 # define RTCrRsaDigestInfo_DecodeAsn1 RT_MANGLER(RTCrRsaDigestInfo_DecodeAsn1) 3142 3153 # define RTCrRsaOtherPrimeInfo_DecodeAsn1 RT_MANGLER(RTCrRsaOtherPrimeInfo_DecodeAsn1) … … 3351 3362 # define RTCrSpcSerializedPageHashes_CheckSanity RT_MANGLER(RTCrSpcSerializedPageHashes_CheckSanity) 3352 3363 # define RTCrSpcString_CheckSanity RT_MANGLER(RTCrSpcString_CheckSanity) 3364 # define RTCrSslCreate RT_MANGLER(RTCrSslCreate) 3365 # define RTCrSslCreateSessionForNativeSocket RT_MANGLER(RTCrSslCreateSessionForNativeSocket) 3366 # define RTCrSslLoadTrustedRootCerts RT_MANGLER(RTCrSslLoadTrustedRootCerts) 3367 # define RTCrSslRelease RT_MANGLER(RTCrSslRelease) 3368 # define RTCrSslRetain RT_MANGLER(RTCrSslRetain) 3369 # define RTCrSslSessionAccept RT_MANGLER(RTCrSslSessionAccept) 3370 # define RTCrSslSessionConnect RT_MANGLER(RTCrSslSessionConnect) 3371 # define RTCrSslSessionGetCertIssuerNameAsString RT_MANGLER(RTCrSslSessionGetCertIssuerNameAsString) 3372 # define RTCrSslSessionGetVersion RT_MANGLER(RTCrSslSessionGetVersion) 3373 # define RTCrSslSessionPending RT_MANGLER(RTCrSslSessionPending) 3374 # define RTCrSslSessionRead RT_MANGLER(RTCrSslSessionRead) 3375 # define RTCrSslSessionRelease RT_MANGLER(RTCrSslSessionRelease) 3376 # define RTCrSslSessionRetain RT_MANGLER(RTCrSslSessionRetain) 3377 # define RTCrSslSessionWrite RT_MANGLER(RTCrSslSessionWrite) 3378 # define RTCrSslSetCertificateFile RT_MANGLER(RTCrSslSetCertificateFile) 3379 # define RTCrSslSetNoPeerVerify RT_MANGLER(RTCrSslSetNoPeerVerify) 3380 # define RTCrSslSetPrivateKeyFile RT_MANGLER(RTCrSslSetPrivateKeyFile) 3353 3381 # define RTCrX509AlgorithmIdentifier_DecodeAsn1 RT_MANGLER(RTCrX509AlgorithmIdentifier_DecodeAsn1) 3354 3382 # define RTCrX509AlgorithmIdentifiers_DecodeAsn1 RT_MANGLER(RTCrX509AlgorithmIdentifiers_DecodeAsn1)
Note:
See TracChangeset
for help on using the changeset viewer.