X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/7948e047ad0cdb129f10661905b2f3eecd5c85a0..df0e469fdcf0e0b3ef74bac6500e5751c40b4ec1:/cdsa/cdsa_utilities/context.cpp diff --git a/cdsa/cdsa_utilities/context.cpp b/cdsa/cdsa_utilities/context.cpp index ca2e2e5e..3f25f1a2 100644 --- a/cdsa/cdsa_utilities/context.cpp +++ b/cdsa/cdsa_utilities/context.cpp @@ -32,6 +32,17 @@ #include +// +// Construct Context objects +// +Context::Context(CSSM_CONTEXT_TYPE type, CSSM_ALGORITHMS algorithmId) +{ + clearPod(); + ContextType = type; + AlgorithmType = algorithmId; +} + + // // Delete a single attribute from a Context by type. // We implement this by simply nulling out the slot - the memory is not released,