From 54d7be8a49cbbd47217df84c131221b19e66f0e3 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 14 Oct 2008 08:54:46 +0000 Subject: * Adding CrytoGridAssetClient support - allows encrypting assets that are stored on a potentially hostile grid. This is not DRM, not should be relied on until after it's been security audited. I'll write a blog post on this explaining how/why/when you should use this, and what it does. --- OpenSim/Region/Application/OpenSimBase.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 7598e16..eff2422 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -418,6 +418,16 @@ namespace OpenSim { assetServer = new GridAssetClient(m_networkServersInfo.AssetURL); } + else if (m_assetStorage == "cryptogrid") // Decrypt-Only + { + assetServer = new CryptoGridAssetClient(m_networkServersInfo.AssetURL, + Environment.CurrentDirectory, true); + } + else if (m_assetStorage == "cryptogrid_eou") // Encrypts All Assets + { + assetServer = new CryptoGridAssetClient(m_networkServersInfo.AssetURL, + Environment.CurrentDirectory, false); + } else if (m_assetStorage == "file") { assetServer = new FileAssetClient(m_networkServersInfo.AssetURL); -- cgit v1.1