Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
Changed hashing function to use the resource returned from open_ssl_g…
Browse files Browse the repository at this point in the history
…et_privatekey() instead of string version of key
  • Loading branch information
jamesggordon committed Jun 12, 2014
1 parent 41a2d62 commit fa0ad84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/Swift/Signers/DKIMSigner.php
Expand Up @@ -682,7 +682,7 @@ private function _getEncryptedHash()
if (!$pkeyId) {
throw new Swift_SwiftException('Unable to load DKIM Private Key ['.openssl_error_string().']');
}
if (openssl_sign($this->_headerCanonData, $signature, $this->_privateKey, $algorithm)) {
if (openssl_sign($this->_headerCanonData, $signature, $pkeyId, $algorithm)) {
return $signature;
}
throw new Swift_SwiftException('Unable to sign DKIM Hash ['.openssl_error_string().']');
Expand Down

0 comments on commit fa0ad84

Please sign in to comment.