Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lotas authored Jul 7, 2023
1 parent adeb7e7 commit 8a344af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports.calculateServerMac = function (type, credentials, options, payload, cont

if (options.hash) {
if (!payload) {
console.log(`Security Warning: calculateServerMac was called trusting the client payload hash which provides no integrity checking and is insecure`);
console.warn(`Security Warning: calculateServerMac was called trusting the client payload hash which provides no integrity checking and is insecure`);
}
else {
// never trust client provided hash, always calculate server side
Expand All @@ -95,7 +95,7 @@ exports.calculateServerMac = function (type, credentials, options, payload, cont

exports.calculateMac = function (type, credentials, options) {

console.log(`Deprecation Warning: calculateMac() is replaced by either calculateServerMac() or generateRequestMac()`);
console.warn(`Deprecation Warning: calculateMac() is replaced by either calculateServerMac() or generateRequestMac()`);
return exports.generateRequestMac(type, credentials, options);
};

Expand Down

0 comments on commit 8a344af

Please sign in to comment.