Skip to content

Commit

Permalink
Put some debug info in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Jun 7, 2019
1 parent 3112cf3 commit f60ccd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions core/src/crypto/security_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl FromStr for SecurityPolicy {
constants::SECURITY_POLICY_BASIC_256 | constants::SECURITY_POLICY_BASIC_256_URI => SecurityPolicy::Basic256,
constants::SECURITY_POLICY_BASIC_256_SHA_256 | constants::SECURITY_POLICY_BASIC_256_SHA_256_URI => SecurityPolicy::Basic256Sha256,
_ => {
error!("Specified security policy {} is not recognized", s);
error!("Specified security policy \"{}\" is not recognized", s);
SecurityPolicy::Unknown
}
})
Expand Down Expand Up @@ -357,7 +357,7 @@ impl SecurityPolicy {
constants::SECURITY_POLICY_BASIC_256_URI => SecurityPolicy::Basic256,
constants::SECURITY_POLICY_BASIC_256_SHA_256_URI => SecurityPolicy::Basic256Sha256,
_ => {
error!("Specified security policy {} is not recognized", uri);
error!("Specified security policy uri \"{}\" is not recognized", uri);
SecurityPolicy::Unknown
}
}
Expand Down Expand Up @@ -475,7 +475,6 @@ impl SecurityPolicy {
self.asymmetric_sign(&their_key, data, their_signature.as_mut_slice())?;
trace!("Using their_key, signature should be {:?}", &their_signature);
}

Err(StatusCode::BadSecurityChecksFailed)
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/src/data_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<'a> From<&'a str> for MessageSecurityMode {
MESSAGE_SECURITY_MODE_SIGN => MessageSecurityMode::Sign,
MESSAGE_SECURITY_MODE_SIGN_AND_ENCRYPT => MessageSecurityMode::SignAndEncrypt,
_ => {
error!("Specified security mode {} is not recognized", str);
error!("Specified security mode \"{}\" is not recognized", str);
MessageSecurityMode::Invalid
}
}
Expand Down

0 comments on commit f60ccd8

Please sign in to comment.