This commit is contained in:
Glenn Maynard
2004-05-13 23:43:12 +00:00
parent 0e7ba7af0b
commit 7da7aa9c85
-4
View File
@@ -111,7 +111,6 @@ bool CryptManager::VerifyFileWithFile( CString sPath, CString sSignatureFile )
return false;
try {
/* XXX: This is opening sPubFilename for RageFile::WRITE instead of READ. */
RageFileSource pubFile(sPubFilename, true);
RSASSA_PKCS1v15_SHA_Verifier pub(pubFile);
@@ -142,9 +141,6 @@ bool CryptManager::Verify( CString sPath, CString sSignature )
if( !IsAFile(sPubFilename) )
return false;
// CAREFUL: These classes can throw all kinds of exceptions. Should this
// be wrapped in a try catch?
try {
RageFileSource pubFile(sPubFilename, true);
RSASSA_PKCS1v15_SHA_Verifier pub(pubFile);