OpenKMIP / libkmip

A C implementation of the KMIP specification.
Other
38 stars 25 forks source link

Add attribute deep copy utilities #27

Closed PeterHamilton closed 5 years ago

PeterHamilton commented 5 years ago

This change adds deep copy utilities for Attribute objects, adding a memcpy hook to the KMIP context for use in library-wide memory management. All currently supported Attribute types can now be copied, yielding newly allocated replicas of the original object. Unit tests have been added to cover the additions.