summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSune Vuorela <sune@vuorela.dk>2023-03-02 12:48:19 +0100
committerSune Vuorela <sune@vuorela.dk>2023-03-03 07:35:28 +0100
commitf688173900f3c29e802a3c140bdaa9d48d6c7118 (patch)
tree7b4cdf59fa6ba4381954577b63b54fc954373041
parent64c7f8b3b67902274684f6541c0a931001a6fa20 (diff)
Remove unused ASN bits
-rw-r--r--poppler/SignatureHandler.cc64
1 files changed, 0 insertions, 64 deletions
diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc
index 7e475224..2b60b357 100644
--- a/poppler/SignatureHandler.cc
+++ b/poppler/SignatureHandler.cc
@@ -46,70 +46,6 @@
#include <cms.h>
#include <cmst.h>
-// ASN.1 used in the (much simpler) time stamp request. From RFC3161
-// and other sources.
-
-/*
-AlgorithmIdentifier ::= SEQUENCE {
- algorithm OBJECT IDENTIFIER,
- parameters ANY DEFINED BY algorithm OPTIONAL }
- -- contains a value of the type
- -- registered for use with the
- -- algorithm object identifier value
-
-MessageImprint ::= SEQUENCE {
- hashAlgorithm AlgorithmIdentifier,
- hashedMessage OCTET STRING }
-*/
-
-struct MessageImprint
-{
- SECAlgorithmID hashAlgorithm;
- SECItem hashedMessage;
-};
-
-/*
-Extension ::= SEQUENCE {
- extnID OBJECT IDENTIFIER,
- critical BOOLEAN DEFAULT FALSE,
- extnValue OCTET STRING }
-*/
-
-struct Extension
-{
- SECItem const extnID;
- SECItem const critical;
- SECItem const extnValue;
-};
-
-/*
-Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension
-*/
-
-/*
-TSAPolicyId ::= OBJECT IDENTIFIER
-
-TimeStampReq ::= SEQUENCE {
- version INTEGER { v1(1) },
- messageImprint MessageImprint,
- --a hash algorithm OID and the hash value of the data to be
- --time-stamped
- reqPolicy TSAPolicyId OPTIONAL,
- nonce INTEGER OPTIONAL,
- certReq BOOLEAN DEFAULT FALSE,
- extensions [0] IMPLICIT Extensions OPTIONAL }
-*/
-
-struct TimeStampReq
-{
- SECItem version;
- MessageImprint messageImprint;
- SECItem reqPolicy;
- SECItem nonce;
- SECItem certReq;
- Extension *extensions;
-};
-
/**
* General name, defined by RFC 3280.
*/