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
62767cf6
Kaydet (Commit)
62767cf6
authored
Şub 22, 2018
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Read algorithmName, hashValue, saltValue, spinCount, tdf#104250 prep
Change-Id: Idc68ad62e8420646d5aecd0d4126084390a1ed55
üst
cffecd3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
worksheetsettings.hxx
sc/source/filter/inc/worksheetsettings.hxx
+5
-1
worksheetsettings.cxx
sc/source/filter/oox/worksheetsettings.cxx
+5
-0
No files found.
sc/source/filter/inc/worksheetsettings.hxx
Dosyayı görüntüle @
62767cf6
...
@@ -43,7 +43,11 @@ struct SheetSettingsModel
...
@@ -43,7 +43,11 @@ struct SheetSettingsModel
/** Sheet protection settings. */
/** Sheet protection settings. */
struct
SheetProtectionModel
struct
SheetProtectionModel
{
{
sal_uInt16
mnPasswordHash
;
/// Hash value from sheet protection password.
OUString
maAlgorithmName
;
/// Algorithm name, "SHA-512", "SHA-1", ...
OUString
maHashValue
;
/// Hash value computed by the algorithm, base-64 encoded
OUString
maSaltValue
;
/// Salt value to be prepended to the password, base-64 encoded
sal_uInt32
mnSpinCount
;
/// Spin count, iterations to run algorithm
sal_uInt16
mnPasswordHash
;
/// Hash value from sheet protection password. (unrelated to the above)
bool
mbSheet
;
/// True = sheet protection enabled, locked cells are protected.
bool
mbSheet
;
/// True = sheet protection enabled, locked cells are protected.
bool
mbObjects
;
/// True = objects locked.
bool
mbObjects
;
/// True = objects locked.
bool
mbScenarios
;
/// True = scenarios locked.
bool
mbScenarios
;
/// True = scenarios locked.
...
...
sc/source/filter/oox/worksheetsettings.cxx
Dosyayı görüntüle @
62767cf6
...
@@ -55,6 +55,7 @@ SheetSettingsModel::SheetSettingsModel() :
...
@@ -55,6 +55,7 @@ SheetSettingsModel::SheetSettingsModel() :
}
}
SheetProtectionModel
::
SheetProtectionModel
()
:
SheetProtectionModel
::
SheetProtectionModel
()
:
mnSpinCount
(
0
),
mnPasswordHash
(
0
),
mnPasswordHash
(
0
),
mbSheet
(
false
),
mbSheet
(
false
),
mbObjects
(
false
),
mbObjects
(
false
),
...
@@ -106,6 +107,10 @@ void WorksheetSettings::importOutlinePr( const AttributeList& rAttribs )
...
@@ -106,6 +107,10 @@ void WorksheetSettings::importOutlinePr( const AttributeList& rAttribs )
void
WorksheetSettings
::
importSheetProtection
(
const
AttributeList
&
rAttribs
)
void
WorksheetSettings
::
importSheetProtection
(
const
AttributeList
&
rAttribs
)
{
{
maSheetProt
.
maAlgorithmName
=
rAttribs
.
getString
(
XML_algorithmName
,
OUString
());
maSheetProt
.
maHashValue
=
rAttribs
.
getString
(
XML_hashValue
,
OUString
());
maSheetProt
.
maSaltValue
=
rAttribs
.
getString
(
XML_saltValue
,
OUString
());
maSheetProt
.
mnSpinCount
=
rAttribs
.
getUnsigned
(
XML_spinCount
,
0
);
maSheetProt
.
mnPasswordHash
=
oox
::
core
::
CodecHelper
::
getPasswordHash
(
rAttribs
,
XML_password
);
maSheetProt
.
mnPasswordHash
=
oox
::
core
::
CodecHelper
::
getPasswordHash
(
rAttribs
,
XML_password
);
maSheetProt
.
mbSheet
=
rAttribs
.
getBool
(
XML_sheet
,
false
);
maSheetProt
.
mbSheet
=
rAttribs
.
getBool
(
XML_sheet
,
false
);
maSheetProt
.
mbObjects
=
rAttribs
.
getBool
(
XML_objects
,
false
);
maSheetProt
.
mbObjects
=
rAttribs
.
getBool
(
XML_objects
,
false
);
...
...
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