1 // Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef SERVER_SET_CERT_REQUEST_HANDLER_HH_
6 #define SERVER_SET_CERT_REQUEST_HANDLER_HH_
8 #include "abstract_request_handler.hh"
9 #include "result_parcelable.hh"
13 namespace pkgmgr_server {
14 namespace request_handler {
17 #define EXPORT_API __attribute__((visibility("default")))
20 class EXPORT_API SetCertRequestHandler : public AbstractRequestHandler {
22 SetCertRequestHandler(bool is_offline = false) :
23 AbstractRequestHandler(), is_offline_(is_offline) {}
24 bool HandleRequest(unsigned char* data, size_t size,
25 const std::string& locale) override;
31 } // namespace request_handler
32 } // namespace pkgmgr_server
34 #endif // SERVER_SET_CERT_REQUEST_HANDLER_HH_