Project

General

Profile

Bug #4960

Use of deprecated HmacFilter

Added by Davide Pesavento about 2 months ago. Updated 2 days ago.

Status:
Closed
Priority:
Normal
Start date:
Due date:
% Done:

100%

Estimated time:

Description

../src/crypto-support/crypto-helper.cpp: In function ‘int ndn::ndncert::ndn_compute_hmac_sha256(const uint8_t*, unsigned int, const uint8_t*, unsigned int, uint8_t*)’:
../src/crypto-support/crypto-helper.cpp:194:26: warning: ‘std::unique_ptr<ndn::security::transform::Transform> ndn::security::transform::hmacFilter(ndn::DigestAlgorithm, const uint8_t*, size_t)’ is deprecated: use signerFilter and verifierFilter [-Wdeprecated-declarations]
     security::transform::hmacFilter(
                          ^~~~~~~~~~
In file included from ../src/crypto-support/crypto-helper.cpp:34:
/usr/local/include/ndn-cxx/security/transform/hmac-filter.hpp:70:1: note: declared here
 hmacFilter(DigestAlgorithm algo, const uint8_t* key, size_t keyLen);
 ^~~~~~~~~~
../src/crypto-support/crypto-helper.cpp:195:77: warning: ‘std::unique_ptr<ndn::security::transform::Transform> ndn::security::transform::hmacFilter(ndn::DigestAlgorithm, const uint8_t*, size_t)’ is deprecated: use signerFilter and verifierFilter [-Wdeprecated-declarations]
                                     DigestAlgorithm::SHA256, key, key_length) >>
                                                                             ^
In file included from ../src/crypto-support/crypto-helper.cpp:34:
/usr/local/include/ndn-cxx/security/transform/hmac-filter.hpp:70:1: note: declared here
 hmacFilter(DigestAlgorithm algo, const uint8_t* key, size_t keyLen);
 ^~~~~~~~~~
../src/crypto-support/crypto-helper.cpp:195:77: warning: ‘std::unique_ptr<ndn::security::transform::Transform> ndn::security::transform::hmacFilter(ndn::DigestAlgorithm, const uint8_t*, size_t)’ is deprecated: use signerFilter and verifierFilter [-Wdeprecated-declarations]
                                     DigestAlgorithm::SHA256, key, key_length) >>
                                                                             ^
In file included from ../src/crypto-support/crypto-helper.cpp:34:
/usr/local/include/ndn-cxx/security/transform/hmac-filter.hpp:70:1: note: declared here
 hmacFilter(DigestAlgorithm algo, const uint8_t* key, size_t keyLen);
 ^~~~~~~~~~
../src/crypto-support/crypto-helper.cpp: In function ‘int ndn::ndncert::hkdf(const uint8_t*, int, const uint8_t*, int, uint8_t*, int, const uint8_t*, int)’:
../src/crypto-support/crypto-helper.cpp:224:36: warning: ‘std::unique_ptr<ndn::security::transform::Transform> ndn::security::transform::hmacFilter(ndn::DigestAlgorithm, const uint8_t*, size_t)’ is deprecated: use signerFilter and verifierFilter [-Wdeprecated-declarations]
     source >> security::transform::hmacFilter(DigestAlgorithm::SHA256, prk, dig_len)
                                    ^~~~~~~~~~
In file included from ../src/crypto-support/crypto-helper.cpp:34:
/usr/local/include/ndn-cxx/security/transform/hmac-filter.hpp:70:1: note: declared here
 hmacFilter(DigestAlgorithm algo, const uint8_t* key, size_t keyLen);
 ^~~~~~~~~~
../src/crypto-support/crypto-helper.cpp:224:84: warning: ‘std::unique_ptr<ndn::security::transform::Transform> ndn::security::transform::hmacFilter(ndn::DigestAlgorithm, const uint8_t*, size_t)’ is deprecated: use signerFilter and verifierFilter [-Wdeprecated-declarations]
     source >> security::transform::hmacFilter(DigestAlgorithm::SHA256, prk, dig_len)
                                                                                    ^
In file included from ../src/crypto-support/crypto-helper.cpp:34:
/usr/local/include/ndn-cxx/security/transform/hmac-filter.hpp:70:1: note: declared here
 hmacFilter(DigestAlgorithm algo, const uint8_t* key, size_t keyLen);
 ^~~~~~~~~~
../src/crypto-support/crypto-helper.cpp:224:84: warning: ‘std::unique_ptr<ndn::security::transform::Transform> ndn::security::transform::hmacFilter(ndn::DigestAlgorithm, const uint8_t*, size_t)’ is deprecated: use signerFilter and verifierFilter [-Wdeprecated-declarations]
     source >> security::transform::hmacFilter(DigestAlgorithm::SHA256, prk, dig_len)
                                                                                    ^
In file included from ../src/crypto-support/crypto-helper.cpp:34:
/usr/local/include/ndn-cxx/security/transform/hmac-filter.hpp:70:1: note: declared here
 hmacFilter(DigestAlgorithm algo, const uint8_t* key, size_t keyLen);
 ^~~~~~~~~~

History

#1 Updated by Davide Pesavento 11 days ago

  • Status changed from New to Code review
  • Assignee changed from Zhiyi Zhang to Davide Pesavento
  • % Done changed from 0 to 100

#2 Updated by Davide Pesavento 2 days ago

  • Status changed from Code review to Closed

Also available in: Atom PDF