summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-05 16:11:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 06:47:21 +0100
commit83db9afa20b8cf54b522ca9c3f04e7e267684c59 (patch)
treecad0d77f0a76ce8f25e39d72be809f318677bbe2 /svl
parenta2e3705d8b3b05ae664d54b762d6ff72927d5e48 (diff)
remove some unnecessary typedef struct... sugar
Change-Id: I1576282b0a0a3af8ae14c04725d9c4900073f2c4 Reviewed-on: https://gerrit.libreoffice.org/68758 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/crypto/cryptosign.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index cf0013931910..3f0d1019bba3 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -107,10 +107,10 @@ MessageImprint ::= SEQUENCE {
hashedMessage OCTET STRING }
*/
-typedef struct {
+struct MessageImprint {
SECAlgorithmID hashAlgorithm;
SECItem hashedMessage;
-} MessageImprint;
+};
/*
Extension ::= SEQUENCE {
@@ -119,11 +119,11 @@ Extension ::= SEQUENCE {
extnValue OCTET STRING }
*/
-typedef struct {
+struct Extension {
SECItem const extnID;
SECItem const critical;
SECItem const extnValue;
-} Extension;
+};
/*
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension
@@ -143,14 +143,14 @@ TimeStampReq ::= SEQUENCE {
extensions [0] IMPLICIT Extensions OPTIONAL }
*/
-typedef struct {
+struct TimeStampReq {
SECItem version;
MessageImprint messageImprint;
SECItem reqPolicy;
SECItem nonce;
SECItem certReq;
Extension *extensions;
-} TimeStampReq;
+};
/**
* General name, defined by RFC 3280.
@@ -278,11 +278,11 @@ const SEC_ASN1Template SigningCertificateV2Template[] =
{0, 0, nullptr, 0}
};
-typedef struct {
+struct PKIStatusInfo {
SECItem status;
SECItem statusString;
SECItem failInfo;
-} PKIStatusInfo;
+};
const SEC_ASN1Template PKIStatusInfo_Template[] =
{
@@ -298,10 +298,10 @@ const SEC_ASN1Template Any_Template[] =
{ SEC_ASN1_ANY, 0, nullptr, sizeof(SECItem) }
};
-typedef struct {
+struct TimeStampResp {
PKIStatusInfo status;
SECItem timeStampToken;
-} TimeStampResp;
+};
const SEC_ASN1Template TimeStampResp_Template[] =
{