Skip to content

Commit c864284

Browse files
committed
-
1 parent 53706e1 commit c864284

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Mime/Crypto/DkimSigner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ public function sign(Message $message, array $options = []): Message
117117
$value = trim($value);
118118
$header = new UnstructuredHeader('DKIM-Signature', $value);
119119
$headerCanonData .= rtrim($this->canonicalizeHeader($header->toString()."\r\n b=", $options['header_canon']));
120+
print ">>>".str_replace("\r", "^", str_replace("\n", "¤", $headerCanonData))."<<<\n";
120121
if (self::ALGO_SHA256 === $options['algorithm']) {
121122
if (!openssl_sign($headerCanonData, $signature, $this->key, OPENSSL_ALGO_SHA256)) {
122123
throw new RuntimeException('Unable to sign DKIM hash: '.openssl_error_string());
123124
}
124125
} else {
125126
throw new \RuntimeException(sprintf('The "%s" DKIM signing algorithm is not supported yet.', self::ALGO_ED25519));
126127
}
128+
print ">>>".base64_encode($signature)."<<<\n";
127129
$header->setValue($value.' b='.trim(chunk_split(base64_encode($signature), 73, ' ')));
128130
$headers->add($header);
129131

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy