diff options
| author | grunfink <grunfink@comam.es> | 2026-06-01 08:31:48 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-06-01 08:31:48 +0200 |
| commit | 87e87c199bfd4bfeb5e3371e047a96bec8bcb20b (patch) | |
| tree | 6e3214650aa848bd4403d84040b81bbc96a6b6c0 | |
| parent | b0b7dad13ea371ef8db66eb24a38654dd209f1e8 (diff) | |
Use the full end PEM trailer.
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 29a4b66..1357b6e 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1834,7 +1834,7 @@ xs_dict *msg_actor(snac *snac) if (xs_is_string(public_key_pem)) { /* crop any garbage after the PEM */ - const char *pem_trailer = "END PUBLIC KEY-----\n"; + const char *pem_trailer = "\n-----END PUBLIC KEY-----\n"; int i = xs_str_in(public_key_pem, pem_trailer); if (i > 0) public_key_pem[i + strlen(pem_trailer)] = '\0'; |