VirtualBox

Ignore:
Timestamp:
Feb 14, 2016 11:57:30 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105522
Message:

iprt/asn1: Fixed bug represnation of explicit tags that caused trouble doing encoding by piggypacking on the enumeration method. Added simple X.509 testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/x509-file.cpp

    r59625 r59665  
    7070            if (RT_SUCCESS(rc))
    7171            {
    72                 rc = RTCrX509Certificate_Clone(pCertificate, &TmpCert, &g_RTAsn1DefaultAllocator);
     72                rc = RTCrX509Certificate_Clone(pCertificate, &TmpCert, pAllocator);
    7373                if (RT_SUCCESS(rc))
    7474                {
     
    105105            if (RT_SUCCESS(rc))
    106106            {
    107                 rc = RTCrX509Certificate_Clone(pCertificate, &TmpCert, &g_RTAsn1DefaultAllocator);
     107                rc = RTCrX509Certificate_Clone(pCertificate, &TmpCert, pAllocator);
    108108                if (RT_SUCCESS(rc))
    109109                {
Note: See TracChangeset for help on using the changeset viewer.

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