Commit 0a435387 authored by YannGarcia's avatar YannGarcia
Browse files

Fix TODO in security_services::process_ieee_1609_dot2_signed_data

parent 20f94091
Loading
Loading
Loading
Loading
+8
Changes for ccsrc/Externals/LibItsSecurity_externals.cc: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -163,6 +163,10 @@ namespace LibItsSecurity__Functions {
   */
  OCTETSTRING fx__signWithEcdsaBrainpoolp256r1WithSha256(const OCTETSTRING &p__toBeSignedSecuredMessage, const OCTETSTRING &p__certificateIssuer,
                                                         const OCTETSTRING &p__privateKey) {
    loggers::get_instance().log_msg(">>> fx__signWithEcdsaBrainpoolp256r1WithSha256: data=", p__toBeSignedSecuredMessage);
    loggers::get_instance().log_msg(">>> fx__signWithEcdsaBrainpoolp256r1WithSha256: issuer=", p__certificateIssuer);
    loggers::get_instance().log_msg(">>> fx__signWithEcdsaBrainpoolp256r1WithSha256: private key=", p__privateKey);

    // Sanity checks
    if ((p__certificateIssuer.lengthof() != 32) || (p__privateKey.lengthof() != 32)) {
      loggers::get_instance().log("fx__signWithEcdsaBrainpoolp256r1WithSha256: Wrong parameters");
@@ -210,6 +214,10 @@ namespace LibItsSecurity__Functions {
   */
  OCTETSTRING fx__signWithEcdsaBrainpoolp384r1WithSha384(const OCTETSTRING &p__toBeSignedSecuredMessage, const OCTETSTRING &p__certificateIssuer,
                                                         const OCTETSTRING &p__privateKey) {
    loggers::get_instance().log_msg(">>> fx__signWithEcdsaBrainpoolp384r1WithSha384: data=", p__toBeSignedSecuredMessage);
    loggers::get_instance().log_msg(">>> fx__signWithEcdsaBrainpoolp384r1WithSha384: issuer=", p__certificateIssuer);
    loggers::get_instance().log_msg(">>> fx__signWithEcdsaBrainpoolp384r1WithSha384: private key=", p__privateKey);

    // Sanity checks
    if ((p__certificateIssuer.lengthof() != 48) || (p__privateKey.lengthof() != 48)) {
      loggers::get_instance().log("fx__signWithEcdsaBrainpoolp384r1WithSha384: Wrong parameters");
+3 −1
Changes for ccsrc/Protocols/Security/security_services.cc: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -219,7 +219,9 @@ int security_services::process_ieee_1609_dot2_signed_data(const Ieee1609Dot2::Si

  // Check requested certificate
  if (header_info.requestedCertificate().is_present()) {
    loggers::get_instance().error("security_services::process_ieee_1609_dot2_signed_data: requestedCertificate not supported yet");
    Ieee1609Dot2::CertificateBase requested_cert = header_info.requestedCertificate();
    loggers::get_instance().log_msg("security_services::process_ieee_1609_dot2_signed_data: ", requested_cert);
    //loggers::get_instance().error("security_services::process_ieee_1609_dot2_signed_data: requestedCertificate not supported yet");
    // TODO Not supported by C-ITS Protocol
  }

−252

File deleted.

+1
Changes for etc/AtsPki/AtsPki.cfg: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
AtsPki_Atos.cfg_
 No newline at end of file
+64 −12

File changed.

Preview size limit exceeded, changes collapsed.

Loading