diff options
Diffstat (limited to '')
-rw-r--r-- | src/net/tls/certificateChain.cpp (renamed from vmime/net/authHelper.hpp) | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/vmime/net/authHelper.hpp b/src/net/tls/certificateChain.cpp index 54487fbe..52855cc2 100644 --- a/vmime/net/authHelper.hpp +++ b/src/net/tls/certificateChain.cpp @@ -21,22 +21,33 @@ // the GNU General Public License cover the whole combination. // -#ifndef VMIME_NET_AUTHHELPER_HPP_INCLUDED -#define VMIME_NET_AUTHHELPER_HPP_INCLUDED - - -#include "vmime/types.hpp" +#include "vmime/net/tls/certificateChain.hpp" namespace vmime { namespace net { +namespace tls { + + +certificateChain::certificateChain(const std::vector <ref <certificate> >& certs) + : m_certs(certs) +{ +} -void hmac_md5(const string& text, const string& key, string& hexDigest); +const unsigned int certificateChain::getCount() const +{ + return static_cast <unsigned int>(m_certs.size()); +} +ref <certificate> certificateChain::getAt(const unsigned int index) +{ + return m_certs[index]; +} + + +} // tls } // net } // vmime - -#endif // VMIME_NET_AUTHHELPER_HPP_INCLUDED |