/*---------------------------------------------------------------------------* Project: Horizon File: ssl_CrlStore.h Copyright (C)2009 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_SSL_SSL_CRLSTORE_H_ #define NN_SSL_SSL_CRLSTORE_H_ #include #include #ifdef __cplusplus namespace nn { namespace ssl { class Connection; /* Please see man pages for details */ class CrlStore : private nn::util::NonCopyable { friend class Connection; public: /* Please see man pages for details */ explicit CrlStore(); /* Please see man pages for details */ virtual ~CrlStore (void); /* Please see man pages for details */ nn::Result Initialize(void); /* Please see man pages for details */ nn::Result Finalize(void); /* Please see man pages for details */ nn::Result RegisterCrl(const u8* pCrlData, size_t crlDatasize, CrlId* pCrlIdCourier=NULL); /* Please see man pages for details */ nn::Result RegisterCrl(InternalCrl inCrlName, CrlId* pCrlIdCourier=NULL); /* Please see man pages for details */ nn::Result UnRegisterCrl(CrlId certId); #ifdef NDEBUG_ENABLE /* */ CrlStoreId GetId(){return m_crlStoreId;} #endif private: bool m_isInitialized; NN_PADDING3; CrlStoreId m_crlStoreId; /* Please see man pages for details */ bool IsValid(){return m_isInitialized;} }; } // end of namespace ssl } // 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(nnsslCrlStore, nn::ssl::CrlStore, 12, u32); /* Please see man pages for details */ NN_EXTERN_C nnResult nnsslCrlStoreInitialize(nnsslCrlStore* this_); /* Please see man pages for details */ NN_EXTERN_C nnResult nnsslCrlStoreFinalize(nnsslCrlStore* this_); /* Please see man pages for details */ NN_EXTERN_C nnResult nnsslCrlStoreRegisterCrl(nnsslCrlStore* this_, const u8* pCrlData, size_t certDatasize, NnSslCrlId* pCrlIdCourier); /* Please see man pages for details */ NN_EXTERN_C nnResult nnsslCrlStoreRegistByInternalCrl(nnsslCrlStore* this_, NnSslInternalCrl certId); /* Please see man pages for details */ NN_EXTERN_C nnResult nnsslCrlStoreUnRegisterCrl(nnsslCrlStore* this_, NnSslCertId certId); /* */ #endif /* NN_SSL_SSL_CRLSTORE_H_ */