Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
346a5e85
Kaydet (Commit)
346a5e85
authored
Mar 23, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: unused variables
Change-Id: Ieac3cd6bf9ef883cbc3b295e25867a76ac68b88f
üst
f8062812
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
rtl_digest.cxx
sal/qa/rtl/digest/rtl_digest.cxx
+9
-6
No files found.
sal/qa/rtl/digest/rtl_digest.cxx
Dosyayı görüntüle @
346a5e85
...
...
@@ -191,7 +191,7 @@ public:
boost
::
scoped_array
<
sal_uInt8
>
pKeyBuffer
(
new
sal_uInt8
[
nKeyLen
]);
rtl_digest_get
(
handle
,
pKeyBuffer
.
get
(),
nKeyLen
);
OString
aSum
=
createHex
(
pKeyBuffer
.
get
(),
nKeyLen
);
createHex
(
pKeyBuffer
.
get
(),
nKeyLen
);
rtl_digest_destroy
(
handle
);
}
...
...
@@ -398,6 +398,12 @@ public:
}
{
#if 0 // Don't remove, but instead fix the test or something
// With this test case rtl_digest_SHA1 computes the wrong sum. This was confirmed
// by decrytion of a MSO encrypted document. Replacing the rtl_digest_SHA1 calculation
// with sha1 calculation from NSS was able to decrypt the document.
const unsigned char aData[] = {
0x37, 0x5f, 0x47, 0x7a, 0xd2, 0x13, 0xbe, 0xd2, 0x3c, 0x23, 0x33, 0x39,
0x68, 0x21, 0x03, 0x6d, 0x31, 0x00, 0x32, 0x00, 0x33, 0x00, 0x34, 0x00,
...
...
@@ -414,11 +420,8 @@ public:
OString sKey = createHex(pResult.get(), RTL_DIGEST_LENGTH_SHA1);
// With this test case rtl_digest_SHA1 computes the wrong sum. This was confirmed
// by decrytion of a MSO encrypted document. Replacing the rtl_digest_SHA1 calculation
// with sha1 calculation from NSS was able to decrypt the document.
//CPPUNIT_ASSERT_EQUAL(sExpected, sKey);
CPPUNIT_ASSERT_EQUAL(sExpected, sKey);
#endif
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment