summaryrefslogtreecommitdiff
path: root/lib/pkix.asn
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-10-23 19:16:16 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-10-23 19:16:16 +0000
commit98303f5328dce05ca179aaa05a5c09e40e69189d (patch)
tree7b05613599f744803567f3a7e67da5c66c0e206b /lib/pkix.asn
parent0b63f1a2b945ddf1d64cadc422af031f1509cc96 (diff)
downloadgnutls-98303f5328dce05ca179aaa05a5c09e40e69189d.tar.gz
Added some support for writable gnutls_x509_crt structures. Not ready yet.
Diffstat (limited to 'lib/pkix.asn')
-rw-r--r--lib/pkix.asn21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/pkix.asn b/lib/pkix.asn
index aa9ac0ec1e..9902e781d6 100644
--- a/lib/pkix.asn
+++ b/lib/pkix.asn
@@ -539,6 +539,27 @@ TBSCertificate ::= SEQUENCE {
-- If present, version shall be v3 --
}
+Certificate_write ::= SEQUENCE {
+ tbsCertificate TBSCertificate_write,
+ signatureAlgorithm AlgorithmIdentifier,
+ signature BIT STRING }
+
+TBSCertificate_write ::= SEQUENCE {
+ version [0] EXPLICIT Version DEFAULT v1,
+ serialNumber CertificateSerialNumber,
+ signature AlgorithmIdentifier,
+ issuer ANY,
+ validity Validity,
+ subject ANY,
+ subjectPublicKeyInfo SubjectPublicKeyInfo,
+ issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
+ -- If present, version shall be v2 or v3
+ subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
+ -- If present, version shall be v2 or v3
+ extensions [3] EXPLICIT Extensions OPTIONAL
+ -- If present, version shall be v3 --
+}
+
Version ::= INTEGER { v1(0), v2(1), v3(2) }
CertificateSerialNumber ::= INTEGER