/*---------------------------------------------------------------------------* Project: Horizon File: http_ClientCert.h Copyright (C)2010 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 38552 $ *---------------------------------------------------------------------------*/ #ifndef NN_HTTP_HTTP_CLIENTCERT_H_ #define NN_HTTP_HTTP_CLIENTCERT_H_ #include #include #ifdef __cplusplus namespace nn { namespace http { class Connection; /* Please see man pages for details */ class ClientCert : private nn::util::NonCopyable { friend class Connection; public: /* Please see man pages for details */ explicit ClientCert(); /* Please see man pages for details */ virtual ~ClientCert (void); /* Please see man pages for details */ nn::Result Initialize(const u8* pCertData, size_t certDataSize, const u8* pPrivateKeyData, size_t privateKeyDataSize); /* Please see man pages for details */ nn::Result Initialize(InternalClientCertId inClientCertName ); /* Please see man pages for details */ nn::Result Finalize(void); private: bool m_isInitialized; NN_PADDING3; CertId m_certId; /* Please see man pages for details */ bool IsValid(){return m_isInitialized;} }; } // end of namespace http } // end of namespace nn #endif // __cplusplus #include /* Please see man pages for details */ /* Please see man pages for details */ NN_UTIL_DETAIL_CLIBIMPL_DEFINE_BUFFER_CLASS(nnhttpClientCert, nn::http::ClientCert, 12, u32); /* Please see man pages for details */ NN_EXTERN_C nnResult nnhttpClientCertInitialize(nnhttpClientCert* this_, const u8* pCertData, size_t certDataSize, const u8* pPrivateKeyData, size_t privateKeyDataSize); /* Please see man pages for details */ NN_EXTERN_C nnResult nnhttpClientCertInitializeByInternalCert(nnhttpClientCert* this_, NnHttpInternalClientCertId inClientCertName); /* Please see man pages for details */ NN_EXTERN_C nnResult nnhttpClientCertFinalize(nnhttpClientCert* this_); /* */ #endif /* NN_HTTP_HTTP_CLIENTCERT_H_ */