Destructor in a class 'dcm_client_connection' should be public and virtual or protected and nonvirtual
Unreachable code detected after 'switch' statement
Change-Id: I6fe82c3bb231691b693e13f964c8ddc34cf26a78
/******************************************************************
*
- * Copyright 2017 Samsung Electronics All Rights Reserved.
+ * Copyright 2017 - 2018 Samsung Electronics All Rights Reserved.
*
* Author: Jaroslaw Pelczar <j.pelczar@samsung.com>
*
#define DCM_CLIENT_DCM_CLIENT_H_
#include "device_certificate_manager_export.h"
+
+#include <mbedtls/md.h>
+
#include <memory>
#include <vector>
-#include <mbedtls/md.h>
class API_DEVICE_CERTIFICATE_MANAGER_EXPORT dcm_client_connection :
public std::enable_shared_from_this<dcm_client_connection>
protected:
dcm_client_connection() API_DEVICE_CERTIFICATE_MANAGER_NO_EXPORT;
- virtual ~dcm_client_connection() API_DEVICE_CERTIFICATE_MANAGER_NO_EXPORT;
+ ~dcm_client_connection() API_DEVICE_CERTIFICATE_MANAGER_NO_EXPORT;
public:
/*!
}
message AssociateKeyContext
-{
+{
required string service = 1;
required string usage = 2;
required string key_type = 3;
{
required int32 result = 1;
optional uint64 context_cookie = 2;
- optional CryptoKeyType key_type = 3;
+ optional CryptoKeyType key_type = 3;
optional uint32 key_length = 4;
}
message RequestCertificateChainResponse
{
required int32 result = 1;
- optional bytes cert_chain = 2;
+ optional bytes cert_chain = 2;
}
message SignRequest
*
******************************************************************/
+#include "device_certificate_manager_export.h"
#include "device_certificate_manager.h"
#include "dcm_client.h"
+
#include <mbedtls/pk_internal.h>
#include <mbedtls/md.h>
+
#include <vector>
#include <cstring>
#include <dlog.h>
#endif
-#define API_DEVICE_CERTIFICATE_MANAGER_EXPORT __attribute__((visibility("default")))
-
static mbedtls_md_type_t to_mbedtls_md_type(dcm_digest_algorithm_e md)
{
switch(md) {
return MBEDTLS_MD_RIPEMD160;
default:
return MBEDTLS_MD_NONE;
- };
+ }
}
struct dcm_key_context_internal {