]> git.saurik.com Git - apple/security.git/blobdiff - cdsa/cdsa_utilities/context.cpp
Security-163.tar.gz
[apple/security.git] / cdsa / cdsa_utilities / context.cpp
index ca2e2e5e89fd1ce415ee8e5ed1dce295814e4f25..3f25f1a29bf97b770ee8435f4ece94643ad0d095 100644 (file)
 #include <Security/context.h>
 
 
+//
+// 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,