Browse Source

Use the full end PEM trailer.

grunfink 3 tháng trước cách đây
mục cha
commit
87e87c199b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      activitypub.c

+ 1 - 1
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';