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
bb06a106
Kaydet (Commit)
bb06a106
authored
Haz 19, 2017
tarafından
Katarina Behrens
Kaydeden (comit)
Thorsten Behrens
Haz 21, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gpg4libre: [API-CHANGE] add certificate kind (X509 vs. OpenPGP)
Change-Id: I423bef41f93af9d1b78ee9795be7ec33c3c7ae0c
üst
d6f8b034
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
63 additions
and
1 deletion
+63
-1
UnoApi_offapi.mk
offapi/UnoApi_offapi.mk
+1
-0
CertificateKind.idl
offapi/com/sun/star/security/CertificateKind.idl
+33
-0
XCertificate.idl
offapi/com/sun/star/security/XCertificate.idl
+7
-1
CertificateImpl.cxx
xmlsecurity/source/gpg/CertificateImpl.cxx
+5
-0
CertificateImpl.hxx
xmlsecurity/source/gpg/CertificateImpl.hxx
+2
-0
x509certificate_mscryptimpl.cxx
...ity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+5
-0
x509certificate_mscryptimpl.hxx
...ity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.hxx
+3
-0
x509certificate_nssimpl.cxx
xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
+5
-0
x509certificate_nssimpl.hxx
xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx
+2
-0
No files found.
offapi/UnoApi_offapi.mk
Dosyayı görüntüle @
bb06a106
...
@@ -3318,6 +3318,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/security,\
...
@@ -3318,6 +3318,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/security,\
CertificateCharacters \
CertificateCharacters \
CertificateContainerStatus \
CertificateContainerStatus \
CertificateException \
CertificateException \
CertificateKind \
CertificateValidity \
CertificateValidity \
CryptographyException \
CryptographyException \
DocumentSignatureInformation \
DocumentSignatureInformation \
...
...
offapi/com/sun/star/security/CertificateKind.idl
0 → 100644
Dosyayı görüntüle @
bb06a106
/*
-*-
Mode
:
C
++
; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
*
This
file
is
part
of
the
LibreOffice
project
.
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2.0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
:
//
mozilla
.
org/MPL/2.0/.
*/
#
ifndef
__com_sun_star_security_CertificateKind_idl_
#
define
__com_sun_star_security_CertificateKind_idl_
module
com
{
module
sun
{
module
star
{
module
security
{
/**
*
Enum
definition
of
a
certificate
kind
(
X509
,
OpenPGP
)
*/
enum
CertificateKind
{
/**
X
.
509
format
of
a
certificate
*/
X509
,
/**
OpenPGP
format
of
a
certificate
*/
OPENPGP
}
;
}
; } ; } ; } ;
#
endif
/*
vim
:
set
shiftwidth
=
4
softtabstop
=
4
expandtab
:
*/
offapi/com/sun/star/security/XCertificate.idl
Dosyayı görüntüle @
bb06a106
...
@@ -23,13 +23,14 @@
...
@@ -23,13 +23,14 @@
#
include
<
com
/
sun
/
star
/
uno
/
XInterface
.
idl>
#
include
<
com
/
sun
/
star
/
uno
/
XInterface
.
idl>
#
include
<
com
/
sun
/
star
/
util
/
DateTime
.
idl>
#
include
<
com
/
sun
/
star
/
util
/
DateTime
.
idl>
#
include
<
com
/
sun
/
star
/
security
/
XCertificateExtension
.
idl>
#
include
<
com
/
sun
/
star
/
security
/
XCertificateExtension
.
idl>
#
include
<
com
/
sun
/
star
/
security
/
CertificateKind
.
idl>
module
com
{
module
sun
{
module
star
{
module
security
{
module
com
{
module
sun
{
module
star
{
module
security
{
/**
/**
*
Interface
of
a
PKI
Certificate
*
Interface
of
a
PKI
Certificate
*
*
*
<
p
>
This
interface
represents
a
x509
certificate
.
</p>
*
<
p
>
This
interface
represents
a
certificate
(
X
.
509
or
OpenPGP
)
.
</
p
>
*/
*/
interface
XCertificate
:
com
::
sun
::
star
::
uno
::
XInterface
interface
XCertificate
:
com
::
sun
::
star
::
uno
::
XInterface
{
{
...
@@ -108,6 +109,11 @@ interface XCertificate : com::sun::star::uno::XInterface
...
@@ -108,6 +109,11 @@ interface XCertificate : com::sun::star::uno::XInterface
*/
*/
[
attribute
,
readonly
]
sequence
<
byte
>
MD5Thumbprint
;
[
attribute
,
readonly
]
sequence
<
byte
>
MD5Thumbprint
;
/**
*
the
kind
of
certificate
,
X
.
509
or
OpenPGP
*/
[
attribute
,
readonly
]
com
::
sun
::
star
::
security
::
CertificateKind
CertificateKind
;
/**
/**
*
Find
a
extension
with
a
object
identifier
.
*
Find
a
extension
with
a
object
identifier
.
*/
*/
...
...
xmlsecurity/source/gpg/CertificateImpl.cxx
Dosyayı görüntüle @
bb06a106
...
@@ -162,6 +162,11 @@ Sequence< sal_Int8 > SAL_CALL CertificateImpl::getMD5Thumbprint()
...
@@ -162,6 +162,11 @@ Sequence< sal_Int8 > SAL_CALL CertificateImpl::getMD5Thumbprint()
return
Sequence
<
sal_Int8
>
();
return
Sequence
<
sal_Int8
>
();
}
}
CertificateKind
SAL_CALL
CertificateImpl
::
getCertificateKind
()
{
return
CertificateKind_OPENPGP
;
}
sal_Int32
SAL_CALL
CertificateImpl
::
getCertificateUsage
()
sal_Int32
SAL_CALL
CertificateImpl
::
getCertificateUsage
()
{
{
return
KeyUsage
::
DIGITAL_SIGNATURE
|
KeyUsage
::
NON_REPUDIATION
|
KeyUsage
::
KEY_ENCIPHERMENT
|
KeyUsage
::
DATA_ENCIPHERMENT
;
return
KeyUsage
::
DIGITAL_SIGNATURE
|
KeyUsage
::
NON_REPUDIATION
|
KeyUsage
::
KEY_ENCIPHERMENT
|
KeyUsage
::
DATA_ENCIPHERMENT
;
...
...
xmlsecurity/source/gpg/CertificateImpl.hxx
Dosyayı görüntüle @
bb06a106
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/uno/SecurityException.hpp>
#include <com/sun/star/uno/SecurityException.hpp>
#include <com/sun/star/security/CertificateKind.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <key.h>
#include <key.h>
...
@@ -77,6 +78,7 @@ public:
...
@@ -77,6 +78,7 @@ public:
/// @see xmlsecurity::Certificate::getSHA256Thumbprint().
/// @see xmlsecurity::Certificate::getSHA256Thumbprint().
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
getSHA256Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
getSHA256Thumbprint
()
override
;
virtual
css
::
security
::
CertificateKind
getCertificateKind
()
override
;
// Helper methods
// Helper methods
void
setCertificate
(
const
GpgME
::
Key
&
key
);
void
setCertificate
(
const
GpgME
::
Key
&
key
);
...
...
xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
Dosyayı görüntüle @
bb06a106
...
@@ -594,6 +594,11 @@ css::uno::Sequence< sal_Int8 > SAL_CALL X509Certificate_MSCryptImpl::getMD5Thumb
...
@@ -594,6 +594,11 @@ css::uno::Sequence< sal_Int8 > SAL_CALL X509Certificate_MSCryptImpl::getMD5Thumb
return
getThumbprint
(
m_pCertContext
,
CERT_MD5_HASH_PROP_ID
);
return
getThumbprint
(
m_pCertContext
,
CERT_MD5_HASH_PROP_ID
);
}
}
CertificateKind
SAL_CALL
X509Certificate_MSCryptImpl
::
getCertificateKind
()
{
return
CertificateKind_X509
;
}
sal_Int32
SAL_CALL
X509Certificate_MSCryptImpl
::
getCertificateUsage
(
)
sal_Int32
SAL_CALL
X509Certificate_MSCryptImpl
::
getCertificateUsage
(
)
{
{
sal_Int32
usage
=
sal_Int32
usage
=
...
...
xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.hxx
Dosyayı görüntüle @
bb06a106
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/uno/SecurityException.hpp>
#include <com/sun/star/uno/SecurityException.hpp>
#include <com/sun/star/security/CertificateKind.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <certificate.hxx>
#include <certificate.hxx>
...
@@ -67,6 +68,8 @@ class X509Certificate_MSCryptImpl : public ::cppu::WeakImplHelper<
...
@@ -67,6 +68,8 @@ class X509Certificate_MSCryptImpl : public ::cppu::WeakImplHelper<
virtual
OUString
SAL_CALL
getSignatureAlgorithm
()
override
;
virtual
OUString
SAL_CALL
getSignatureAlgorithm
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getSHA1Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getSHA1Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getMD5Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getMD5Thumbprint
()
override
;
virtual
css
::
security
::
CertificateKind
SAL_CALL
getCertificateKind
()
override
;
virtual
sal_Int32
SAL_CALL
getCertificateUsage
(
)
override
;
virtual
sal_Int32
SAL_CALL
getCertificateUsage
(
)
override
;
...
...
xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
Dosyayı görüntüle @
bb06a106
...
@@ -455,6 +455,11 @@ css::uno::Sequence< sal_Int8 > SAL_CALL X509Certificate_NssImpl::getMD5Thumbprin
...
@@ -455,6 +455,11 @@ css::uno::Sequence< sal_Int8 > SAL_CALL X509Certificate_NssImpl::getMD5Thumbprin
return
getThumbprint
(
m_pCert
,
SEC_OID_MD5
);
return
getThumbprint
(
m_pCert
,
SEC_OID_MD5
);
}
}
CertificateKind
SAL_CALL
X509Certificate_NssImpl
::
getCertificateKind
()
{
return
CertificateKind_X509
;
}
sal_Int32
SAL_CALL
X509Certificate_NssImpl
::
getCertificateUsage
(
)
sal_Int32
SAL_CALL
X509Certificate_NssImpl
::
getCertificateUsage
(
)
{
{
SECStatus
rv
;
SECStatus
rv
;
...
...
xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx
Dosyayı görüntüle @
bb06a106
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/uno/SecurityException.hpp>
#include <com/sun/star/uno/SecurityException.hpp>
#include <com/sun/star/security/CertificateKind.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <certificate.hxx>
#include <certificate.hxx>
...
@@ -72,6 +73,7 @@ class X509Certificate_NssImpl : public ::cppu::WeakImplHelper<
...
@@ -72,6 +73,7 @@ class X509Certificate_NssImpl : public ::cppu::WeakImplHelper<
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getSHA1Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getSHA1Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getMD5Thumbprint
()
override
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getMD5Thumbprint
()
override
;
virtual
css
::
security
::
CertificateKind
SAL_CALL
getCertificateKind
()
override
;
virtual
sal_Int32
SAL_CALL
getCertificateUsage
(
)
override
;
virtual
sal_Int32
SAL_CALL
getCertificateUsage
(
)
override
;
...
...
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