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
91ffe409
Kaydet (Commit)
91ffe409
authored
Haz 23, 2017
tarafından
Samuel Mehrbrodt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#108692 gpg4libre: List all gpg keys
Change-Id: I7300da36215233fa91b7a04a42b1c9bf907ad78b
üst
7add9c24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
SecurityEnvironment.cxx
xmlsecurity/source/gpg/SecurityEnvironment.cxx
+10
-3
No files found.
xmlsecurity/source/gpg/SecurityEnvironment.cxx
Dosyayı görüntüle @
91ffe409
...
...
@@ -65,6 +65,7 @@ OUString SecurityEnvironmentGpg::getSecurityEnvironmentInformation()
Sequence
<
Reference
<
XCertificate
>
>
SecurityEnvironmentGpg
::
getPersonalCertificates
()
{
CertificateImpl
*
xCert
;
std
::
list
<
GpgME
::
Key
>
keyList
;
std
::
list
<
CertificateImpl
*
>
certsList
;
m_ctx
->
setKeyListMode
(
GPGME_KEYLIST_MODE_LOCAL
);
...
...
@@ -74,13 +75,19 @@ Sequence< Reference < XCertificate > > SecurityEnvironmentGpg::getPersonalCertif
if
(
err
)
break
;
if
(
!
k
.
isInvalid
())
{
xCert
=
new
CertificateImpl
();
xCert
->
setCertificate
(
m_ctx
.
get
(),
k
);
certsList
.
push_back
(
xCert
);
// We can't create CertificateImpl here as CertificateImpl::setCertificate uses GpgME API
// which interrupts our key listing here. So first get the keys from GpgME, then create the CertificateImpls
keyList
.
push_back
(
k
);
}
}
m_ctx
->
endKeyListing
();
for
(
auto
const
&
key
:
keyList
)
{
xCert
=
new
CertificateImpl
();
xCert
->
setCertificate
(
m_ctx
.
get
(),
key
);
certsList
.
push_back
(
xCert
);
}
Sequence
<
Reference
<
XCertificate
>
>
xCertificateSequence
(
certsList
.
size
());
std
::
list
<
CertificateImpl
*
>::
iterator
xcertIt
;
int
i
;
...
...
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