commit 87e87c1
grunfink
·
2026-06-01 06:31:48 +0000 UTC
parent b0b7dad
Use the full end PEM trailer.
1 files changed,
+1,
-1
+1,
-1
1@@ -1834,7 +1834,7 @@ xs_dict *msg_actor(snac *snac)
2
3 if (xs_is_string(public_key_pem)) {
4 /* crop any garbage after the PEM */
5- const char *pem_trailer = "END PUBLIC KEY-----\n";
6+ const char *pem_trailer = "\n-----END PUBLIC KEY-----\n";
7 int i = xs_str_in(public_key_pem, pem_trailer);
8 if (i > 0)
9 public_key_pem[i + strlen(pem_trailer)] = '\0';