diff options
author | lloyd <[email protected]> | 2006-05-19 00:07:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-05-19 00:07:25 +0000 |
commit | f090e030be53e574fecbe7cf50edfb5fdacb53e1 (patch) | |
tree | 0bff0c249a9dbcb674fcd2491ab17e3d123ef1f9 /include/crl_ent.h | |
parent | a0af7b26591f8fb79d1f06fe42548e1eb0c35e90 (diff) |
Syntax changes to the BER and DER APIs to improve readability of code
that uses them. These changes are not backwards compatible, this commit
updates all uses of the APIs within the library.
Diffstat (limited to 'include/crl_ent.h')
-rw-r--r-- | include/crl_ent.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/include/crl_ent.h b/include/crl_ent.h index 660148211..510c4f5a8 100644 --- a/include/crl_ent.h +++ b/include/crl_ent.h @@ -13,9 +13,12 @@ namespace Botan { /************************************************* * CRL Entry * *************************************************/ -class CRL_Entry +class CRL_Entry : public ASN1_Object { public: + void encode_into(class DER_Encoder&) const; + void decode_from(class BER_Decoder&); + MemoryVector<byte> serial; X509_Time time; CRL_Code reason; @@ -30,24 +33,6 @@ bool operator==(const CRL_Entry&, const CRL_Entry&); bool operator!=(const CRL_Entry&, const CRL_Entry&); bool operator<(const CRL_Entry&, const CRL_Entry&); -/************************************************* -* DER Encoding Functions * -*************************************************/ -namespace DER { - -void encode(DER_Encoder&, const CRL_Entry&); - -} - -/************************************************* -* BER Decoding Functions * -*************************************************/ -namespace BER { - -void decode(BER_Decoder&, CRL_Entry&); - -} - } #endif |