From aa0b566aa76b0105e256bbf788ce7a71ea1f60e3 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 23 Jun 2006 06:53:56 +0000 Subject: Use accessor functions for CRL_Entry, instead of having public data --- include/crl_ent.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/crl_ent.h b/include/crl_ent.h index 510c4f5a8..9d9163172 100644 --- a/include/crl_ent.h +++ b/include/crl_ent.h @@ -19,11 +19,17 @@ class CRL_Entry : public ASN1_Object void encode_into(class DER_Encoder&) const; void decode_from(class BER_Decoder&); + MemoryVector serial_number() const { return serial; } + X509_Time expire_time() const { return time; } + CRL_Code reason_code() const { return reason; } + + CRL_Entry(); + CRL_Entry(const X509_Certificate&, CRL_Code = UNSPECIFIED); + + private: MemoryVector serial; X509_Time time; CRL_Code reason; - CRL_Entry(); - CRL_Entry(const X509_Certificate&, CRL_Code = UNSPECIFIED); }; /************************************************* -- cgit v1.2.3