don't require m_bSignProfileData

This commit is contained in:
Glenn Maynard
2007-01-26 04:23:24 +00:00
parent 8c6fe59973
commit 0cdddc34ae
-12
View File
@@ -220,8 +220,6 @@ static bool WriteFile( RString sFile, RString sBuf )
void CryptManager::GenerateRSAKey( unsigned int keyLength, RString privFilename, RString pubFilename ) void CryptManager::GenerateRSAKey( unsigned int keyLength, RString privFilename, RString pubFilename )
{ {
ASSERT( PREFSMAN->m_bSignProfileData );
int iRet; int iRet;
rsa_key key; rsa_key key;
@@ -265,8 +263,6 @@ void CryptManager::GenerateRSAKey( unsigned int keyLength, RString privFilename,
void CryptManager::SignFileToFile( RString sPath, RString sSignatureFile ) void CryptManager::SignFileToFile( RString sPath, RString sSignatureFile )
{ {
ASSERT( PREFSMAN->m_bSignProfileData );
RString sPrivFilename = PRIVATE_KEY_PATH; RString sPrivFilename = PRIVATE_KEY_PATH;
if( sSignatureFile.empty() ) if( sSignatureFile.empty() )
sSignatureFile = sPath + SIGNATURE_APPEND; sSignatureFile = sPath + SIGNATURE_APPEND;
@@ -328,8 +324,6 @@ bool CryptManager::Sign( RString sPath, RString &sSignatureOut, RString sPrivKey
bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile ) bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile )
{ {
ASSERT( PREFSMAN->m_bSignProfileData );
if( VerifyFileWithFile(sPath, sSignatureFile, PUBLIC_KEY_PATH) ) if( VerifyFileWithFile(sPath, sSignatureFile, PUBLIC_KEY_PATH) )
return true; return true;
@@ -349,8 +343,6 @@ bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile )
bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile, RString sPublicKeyFile ) bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile, RString sPublicKeyFile )
{ {
ASSERT( PREFSMAN->m_bSignProfileData );
if( sSignatureFile.empty() ) if( sSignatureFile.empty() )
sSignatureFile = sPath + SIGNATURE_APPEND; sSignatureFile = sPath + SIGNATURE_APPEND;
@@ -371,8 +363,6 @@ bool CryptManager::VerifyFileWithFile( RString sPath, RString sSignatureFile, RS
bool CryptManager::Verify( RString sPath, RString sSignature, RString sPublicKey ) bool CryptManager::Verify( RString sPath, RString sSignature, RString sPublicKey )
{ {
ASSERT( PREFSMAN->m_bSignProfileData );
RageFile file; RageFile file;
if( !file.Open(sPath) ) if( !file.Open(sPath) )
{ {
@@ -450,8 +440,6 @@ RString CryptManager::GetMD5ForString( RString sData )
RString CryptManager::GetPublicKeyFileName() RString CryptManager::GetPublicKeyFileName()
{ {
ASSERT( PREFSMAN->m_bSignProfileData );
return PUBLIC_KEY_PATH; return PUBLIC_KEY_PATH;
} }