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
e6e127b5
Kaydet (Commit)
e6e127b5
authored
Tem 14, 2004
tarafından
Michael Mi
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improve algorithm description
Issue number: Submitted by: Reviewed by:
üst
b692bf16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
x509certificate_mscryptimpl.cxx
...ity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+23
-4
No files found.
xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
Dosyayı görüntüle @
e6e127b5
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: x509certificate_mscryptimpl.cxx,v $
* $RCSfile: x509certificate_mscryptimpl.cxx,v $
*
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
*
* last change: $Author: mmi $ $Date: 2004-07-14
08:12:25
$
* last change: $Author: mmi $ $Date: 2004-07-14
10:28:28
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -75,6 +75,10 @@
...
@@ -75,6 +75,10 @@
#include "certificateextension_xmlsecimpl.hxx"
#include "certificateextension_xmlsecimpl.hxx"
#endif
#endif
//MM : added by MM
#include "oid.hxx"
//MM : end
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
security
;
using
namespace
::
com
::
sun
::
star
::
security
;
using
::
rtl
::
OUString
;
using
::
rtl
::
OUString
;
...
@@ -391,13 +395,28 @@ X509Certificate_MSCryptImpl* X509Certificate_MSCryptImpl :: getImplementation( c
...
@@ -391,13 +395,28 @@ X509Certificate_MSCryptImpl* X509Certificate_MSCryptImpl :: getImplementation( c
}
}
// MM : added by MM
// MM : added by MM
::
rtl
::
OUString
findOIDDescription
(
char
*
oid
)
{
OUString
ouOID
=
OUString
::
createFromAscii
(
oid
);
for
(
int
i
=
0
;
i
<
nOID
;
i
++
)
{
OUString
item
=
OUString
::
createFromAscii
(
OIDs
[
i
].
oid
);
if
(
ouOID
==
item
)
{
return
OUString
::
createFromAscii
(
OIDs
[
i
].
desc
);
}
}
return
OUString
()
;
}
::
rtl
::
OUString
SAL_CALL
X509Certificate_MSCryptImpl
::
getSubjectPublicKeyAlgorithm
()
::
rtl
::
OUString
SAL_CALL
X509Certificate_MSCryptImpl
::
getSubjectPublicKeyAlgorithm
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
{
if
(
m_pCertContext
!=
NULL
&&
m_pCertContext
->
pCertInfo
!=
NULL
)
if
(
m_pCertContext
!=
NULL
&&
m_pCertContext
->
pCertInfo
!=
NULL
)
{
{
CRYPT_ALGORITHM_IDENTIFIER
algorithm
=
m_pCertContext
->
pCertInfo
->
SubjectPublicKeyInfo
.
Algorithm
;
CRYPT_ALGORITHM_IDENTIFIER
algorithm
=
m_pCertContext
->
pCertInfo
->
SubjectPublicKeyInfo
.
Algorithm
;
return
OUString
::
createFromAscii
(
algorithm
.
pszObjId
)
;
return
findOIDDescription
(
algorithm
.
pszObjId
)
;
}
}
else
else
{
{
...
@@ -432,7 +451,7 @@ X509Certificate_MSCryptImpl* X509Certificate_MSCryptImpl :: getImplementation( c
...
@@ -432,7 +451,7 @@ X509Certificate_MSCryptImpl* X509Certificate_MSCryptImpl :: getImplementation( c
if
(
m_pCertContext
!=
NULL
&&
m_pCertContext
->
pCertInfo
!=
NULL
)
if
(
m_pCertContext
!=
NULL
&&
m_pCertContext
->
pCertInfo
!=
NULL
)
{
{
CRYPT_ALGORITHM_IDENTIFIER
algorithm
=
m_pCertContext
->
pCertInfo
->
SignatureAlgorithm
;
CRYPT_ALGORITHM_IDENTIFIER
algorithm
=
m_pCertContext
->
pCertInfo
->
SignatureAlgorithm
;
return
OUString
::
createFromAscii
(
algorithm
.
pszObjId
)
;
return
findOIDDescription
(
algorithm
.
pszObjId
)
;
}
}
else
else
{
{
...
...
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