X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/6b200bc335dc93c5516ccb52f14bd896d8c7fad7..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_apple_csp/lib/AppleCSP.cpp diff --git a/OSX/libsecurity_apple_csp/lib/AppleCSP.cpp b/OSX/libsecurity_apple_csp/lib/AppleCSP.cpp index db9a4bee..1a32f514 100644 --- a/OSX/libsecurity_apple_csp/lib/AppleCSP.cpp +++ b/OSX/libsecurity_apple_csp/lib/AppleCSP.cpp @@ -26,10 +26,6 @@ #include "cspdebugging.h" #include #include -#ifdef BSAFE_CSP_ENABLE -#include "bsafecsp.h" -#include "bsafecspi.h" -#endif #ifdef CRYPTKIT_CSP_ENABLE #include "cryptkitcsp.h" #include "FEEKeys.h" @@ -51,9 +47,6 @@ AppleCSPPlugin::AppleCSPPlugin() : normAllocator(Allocator::standard(Allocator::normal)), privAllocator(Allocator::standard(Allocator::sensitive)), - #ifdef BSAFE_CSP_ENABLE - bSafe4Factory(new BSafeFactory(&normAllocator, &privAllocator)), - #endif #ifdef CRYPTKIT_CSP_ENABLE cryptKitFactory(new CryptKitFactory(&normAllocator, &privAllocator)), #endif @@ -69,9 +62,6 @@ AppleCSPPlugin::AppleCSPPlugin() : AppleCSPPlugin::~AppleCSPPlugin() { - #ifdef BSAFE_CSP_ENABLE - delete bSafe4Factory; - #endif #ifdef CRYPTKIT_CSP_ENABLE delete cryptKitFactory; #endif @@ -128,9 +118,6 @@ AppleCSPSession::AppleCSPSession( subserviceType, attachFlags, upcalls), - #ifdef BSAFE_CSP_ENABLE - bSafe4Factory(*(dynamic_cast(plug.bSafe4Factory))), - #endif #ifdef CRYPTKIT_CSP_ENABLE cryptKitFactory(*(dynamic_cast(plug.cryptKitFactory))), #endif @@ -178,13 +165,6 @@ void AppleCSPSession::setupContext( * Note we leave the decision as to whether it's OK to * reuse a context to the individual factories. */ - #ifdef BSAFE_CSP_ENABLE - /* Give BSAFE the firsrt shot if it's present */ - if (bSafe4Factory.setup(*this, cspCtx, context)) { - CASSERT(cspCtx != NULL); - return; - } - #endif if (rsaDsaAlgFactory.setup(*this, cspCtx, context)) { CASSERT(cspCtx != NULL); return; @@ -617,14 +597,6 @@ CSPKeyInfoProvider *AppleCSPSession::infoProvider( { CSPKeyInfoProvider *provider = NULL; - #ifdef BSAFE_CSP_ENABLE - /* Give BSAFE first shot, if it's here */ - provider = BSafe::BSafeKeyInfoProvider::provider(key, *this); - if(provider != NULL) { - return provider; - } - #endif - provider = RSAKeyInfoProvider::provider(key, *this); if(provider != NULL) { return provider;