From 711f1a3c266c9ff42e85553a96f36d744670630c Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 18 Nov 2002 23:54:27 +0000 Subject: Add the ASN.1 structures and functions for CertificatePair, which is defined as follows (according to X.509_4thEditionDraftV6.pdf): CertificatePair ::= SEQUENCE { forward [0] Certificate OPTIONAL, reverse [1] Certificate OPTIONAL, -- at least one of the pair shall be present -- } The only thing I'm not sure about is if it's implicit or explicit tags that I should count on. For now, I'm thinking explicit, but will gladly stand corrected. Also implement the PEM functions to read and write certificate pairs, and defined the PEM tag as "CERTIFICATE PAIR". This needed to be defined, mostly for the sake of the LDAP attribute crossCertificatePair, but may prove useful elsewhere as well. --- crypto/pem/pem_xaux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/pem/pem_xaux.c') diff --git a/crypto/pem/pem_xaux.c b/crypto/pem/pem_xaux.c index 2f579b5421..63ce660cf1 100644 --- a/crypto/pem/pem_xaux.c +++ b/crypto/pem/pem_xaux.c @@ -66,3 +66,4 @@ #include IMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX) +IMPLEMENT_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR, PEM_STRING_X509_PAIR, X509_CERT_PAIR) -- cgit v1.2.3