dirmngr: Add a CSRF expection for pm.me
authorWerner Koch <wk@gnupg.org>
Thu, 9 May 2019 12:49:59 +0000 (14:49 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Aug 2019 19:11:59 +0000 (20:11 +0100)
--

Also comment typo fix.

(cherry picked from commit 7c4029110ab45d02e746ddcc13a87952ca0099f5)

Gbp-Pq: Topic from-2.2.16
Gbp-Pq: Name dirmngr-Add-a-CSRF-expection-for-pm.me.patch

agent/command.c
dirmngr/http.c

index 41fb3942086e0aeeb43b66097396fb5dd0d825d8..cf8a2e47f6036252424948b0164461634975b2b6 100644 (file)
@@ -1231,8 +1231,8 @@ do_one_keyinfo (ctrl_t ctrl, const unsigned char *grip, assuan_context_t ctx,
 }
 
 
-/* Entry int for the command KEYINFO.  This function handles the
  command option processing.  For details see hlp_keyinfo above.  */
+/* Entry into the command KEYINFO.  This function handles the
* command option processing.  For details see hlp_keyinfo above.  */
 static gpg_error_t
 cmd_keyinfo (assuan_context_t ctx, char *line)
 {
index 7fdd06a2ab45ae23907ab8c3ca3cef7da8814daa..384f2569d77f69635476113d440154af3a3d101c 100644 (file)
@@ -3530,7 +3530,8 @@ same_host_p (parsed_uri_t a, parsed_uri_t b)
     { "protonmail.com", "api.protonmail.com" },
     { NULL,             "api.protonmail.ch"  },
     { "protonmail.ch",  "api.protonmail.com" },
-    { NULL,             "api.protonmail.ch"  }
+    { NULL,             "api.protonmail.ch"  },
+    { "pm.me",          "api.protonmail.ch"  }
   };
   int i;
   const char *from;