diff options
author | lloyd <[email protected]> | 2012-05-27 14:29:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-05-27 14:29:59 +0000 |
commit | a674eec6aac733ef2cf10d3cf4840c2ec9d9ebc1 (patch) | |
tree | 4a3c443aafebb96f9619980aa5a40b5defb868c9 /src/cert/ocsp/ocsp.h | |
parent | d881dedf81b97caa05740773587f865b1546dc67 (diff) |
Very preliminary and fairly nasty OCSP support. Client side only. Can
generate requests and parse replies, does not verify signatures or so
most anything else useful yet.
Diffstat (limited to 'src/cert/ocsp/ocsp.h')
-rw-r--r-- | src/cert/ocsp/ocsp.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/cert/ocsp/ocsp.h b/src/cert/ocsp/ocsp.h new file mode 100644 index 000000000..a93b77f5a --- /dev/null +++ b/src/cert/ocsp/ocsp.h @@ -0,0 +1,43 @@ +/* +* OCSP +* (C) 2012 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#ifndef BOTAN_OCSP_H__ +#define BOTAN_OCSP_H__ + +#include <botan/ocsp_types.h> + +namespace Botan { + +namespace OCSP { + +class BOTAN_DLL Request + { + public: + Request(const X509_Certificate& issuer_cert, + const X509_Certificate& subject_cert) : + m_issuer(issuer_cert), + m_subject(subject_cert) + {} + + std::vector<byte> BER_encode() const; + + std::string base64_encode() const; + private: + X509_Certificate m_issuer, m_subject; + }; + +class BOTAN_DLL Response + { + public: + Response(const std::vector<byte>& response); + }; + +} + +} + +#endif |