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
4345cdb8
Kaydet (Commit)
4345cdb8
authored
8 years ago
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up uses of SAL_U/SAL_W: xmlsecurity
Change-Id: I96043623a5b0e26ddc44de5c71743f3b0d8e1e50
üst
311a9126
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
sanextension_mscryptimpl.cxx
...curity/source/xmlsec/mscrypt/sanextension_mscryptimpl.cxx
+7
-3
securityenvironment_mscryptimpl.cxx
...source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+8
-12
No files found.
xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl.cxx
Dosyayı görüntüle @
4345cdb8
...
...
@@ -93,11 +93,14 @@ css::uno::Sequence< css::security::CertAltNameEntry > SAL_CALL SanExtensionImpl:
}
case
CERT_ALT_NAME_RFC822_NAME
:
arrCertAltNameEntry
[
i
].
Type
=
ExtAltNameType_RFC822_NAME
;
arrCertAltNameEntry
[
i
].
Value
<<=
OUString
(
SAL_U
(
pEntry
->
pwszRfc822Name
));
arrCertAltNameEntry
[
i
].
Value
<<=
OUString
(
reinterpret_cast
<
sal_Unicode
const
*>
(
pEntry
->
pwszRfc822Name
));
break
;
case
CERT_ALT_NAME_DNS_NAME
:
arrCertAltNameEntry
[
i
].
Type
=
ExtAltNameType_DNS_NAME
;
arrCertAltNameEntry
[
i
].
Value
<<=
OUString
(
SAL_U
(
pEntry
->
pwszDNSName
));
arrCertAltNameEntry
[
i
].
Value
<<=
OUString
(
reinterpret_cast
<
sal_Unicode
const
*>
(
pEntry
->
pwszDNSName
));
break
;
case
CERT_ALT_NAME_DIRECTORY_NAME
:
{
...
...
@@ -106,7 +109,8 @@ css::uno::Sequence< css::security::CertAltNameEntry > SAL_CALL SanExtensionImpl:
}
case
CERT_ALT_NAME_URL
:
arrCertAltNameEntry
[
i
].
Type
=
ExtAltNameType_URL
;
arrCertAltNameEntry
[
i
].
Value
<<=
OUString
(
SAL_U
(
pEntry
->
pwszURL
));
arrCertAltNameEntry
[
i
].
Value
<<=
OUString
(
reinterpret_cast
<
sal_Unicode
const
*>
(
pEntry
->
pwszURL
));
break
;
case
CERT_ALT_NAME_IP_ADDRESS
:
{
...
...
This diff is collapsed.
Click to expand it.
xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
Dosyayı görüntüle @
4345cdb8
...
...
@@ -282,22 +282,21 @@ void SecurityEnvironment_MSCryptImpl::setCertDb( HCERTSTORE aCertDb ) {
// Based on sample code from MSDN
static
void
get_system_name
(
const
void
*
pvSystemStore
,
DWORD
dwFlags
,
LPCWSTR
*
ppwszSystemName
)
static
OUString
get_system_name
(
const
void
*
pvSystemStore
,
DWORD
dwFlags
)
{
*
ppwszSystemName
=
nullptr
;
LPCWSTR
ppwszSystemName
;
if
(
dwFlags
&
CERT_SYSTEM_STORE_RELOCATE_FLAG
)
{
_CERT_SYSTEM_STORE_RELOCATE_PARA
const
*
pRelocatePara
;
pRelocatePara
=
static_cast
<
_CERT_SYSTEM_STORE_RELOCATE_PARA
const
*>
(
pvSystemStore
);
*
ppwszSystemName
=
pRelocatePara
->
pwszSystemStore
;
ppwszSystemName
=
pRelocatePara
->
pwszSystemStore
;
}
else
{
*
ppwszSystemName
=
static_cast
<
LPCWSTR
>
(
pvSystemStore
);
ppwszSystemName
=
static_cast
<
LPCWSTR
>
(
pvSystemStore
);
}
return
reinterpret_cast
<
sal_Unicode
const
*>
(
ppwszSystemName
);
}
extern
"C"
BOOL
WINAPI
cert_enum_physical_store_callback
(
const
void
*
,
...
...
@@ -307,7 +306,7 @@ extern "C" BOOL WINAPI cert_enum_physical_store_callback(const void *,
void
*
,
void
*
)
{
OUString
name
(
SAL_U
(
pwszStoreName
));
OUString
name
(
reinterpret_cast
<
sal_Unicode
const
*>
(
pwszStoreName
));
if
(
dwFlags
&
CERT_PHYSICAL_STORE_PREDEFINED_ENUM_FLAG
)
name
+=
" (implicitly created)"
;
SAL_INFO
(
"xmlsecurity.xmlsec"
,
" Physical store: "
<<
name
);
...
...
@@ -321,10 +320,7 @@ extern "C" BOOL WINAPI cert_enum_system_store_callback(const void *pvSystemStore
void
*
,
void
*
)
{
LPCWSTR
pwszSystemStore
;
get_system_name
(
pvSystemStore
,
dwFlags
,
&
pwszSystemStore
);
SAL_INFO
(
"xmlsecurity.xmlsec"
,
"System store: "
<<
OUString
(
SAL_U
(
pwszSystemStore
)));
SAL_INFO
(
"xmlsecurity.xmlsec"
,
"System store: "
<<
get_system_name
(
pvSystemStore
,
dwFlags
));
if
(
!
CertEnumPhysicalStore
(
pvSystemStore
,
dwFlags
,
...
...
This diff is collapsed.
Click to expand it.
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