Uploaded image for project: 'SoftHSM'
  1. SoftHSM
  2. SOFTHSM-73

Replace auto_ptr with unique_ptr

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0a1
    • Fix Version/s: 2.0.0
    • Component/s: Build
    • Labels:
      None

      Description

      You need to use C+11 when build SoftHSM with Botan 1.11. auto_ptr is deprecated in C+11.

      E.g:
      ../../../src/lib/SoftHSM.cpp:234:82: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
      ../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::C_CopyObject(CK_SESSION_HANDLE, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR)':
      ../../../src/lib/SoftHSM.cpp:1344:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
      ../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::C_GetAttributeValue(CK_SESSION_HANDLE, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG)':
      ../../../src/lib/SoftHSM.cpp:1461:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
      ../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::C_SetAttributeValue(CK_SESSION_HANDLE, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG)':
      ../../../src/lib/SoftHSM.cpp:1506:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
      ../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::CreateObject(CK_SESSION_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR, int)':
      ../../../src/lib/SoftHSM.cpp:7909:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]

        Attachments

          Activity

            People

            Assignee:
            rickard Rickard Bellgrim
            Reporter:
            rickard Rickard Bellgrim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: