remove unused

This commit is contained in:
Glenn Maynard
2006-12-20 23:08:45 +00:00
parent db819c196e
commit b8cb44c0be
2 changed files with 0 additions and 34 deletions
-33
View File
@@ -24,11 +24,6 @@ bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile )
return true;
}
bool CryptManager::Verify( RString sPath, RString sSignature )
{
return true;
}
#else
// crypt headers
@@ -191,34 +186,6 @@ bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile, RS
return true;
}
bool CryptManager::Verify( RString sPath, RString sSignature )
{
ASSERT( PREFSMAN->m_bSignProfileData );
RString sPublicKeyFile = PUBLIC_KEY_PATH;
RString sMessageFilename = sPath;
RString sPublicKey;
if( !GetFileContents(sPublicKeyFile, sPublicKey) )
return false;
RageFile file;
if( !file.Open(sPath) )
{
LOG->Warn( "Verify: open(%s) failed: %s", sPath.c_str(), file.GetError().c_str() );
return false;
}
RString sError;
if( !CryptHelpers::VerifyFile(file, sSignature, sPublicKey, sError) )
{
LOG->Warn( "Verify(%s) failed: %s", sPath.c_str(), sError.c_str() );
return false;
}
return true;
}
#endif
RString CryptManager::GetMD5ForFile( RString fn )