Commit cab6e9e7 authored by garciay's avatar garciay
Browse files

Bug fixed in security_cache::fill_vector

parent 03e73473
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -463,6 +463,7 @@ int certificates_loader::save_certificate(const security_db_record& p_certificat
  }
  loggers::get_instance().log("certificates_loader::save_certificate: Private key file: '%s'", p.string().c_str());
  os.open(p.string(), ios::out | ios::binary);
  loggers::get_instance().log_msg("certificates_loader::save_certificate: Private key content: ", p_certificate.private_key());
  os.write((char *)static_cast<const unsigned char*>(p_certificate.private_key()), p_certificate.private_key().lengthof());
  os.close();
  std::experimental::filesystem::permissions(p, std::experimental::filesystem::perms::add_perms | std::experimental::filesystem::perms::owner_all | std::experimental::filesystem::perms::group_all | std::experimental::filesystem::perms::others_all);
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ int security_cache::get_public_enc_comp_key(const std::string& p_certificate_id,
}

bool security_cache::fill_vector(OCTETSTRING& p_vector, const OCTETSTRING& p_org) {
  if (p_vector.is_bound()) {
  if (p_org.is_bound()) {
    p_vector = p_org;
    return true;
  }
+1 −1

File changed.

Contains only whitespace changes.