aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/implementation/socket_producer.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-02-27 15:22:51 +0100
committerMauro Sardara <msardara@cisco.com>2020-02-27 15:22:51 +0100
commit3c532dd5e1844e0f094e2ae7555b1f65a2fd106f (patch)
tree999c31ee428c7686acfb4c7fbc4d28a1a5aa141f /libtransport/src/implementation/socket_producer.h
parentbd8380012c308a79861e2e52919e9ff6326d45dc (diff)
[HICN-538] Use type utils::CryptoHashtype instead of HashAlgorithm everywhere
Change-Id: Iddbc427611c888b28059170a70c0925ebb299cb5 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/implementation/socket_producer.h')
-rw-r--r--libtransport/src/implementation/socket_producer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libtransport/src/implementation/socket_producer.h b/libtransport/src/implementation/socket_producer.h
index 1f03fe53d..54fca4fdf 100644
--- a/libtransport/src/implementation/socket_producer.h
+++ b/libtransport/src/implementation/socket_producer.h
@@ -53,7 +53,7 @@ class ProducerSocket : public Socket<BasePortal>,
async_thread_(),
registration_status_(REGISTRATION_NOT_ATTEMPTED),
making_manifest_(false),
- hash_algorithm_(HashAlgorithm::SHA_256),
+ hash_algorithm_(utils::CryptoHashType::SHA_256),
suffix_strategy_(core::NextSegmentCalculationStrategy::INCREMENTAL),
on_interest_input_(VOID_HANDLER),
on_interest_dropped_input_buffer_(VOID_HANDLER),
@@ -108,7 +108,7 @@ class ProducerSocket : public Socket<BasePortal>,
// during the production
std::size_t data_packet_size = data_packet_size_;
uint32_t content_object_expiry_time = content_object_expiry_time_;
- HashAlgorithm hash_algo = hash_algorithm_;
+ utils::CryptoHashType hash_algo = hash_algorithm_;
bool making_manifest = making_manifest_;
auto suffix_strategy = utils::SuffixStrategyFactory::getSuffixStrategy(
suffix_strategy_, start_offset);
@@ -648,7 +648,7 @@ class ProducerSocket : public Socket<BasePortal>,
}
virtual int setSocketOption(int socket_option_key,
- HashAlgorithm socket_option_value) {
+ utils::CryptoHashType socket_option_value) {
switch (socket_option_key) {
case GeneralTransportOptions::HASH_ALGORITHM:
hash_algorithm_ = socket_option_value;
@@ -848,7 +848,7 @@ class ProducerSocket : public Socket<BasePortal>,
}
virtual int getSocketOption(int socket_option_key,
- HashAlgorithm &socket_option_value) {
+ utils::CryptoHashType &socket_option_value) {
switch (socket_option_key) {
case GeneralTransportOptions::HASH_ALGORITHM:
socket_option_value = hash_algorithm_;
@@ -983,7 +983,7 @@ class ProducerSocket : public Socket<BasePortal>,
// function
std::unordered_map<Name, std::unordered_map<int, uint32_t>> seq_number_map_;
- std::atomic<HashAlgorithm> hash_algorithm_;
+ std::atomic<utils::CryptoHashType> hash_algorithm_;
std::atomic<utils::CryptoSuite> crypto_suite_;
utils::SpinLock signer_lock_;
std::shared_ptr<utils::Signer> signer_;