Changeset 95634 in vbox
- Timestamp:
- Jul 14, 2022 2:09:59 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152278
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asn1.h
r95624 r95634 1225 1225 RTASN1TYPE_STANDARD_PROTOTYPES(RTASN1OCTETSTRING, RTDECL, RTAsn1OctetString, Asn1Core); 1226 1226 1227 RTDECL(int) RTAsn1OctetString_AllocContent(PRTASN1OCTETSTRING pThis, void const *pvSrc, size_t cb, 1228 PCRTASN1ALLOCATORVTABLE pAllocator); 1229 RTDECL(int) RTAsn1OctetString_SetContent(PRTASN1OCTETSTRING pThis, void const *pvSrc, size_t cbSrc, 1230 PCRTASN1ALLOCATORVTABLE pAllocator); 1227 1231 RTDECL(bool) RTAsn1OctetString_AreContentBytesValid(PCRTASN1OCTETSTRING pThis, uint32_t fFlags); 1228 1232 RTDECL(int) RTAsn1OctetString_RefreshContent(PRTASN1OCTETSTRING pThis, uint32_t fFlags, -
trunk/include/iprt/mangling.h
r95630 r95634 3237 3237 # define RTAsn1SeqOfObjIds_DecodeAsn1 RT_MANGLER(RTAsn1SeqOfObjIds_DecodeAsn1) 3238 3238 # define RTAsn1SetOfObjIds_DecodeAsn1 RT_MANGLER(RTAsn1SetOfObjIds_DecodeAsn1) 3239 # define RTAsn1OctetString_AllocContent RT_MANGLER(RTAsn1OctetString_AllocContent) 3240 # define RTAsn1OctetString_SetContent RT_MANGLER(RTAsn1OctetString_AllocContent) 3239 3241 # define RTAsn1OctetString_CheckSanity RT_MANGLER(RTAsn1OctetString_CheckSanity) 3240 3242 # define RTAsn1OctetString_Clone RT_MANGLER(RTAsn1OctetString_Clone) -
trunk/src/VBox/Runtime/common/asn1/asn1-ut-octetstring.cpp
r93115 r95634 127 127 128 128 129 RTDECL(int) RTAsn1OctetString_AllocContent(PRTASN1OCTETSTRING pThis, void const *pvSrc, size_t cb, 130 PCRTASN1ALLOCATORVTABLE pAllocator) 131 { 132 AssertReturn(!pThis->pEncapsulated, VERR_INVALID_STATE); 133 int rc; 134 if (pvSrc) 135 rc = RTAsn1ContentDup(&pThis->Asn1Core, pvSrc, cb, pAllocator); 136 else 137 rc = RTAsn1ContentAllocZ(&pThis->Asn1Core, cb, pAllocator); 138 return rc; 139 } 140 141 142 RTDECL(int) RTAsn1OctetString_SetContent(PRTASN1OCTETSTRING pThis, void const *pvSrc, size_t cbSrc, 143 PCRTASN1ALLOCATORVTABLE pAllocator) 144 { 145 AssertPtrReturn(pvSrc, VERR_INVALID_POINTER); 146 return RTAsn1OctetString_AllocContent(pThis, pvSrc, cbSrc, pAllocator); 147 } 148 149 129 150 RTDECL(bool) RTAsn1OctetString_AreContentBytesValid(PCRTASN1OCTETSTRING pThis, uint32_t fFlags) 130 151 {
Note:
See TracChangeset
for help on using the changeset viewer.