transport: add a protocol-whitelist environment variable
[gitweb.git] / transport.h
index 3e0091eaabe406759005bc24ce2ff39144caa72d..f7df6ec1d2a1f17e9932e531110cc3fe4bdbb81c 100644 (file)
@@ -132,6 +132,13 @@ struct transport {
 /* Returns a transport suitable for the url */
 struct transport *transport_get(struct remote *, const char *);
 
+/*
+ * Check whether a transport is allowed by the environment,
+ * and die otherwise. type should generally be the URL scheme,
+ * as described in Documentation/git.txt
+ */
+void transport_check_allowed(const char *type);
+
 /* Transport options which apply to git:// and scp-style URLs */
 
 /* The program to use on the remote side to send a pack */