From 71e60dbdb404b715532a9e5d70efdff393602470 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 8 Dec 2012 13:06:01 +0000 Subject: Example compile fixes --- doc/examples/asio_tls_server.cpp | 2 +- doc/examples/asn1.cpp | 3 ++- doc/examples/eax_test.cpp | 2 +- doc/x509.rst | 18 ++++++++++++++++-- 4 files changed, 20 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/examples/asio_tls_server.cpp b/doc/examples/asio_tls_server.cpp index d7d49c0e0..3ceadf663 100644 --- a/doc/examples/asio_tls_server.cpp +++ b/doc/examples/asio_tls_server.cpp @@ -167,7 +167,7 @@ class tls_server_session : public boost::enable_shared_from_this #include #include -#include +#include +#include #include #include #include diff --git a/doc/examples/eax_test.cpp b/doc/examples/eax_test.cpp index 763d2f642..228ece286 100644 --- a/doc/examples/eax_test.cpp +++ b/doc/examples/eax_test.cpp @@ -234,7 +234,7 @@ void run_tests(std::istream& in) int main() { - std::ifstream in("eax_vecs.txt") + std::ifstream in("eax_vecs.txt"); Botan::LibraryInitializer init; diff --git a/doc/x509.rst b/doc/x509.rst index be93c604c..48fe5637e 100644 --- a/doc/x509.rst +++ b/doc/x509.rst @@ -11,8 +11,22 @@ signature on the certificate, which is placed there by some authority the certificate really "owns" the private key corresponding to the public key in the certificate. -The major certificate format in use today is X.509v3, designed by ISO -and further hacked on by dozens (hundreds?) of other organizations. +The major certificate format in use today is X.509v3, used for instance +in the :doc:`tls` protocol. A X.509 certificate is represented by + +.. cpp:class:: X509_Certificate + + .. cpp:function:: Public_Key* subject_public_key() const + + Returns the public key of the subject + + .. cpp:function:: X509_DN subject_dn() const + + Returns the distinguished name of the issuer + + .. cpp:function:: X509_DN subject_dn() const + + Returns the distinguished name of the issuer When working with certificates, the main class to remember is ``X509_Certificate``. You can read an object of this type, but you -- cgit v1.2.3