Commit 9571cc0b authored by YannGarcia's avatar YannGarcia
Browse files

Bug fixed in ccsrc/Protocols/Security/certificates_loader.cc; Update AtsMBR upper tester codec

parent 4f3ce5b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ int certificates_loader::load_certificate(const OCTETSTRING& p_hashed_id8, const
  etsi_ts103097_certificate_codec codec;
  Ieee1609Dot2::CertificateBase   decoded_certificate;
  codec.decode(certificate, decoded_certificate);
  if (!decoded_certificate.is_value()) {
  if (!decoded_certificate.is_bound()) {
    loggers::get_instance().warning("certificates_loader::build_certificates_cache: Failed to decode certificate for '%s'", key.c_str());
    return -1;
  } else {
+1 −0
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ int security_cache::get_hashed_id(const std::string &p_certificate_id, OCTETSTRI

  p_hashed_id = it->second;

  loggers::get_instance().log_msg("<<< security_cache::get_hashed_id: ", p_hashed_id);
  return 0;
}

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ class uppertester_mbr_layer_factory : public layer_factory {
public:
  uppertester_mbr_layer_factory() {
    // Register factory
    layer_stack_builder::register_layer_factory("UT_PKI", this);
    layer_stack_builder::register_layer_factory("UT_MBR", this);
  };
  inline virtual layer *create_layer(const std::string &p_type, const std::string &p_param) { return new uppertester_mbr_layer(p_type, p_param); };
}; // End of class uppertester_mbr_layer_factory