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
0fe1b2fb
Kaydet (Commit)
0fe1b2fb
authored
Şub 23, 2018
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Read algorithmName, hashValue, saltValue, spinCount, tdf#115933 prep
Change-Id: I799d4652099059fcd09088c02537ed5dec087259
üst
62767cf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
workbooksettings.hxx
sc/source/filter/inc/workbooksettings.hxx
+6
-2
workbooksettings.cxx
sc/source/filter/oox/workbooksettings.cxx
+5
-0
No files found.
sc/source/filter/inc/workbooksettings.hxx
Dosyayı görüntüle @
0fe1b2fb
...
@@ -30,8 +30,12 @@ namespace xls {
...
@@ -30,8 +30,12 @@ namespace xls {
/** Settings for workbook write protection. */
/** Settings for workbook write protection. */
struct
FileSharingModel
struct
FileSharingModel
{
{
OUString
maUserName
;
/// User who added the write protection password.
OUString
maUserName
;
/// User who added the write protection password.
sal_uInt16
mnPasswordHash
;
/// Hash value of the write 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 of the write protection password. (unrelated to the above)
bool
mbRecommendReadOnly
;
/// True = recommend read-only mode on opening.
bool
mbRecommendReadOnly
;
/// True = recommend read-only mode on opening.
explicit
FileSharingModel
();
explicit
FileSharingModel
();
...
...
sc/source/filter/oox/workbooksettings.cxx
Dosyayı görüntüle @
0fe1b2fb
...
@@ -63,6 +63,7 @@ const sal_Int16 API_SHOWMODE_PLACEHOLDER = 2; /// Show placeholder
...
@@ -63,6 +63,7 @@ const sal_Int16 API_SHOWMODE_PLACEHOLDER = 2; /// Show placeholder
}
// namespace
}
// namespace
FileSharingModel
::
FileSharingModel
()
:
FileSharingModel
::
FileSharingModel
()
:
mnSpinCount
(
0
),
mnPasswordHash
(
0
),
mnPasswordHash
(
0
),
mbRecommendReadOnly
(
false
)
mbRecommendReadOnly
(
false
)
{
{
...
@@ -108,6 +109,10 @@ WorkbookSettings::WorkbookSettings( const WorkbookHelper& rHelper ) :
...
@@ -108,6 +109,10 @@ WorkbookSettings::WorkbookSettings( const WorkbookHelper& rHelper ) :
void
WorkbookSettings
::
importFileSharing
(
const
AttributeList
&
rAttribs
)
void
WorkbookSettings
::
importFileSharing
(
const
AttributeList
&
rAttribs
)
{
{
maFileSharing
.
maUserName
=
rAttribs
.
getXString
(
XML_userName
,
OUString
()
);
maFileSharing
.
maUserName
=
rAttribs
.
getXString
(
XML_userName
,
OUString
()
);
maFileSharing
.
maAlgorithmName
=
rAttribs
.
getString
(
XML_algorithmName
,
OUString
());
maFileSharing
.
maHashValue
=
rAttribs
.
getString
(
XML_hashValue
,
OUString
());
maFileSharing
.
maSaltValue
=
rAttribs
.
getString
(
XML_saltValue
,
OUString
());
maFileSharing
.
mnSpinCount
=
rAttribs
.
getUnsigned
(
XML_spinCount
,
0
);
maFileSharing
.
mnPasswordHash
=
oox
::
core
::
CodecHelper
::
getPasswordHash
(
rAttribs
,
XML_reservationPassword
);
maFileSharing
.
mnPasswordHash
=
oox
::
core
::
CodecHelper
::
getPasswordHash
(
rAttribs
,
XML_reservationPassword
);
maFileSharing
.
mbRecommendReadOnly
=
rAttribs
.
getBool
(
XML_readOnlyRecommended
,
false
);
maFileSharing
.
mbRecommendReadOnly
=
rAttribs
.
getBool
(
XML_readOnlyRecommended
,
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