]> git.saurik.com Git - apple/security.git/blobdiff - SecurityTests/clxutils/clAppUtils/BlobList.h
Security-57740.51.3.tar.gz
[apple/security.git] / SecurityTests / clxutils / clAppUtils / BlobList.h
diff --git a/SecurityTests/clxutils/clAppUtils/BlobList.h b/SecurityTests/clxutils/clAppUtils/BlobList.h
deleted file mode 100644 (file)
index e30770f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef        _BLOBLIST_H_
-#define _BLOBLIST_H_
-
-#include <Security/cssmtype.h>
-
-#ifndef        NULL
-#define NULL (0)
-#endif
-
-/*** BlobList class for managing groups of raw certs and CRLs ***/
-
-class BlobList
-{
-public:
-       BlobList()
-               : mNumBlobs(0), mBlobList(NULL) { }
-       ~BlobList();
-       /* blob is mallocd & copied; its referent is only copied if copyBlob is
-        * true and is always freed in ~BlobList */
-       void addBlob(const CSSM_DATA &blob, CSSM_BOOL copyBlob = CSSM_FALSE);
-       int addFile(const char *fileName, const char *dirName = NULL);  
-       uint32 numBlobs()                       { return mNumBlobs; }
-       CSSM_DATA_PTR   blobList()      { return mBlobList; }
-       
-private:
-       uint32                  mNumBlobs;
-       CSSM_DATA_PTR   mBlobList;
-};
-
-#endif /* _BLOBLIST_H_ */