Blob


1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
2 .\"
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
6 .\"
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .Dd $Mdocdate: July 29 2021$
15 .Dt GMID 1
16 .Os
17 .Sh NAME
18 .Nm gmid
19 .Nd simple and secure Gemini server
20 .Sh SYNOPSIS
21 .Nm
22 .Bk -words
23 .Op Fl fnv
24 .Op Fl c Ar config
25 .Op Fl D Ar macro Ns = Ns Ar value
26 .Op Fl P Ar pidfile
27 .Ek
28 .Nm
29 .Bk -words
30 .Op Fl 6hVv
31 .Op Fl d Pa certs-dir
32 .Op Fl H Ar hostname
33 .Op Fl p Ar port
34 .Op Fl x Pa cgi
35 .Op Pa dir
36 .Ek
37 .Sh DESCRIPTION
38 .Nm
39 is a simple and minimal gemini server that can serve static files,
40 execute CGI scripts and talk to FastCGI applications.
41 It can run without a configuration file with a limited set of features
42 available.
43 .Pp
44 .Nm
45 rereads the configuration file when it receives
46 .Dv SIGHUP .
47 .Pp
48 The options are as follows:
49 .Bl -tag -width 14m
50 .It Fl c Pa config
51 Specify the configuration file.
52 .It Fl D Ar macro Ns = Ns Ar value
53 Define
54 .Ar macro
55 to be set to
56 .Ar value
57 on the command line.
58 Overrides the definition of
59 .Ar macro
60 in the config file if present.
61 .It Fl f
62 Stays and logs on the foreground.
63 .It Fl n
64 Check that the configuration is valid, but don't start the server.
65 If specified two or more time, dump the configuration in addition to
66 verify it.
67 .It Fl P Pa pidfile
68 Write daemon's pid to the given location.
69 .Ar pidfile
70 will also act as lock: if another process is holding a lock on that
71 file,
72 .Nm
73 will refuse to start.
74 .El
75 .Pp
76 If no configuration file is given,
77 .Nm
78 runs in
79 .Dq config-less mode
80 .Pq i.e. runs in the foreground to serve a directory from the shell
81 and looks for the following options
82 .Bl -tag -width 14m
83 .It Fl 6
84 Enable IPv6.
85 .It Fl d Pa certs-path
86 Directory where certificates for the config-less mode are stored.
87 By default it is
88 .Pa $XDG_DATA_HOME/gmid ,
89 i.e.
90 .Pa ~/.local/share/gmid .
91 .It Fl H Ar hostname
92 The hostname
93 .Po
94 .Ar localhost
95 by default
96 .Pc .
97 Certificates for the given
98 .Ar hostname
99 are searched inside the
100 .Pa certs-dir
101 directory given with the
102 .Fl d
103 option.
104 They have the form
105 .Pa hostname.cert.pem
106 and
107 .Pa hostname.key.pem .
108 If a certificate or a key doesn't exist for a given hostname, they
109 will be generated automatically.
110 .It Fl h , Fl -help
111 Print the usage and exit.
112 .It Fl p Ar port
113 The port to listen on, by default 1965.
114 .It Fl V , Fl -version
115 Print the version and exit.
116 .It Fl v
117 Verbose mode.
118 Multiple
119 .Fl v
120 options increase the verbosity.
121 .It Fl x Pa path
122 Enable execution of
123 .Sx CGI
124 scripts.
125 See the description of the
126 .Ic cgi
127 option in the
128 .Sq Servers
129 section below to learn how
130 .Pa path
131 is processed.
132 Cannot be provided more than once.
133 .It Pa dir
134 The root directory to serve.
135 By default the current working directory is assumed.
136 .El
137 .Sh CONFIGURATION FILE
138 The configuration file is divided into three sections:
139 .Bl -tag -width xxxx
140 .It Sy Macros
141 User-defined variables may be defined and used later, simplifying the
142 configuration file.
143 .It Sy Global Options
144 Global settings for
145 .Nm .
146 .It Sy Servers
147 Virtual hosts definition.
148 .El
149 .Pp
150 Within the sections, empty lines are ignored and comments can be put
151 anywhere in the file using a hash mark
152 .Pq Sq # ,
153 and extend to the end of the current line.
154 A boolean is either the symbol
155 .Sq on
156 or
157 .Sq off .
158 A string is a sequence of characters wrapped in double quotes,
159 .Dq like this .
160 Multiple strings one next to the other are joined into a single
161 string:
162 .Bd -literal -offset indent
163 # equivalent to "temporary-failure"
164 block return 40 "temporary" "-" "failure"
165 .Ed
166 .Pp
167 Furthermore, quoting is necessary only when a string needs to contain
168 special characters
169 .Pq like spaces or punctuation ,
170 something that looks like a number or a reserved keyword.
171 The last example could have been written also as:
172 .Bd -literal -offset indent
173 block return 40 temporary "-" failure
174 .Ed
175 .Pp
176 Strict ordering of the sections is not enforced, so that is possible
177 to mix macros, options and
178 .Ic server
179 blocks.
180 However, defining all the
181 .Ic server
182 blocks after the macros and the global options is recommended.
183 .Pp
184 Newlines are often optional, except around top-level instructions, and
185 semicolons
186 .Dq \&;
187 can also be optionally used to separate options.
188 .Pp
189 Additional configuration files can be included with the
190 .Ic include
191 keyword, for example:
192 .Bd -literal -offset indent
193 include "/etc/gmid.conf.local"
194 .Ed
195 .Ss Macros
196 Macros can be defined that will later be expanded in context.
197 Macro names must start with a letter, digit or underscore and may
198 contain any of those characters.
199 Macros names may not be reserved words.
200 Macros are not expanded inside quotes.
201 .Pp
202 Two kinds of macros are supported: variable-like and proper macros.
203 When a macro is invoked with a
204 .Dq $
205 before its name its expanded as a string, whereas when it's invoked
206 with a
207 .Dq @
208 its expanded in-place.
209 .Pp
210 For example:
211 .Bd -literal -offset indent
212 dir = "/var/gemini"
213 certdir = "/etc/keys"
214 common = "lang it; auto index on"
216 server "foo" {
217 root $dir "/foo" # -> /var/gemini/foo
218 cert $certdir "/foo.crt" # -> /etc/keys/foo.crt
219 key $certdir "/foo.pem" # -> /etc/keys/foo.pem
220 @common
222 .Ed
223 .Ss Global Options
224 .Bl -tag -width 12m
225 .It Ic chroot Pa path
226 .Xr chroot 2
227 the process to the given
228 .Pa path .
229 The daemon has to be run with root privileges and thus the option
230 .Ic user
231 needs to be provided, so privileges can be dropped.
232 Note that
233 .Nm
234 will enter the chroot after loading the TLS keys, but before opening
235 the virtual host root directories.
236 It's recommended to keep the TLS keys outside the chroot.
237 Future version of
238 .Nm
239 may enforce this.
240 .It Ic ipv6 Ar bool
241 Enable or disable IPv6 support, off by default.
242 .It Ic map Ar mime-type Cm to-ext Ar file-extension
243 Map
244 .Ar mime-type
245 to the given
246 .Ar file-extension .
247 Both argument are strings.
248 .It Ic port Ar portno
249 The port to listen on.
250 1965 by default.
251 .It Ic prefork Ar number
252 Run the specified number of server processes.
253 This increases the performance and prevents delays when connecting to
254 a server.
255 When not in config-less mode,
256 .Nm
257 runs 3 server processes by default.
258 The maximum number allowed is 16.
259 .It Ic protocols Ar string
260 Specify the TLS protocols to enable.
261 Refer to
262 .Xr tls_config_parse_protocols 3
263 for the valid protocol string values.
264 By default, both TLSv1.3 and TLSv1.2 are enabled.
265 Use
266 .Dq tlsv1.3
267 to enable only TLSv1.3.
268 .It Ic user Ar string
269 Run the daemon as the given user.
270 .El
271 .Ss Servers
272 Every virtual host is defined by a
273 .Ic server
274 block:
275 .Bl -tag -width Ds
276 .It Ic server Ar hostname Brq ...
277 Match the server name using shell globbing rules.
278 It can be an explicit name,
279 .Ar www.example.com ,
280 or a name including a wildcards,
281 .Ar *.example.com .
282 .El
283 .Pp
284 Followed by a block of options that is enclosed in curly brackets:
285 .Bl -tag -width Ds
286 .It Ic alias Ar name
287 Specify an additional alias
288 .Ar name
289 for this server.
290 .It Ic auto Ic index Ar bool
291 If no index file is found, automatically generate a directory listing.
292 Disabled by default.
293 .It Ic block Op Ic return Ar code Op Ar meta
294 Send a reply and close the connection;
295 by default
296 .Ar code
297 is 40
298 and
299 .Ar meta
300 is
301 .Dq temporary failure .
302 If
303 .Ar code
304 is in the 3x range, then
305 .Ar meta
306 is mandatory.
307 Inside
308 .Ar meta ,
309 the following special sequences are supported:
310 .Bl -tag -width Ds -compact
311 .It \&%\&%
312 is replaced with a single
313 .Sq \&% .
314 .It \&%p
315 is replaced with the request path.
316 .It \&%q
317 is replaced with the query string of the request.
318 .It \&%P
319 is replaced with the server port.
320 .It \&%N
321 is replaced with the server name.
322 .El
323 .It Ic cert Pa file
324 Path to the certificate to use for this server.
325 The
326 .Pa file
327 should contain a PEM encoded certificate.
328 This option is mandatory.
329 .It Ic cgi Pa path
330 Execute
331 .Sx CGI
332 scripts that matches
333 .Pa path
334 using shell globbing rules.
335 .It Ic default type Ar string
336 Set the default media type that is used if the media type for a
337 specified extension is not found.
338 If not specified, the
339 .Ic default type
340 is set to
341 .Dq application/octet-stream .
342 .It Ic entrypoint Pa path
343 Handle all the requests for the current virtual host using the
344 .Sx CGI
345 script at
346 .Pa path ,
347 relative to the current document root.
348 .It Ic env Ar name Cm = Ar value
349 Set the environment variable
350 .Ar name
351 to
352 .Ar value
353 when executing CGI scripts.
354 Can be provided more than once.
355 .\" don't document the "spawn <prog>" form because it probably won't
356 .\" be kept.
357 .It Ic fastcgi Oo Ic tcp Oc Pa socket Oo Cm port Ar port Oc
358 Enable
359 .Sx FastCGI
360 instead of serving files.
361 The
362 .Pa socket
363 can either be a UNIX-domain socket or a TCP socket.
364 If the FastCGI application is listening on a UNIX domain socket,
365 .Pa socket
366 is a local path name within the
367 .Xr chroot 2
368 root directory of
369 .Nm .
370 Otherwise, the
371 .Ic tcp
372 keyword must be provided and
373 .Pa socket
374 is interpreted as a hostname or an IP address.
375 .Ar port
376 can be either a port number or the name of a service enclosed in
377 double quotes.
378 If not specified defaults to 9000.
379 .It Ic index Ar string
380 Set the directory index file.
381 If not specified, it defaults to
382 .Pa index.gmi .
383 .It Ic key Pa file
384 Specify the private key to use for this server.
385 The
386 .Pa file
387 should contain a PEM encoded private key.
388 This option is mandatory.
389 .It Ic lang Ar string
390 Specify the language tag for the text/gemini content served.
391 If not specified, no
392 .Dq lang
393 parameter will be added in the response.
394 .It Ic location Pa path Brq ...
395 Specify server configuration rules for a specific location.
396 The
397 .Pa path
398 argument will be matched against the request path with shell globbing
399 rules.
400 In case of multiple location statements in the same context, the first
401 matching location will be put into effect and the later ones ignored.
402 Therefore is advisable to match for more specific paths first and for
403 generic ones later on.
405 .Ic location
406 section may include most of the server configuration rules
407 except
408 .Ic alias , Ic cert , Ic cgi , Ic entrypoint , Ic env , Ic key ,
409 .Ic location , Ic param No and Ic proxy .
410 .It Ic log Ar bool
411 Enable or disable the logging for the current server or location block.
412 .It Ic param Ar name Cm = Ar value
413 Set the param
414 .Ar name
415 to
416 .Ar value
417 for FastCGI.
418 .It Ic ocsp Ar file
419 Specify an OCSP response to be stapled during TLS handshakes
420 with this server.
421 The
422 .Ar file
423 should contain a DER-format OCSP response retrieved from an
424 OCSP server for the
425 .Ic cert
426 in use.
427 If the OCSP response in
428 .Ar file
429 is empty, OCSP stapling will not be used.
430 The default is to not use OCSP stapling.
431 .It Ic proxy Ar option
432 Enable requests proxying.
433 .Nm
434 can forward Gemini requests to other hosts on behalf of the client
435 if configured to do so.
436 Multiple options may be specified within curly braces.
437 Valid options are:
438 .Bl -tag -width Ds
439 .It Ic cert Ar file
440 Specify the client certificate to use when making requests.
441 .It Ic key Ar file
442 Specify the client certificate key to use when making requests.
443 .It Ic protocols Ar string
444 Specify the TLS protocols allowed when making remote requests.
445 Refer to the
446 .Xr tls_config_parse_protocols 3
447 function for the valid protocol string values.
448 By default, both TLSv1.2 and TLSv1.3 are enabled.
449 .It Ic relay-to Ar host : Ns Op Ar port
450 Relay the request to the given
451 .Ar host
452 at the given
453 .Ar port
454 .Pq 1965 by default.
455 .It Ic use-tls Ar bool
456 Specify whether to use TLS when connecting to the proxied host.
457 Enabled by default.
458 .It Ic verifyname Ar bool
459 Enable or disable the TLS server name verification
460 .Pq enabled by default.
461 .El
462 .It Ic root Pa directory
463 Specify the root directory for this server
464 .Pq alas the current Dq document root .
465 It's relative to the chroot if enabled.
466 .It Ic require Ic client Ic ca Pa path
467 Allow requests only from clients that provide a certificate signed by
468 the CA certificate in
469 .Pa path .
470 It needs to be a PEM-encoded certificate and it's not relative to the
471 chroot.
472 .It Ic strip Ar number
473 Strip
474 .Ar number
475 components from the beginning of the path before doing a lookup in the
476 root directory.
477 It's also considered for the
478 .Ar meta
479 parameter in the scope of a
480 .Ic block return .
481 .El
482 .Sh CGI
483 When a request for an executable file matches the
484 .Ic cgi
485 rule, that file will be executed and its output fed to the client.
486 .Pp
487 The CGI scripts are executed in the directory they reside and inherit
488 the environment from
489 .Nm
490 with these additional variables set:
491 .Bl -tag -width 24m
492 .It Ev GATEWAY_INTERFACE
493 .Dq CGI/1.1
494 .It Ev GEMINI_DOCUMENT_ROOT
495 The root directory of the virtual host.
496 .It Ev GEMINI_SCRIPT_FILENAME
497 Full path to the CGI script being executed.
498 .It Ev GEMINI_URL
499 The full IRI of the request.
500 .It Ev GEMINI_URL_PATH
501 The path of the request.
502 .It Ev PATH_INFO
503 The portion of the requested path that is derived from the the IRI
504 path hierarchy following the part that identifies the script itself.
505 Can be unset.
506 .It Ev PATH_TRANSLATED
507 Present if and only if
508 .Ev PATH_INFO
509 is set.
510 It represent the translation of the
511 .Ev PATH_INFO .
512 .Nm
513 builds this by appending the
514 .Ev PATH_INFO
515 to the virtual host directory root.
516 .It Ev QUERY_STRING
517 The decoded query string.
518 .It Ev REMOTE_ADDR , Ev REMOTE_HOST
519 Textual representation of the client IP.
520 .It Ev REQUEST_METHOD
521 This is present only for RFC3875 (CGI) compliance.
522 It's always set to the empty string.
523 .It Ev SCRIPT_NAME
524 The part of the
525 .Ev GEMINI_URL_PATH
526 that identifies the current CGI script.
527 .It Ev SERVER_NAME
528 The name of the server
529 .It Ev SERVER_PORT
530 The port the server is listening on.
531 .It Ev SERVER_PROTOCOL
532 .Dq GEMINI
533 .It Ev SERVER_SOFTWARE
534 The name and version of the server, i.e.
535 .Dq gmid/1.7.3
536 .It Ev AUTH_TYPE
537 The string "Certificate" if the client used a certificate, otherwise
538 unset.
539 .It Ev REMOTE_USER
540 The subject of the client certificate if provided, otherwise unset.
541 .It Ev TLS_CLIENT_ISSUER
542 The is the issuer of the client certificate if provided, otherwise
543 unset.
544 .It Ev TLS_CLIENT_HASH
545 The hash of the client certificate if provided, otherwise unset.
546 The format is
547 .Dq ALGO:HASH .
548 .It Ev TLS_VERSION
549 The TLS version negotiated with the peer.
550 .It Ev TLS_CIPHER
551 The cipher suite negotiated with the peer.
552 .It Ev TLS_CIPHER_STRENGTH
553 The strength in bits for the symmetric cipher that is being used with
554 the peer.
555 .It Ev TLS_CLIENT_NOT_AFTER
556 The time corresponding to the end of the validity period of the peer
557 certificate in the ISO 8601 format
558 .Pq e.g. Dq 2021-02-07T20:17:41Z .
559 .It Ev TLS_CLIENT_NOT_BEFORE
560 The time corresponding to the start of the validity period of the peer
561 certificate in the ISO 8601 format.
562 .El
563 .Sh FastCGI
564 .Nm
565 optionally supports FastCGI.
567 .Ic fastcgi
568 rule must be present in a server or location block.
569 Then, all requests matching that server or location will be handled
570 via the specified FastCGI backend.
571 .Pp
572 By default the following variables
573 .Pq parameters
574 are sent, and carry the same semantics as with CGI.
575 More parameters can be added with the
576 .Ic param
577 option.
578 .Pp
579 .Bl -bullet -compact
580 .It
581 GATEWAY_INTERFACE
582 .It
583 GEMINI_URL_PATH
584 .It
585 QUERY_STRING
586 .It
587 REMOTE_ADDR
588 .It
589 REMOTE_HOST
590 .It
591 REQUEST_METHOD
592 .It
593 SERVER_NAME
594 .It
595 SERVER_PROTOCOL
596 .It
597 SERVER_SOFTWARE
598 .It
599 AUTH_TYPE
600 .It
601 REMOTE_USER
602 .It
603 TLS_CLIENT_ISSUER
604 .It
605 TLS_CLIENT_HASH
606 .It
607 TLS_VERSION
608 .It
609 TLS_CIPHER
610 .It
611 TLS_CIPHER_STRENGTH
612 .It
613 TLS_CLIENT_NOT_BEFORE
614 .It
615 TLS_CLIENT_NOT_AFTER
616 .El
617 .Sh MIME
618 To auto-detect the MIME type of the response
619 .Nm
620 looks at the file extension and consults its internal table.
621 By default the following mappings are loaded, but they can be
622 overridden or extended using the
623 .Ic map
624 configuration option.
625 If no MIME is found, the value of
626 .Ic default type
627 matching the file
628 .Ic location
629 will be used, which is
630 .Dq application/octet-stream
631 by default.
632 .Pp
633 .Bl -tag -offset indent -width 14m -compact
634 .It diff
635 text/x-patch
636 .It gemini, gmi
637 text/gemini
638 .It gif
639 image/gif
640 .It jpeg
641 image/jpeg
642 .It jpg
643 image/jpeg
644 .It markdown, md
645 text/markdown
646 .It patch
647 text/x-patch
648 .It pdf
649 application/pdf
650 .It png
651 image/png
652 .It svg
653 image/svg+xml
654 .It txt
655 text/plain
656 .It xml
657 text/xml
658 .El
659 .Sh LOGGING
660 Messages and requests are logged by
661 .Xr syslog 3
662 using the
663 .Dv DAEMON
664 facility or printed on
665 .Em stderr .
666 .Pp
667 Requests are logged with the
668 .Dv NOTICE
669 severity.
670 Each request log entry has the following fields, separated by
671 whitespace:
672 .Pp
673 .Bl -bullet -compact
674 .It
675 Client IP address and the source port number, separated by a colon
676 .It
677 .Sy GET
678 keyword
679 .It
680 Request URL
681 .It
682 Response status
683 .It
684 Response meta
685 .El
686 .Sh EXAMPLES
687 Serve the current directory
688 .Bd -literal -offset indent
689 $ gmid .
690 .Ed
691 .Pp
692 To serve the directory
693 .Pa docs
694 and enable CGI scripts inside
695 .Pa docs/cgi
696 .Bd -literal -offset indent
697 $ mkdir docs/cgi
698 $ cat <<EOF > docs/cgi/hello
699 #!/bin/sh
700 printf "20 text/plain\er\en"
701 echo "hello world"
702 EOF
703 $ chmod +x docs/cgi/hello
704 $ gmid -x '/cgi/*' docs
705 .Ed
706 .Pp
707 An X.509 certificate must be provided to run
708 .Nm
709 using a configuration file.
710 First, the RSA certificate is created using a wildcard common name:
711 .Bd -literal -offset indent
712 # openssl genrsa \-out /etc/ssl/private/example.com.key 4096
713 # openssl req \-new \-x509 \e
714 \-key /etc/ssl/private/example.com.key \e
715 \-out /etc/ssl/example.com.crt \e
716 \-days 36500 \-nodes \e
717 \-subj "/CN=example.com"
718 # chmod 600 /etc/ssl/example.com.crt
719 # chmod 600 /etc/ssl/private/example.com.key
720 .Ed
721 .Pp
722 In the example above, a certificate is valid for one hundred years from
723 the date it was created, which is normal for TOFU.
724 .Pp
725 The following is an example of a possible configuration for a site
726 that enables only TLSv1.3, adds a mime type for the file extension
727 .Qq rtf
728 and defines two virtual host:
729 .Bd -literal -offset indent
730 ipv6 on # enable ipv6
732 protocols "tlsv1.3"
734 map "application/rtf" to-ext "rtf"
736 server "example.com" {
737 cert "/etc/ssl/example.com.crt"
738 key "/etc/ssl/private/example.com.key"
739 root "/var/gemini/example.com"
742 server "it.example.com" {
743 cert "/etc/ssl/example.com.crt"
744 key "/etc/ssl/private/example.com.key"
745 root "/var/gemini/it.example.com"
747 # enable cgi scripts inside "cgi-bin"
748 cgi "/cgi-bin/*"
750 # set the language for text/gemini files
751 lang "it"
753 .Ed
754 .Pp
755 Yet another example, showing how to enable a
756 .Ic chroot
757 and use
758 .Ic location
759 rule
760 .Bd -literal -offset indent
761 chroot "/var/gemini"
762 user "_gmid"
764 server "example.com" {
765 cert "/path/to/cert.pem" # absolute path
766 key "/path/to/key.pem" # also absolute
767 root "/example.com" # relative to the chroot
769 location "/static/*" {
770 # load the following rules only for
771 # requests that matches "/static/*"
773 auto index on
774 index "index.gemini"
777 .Ed
778 .Sh ACKNOWLEDGEMENTS
779 .Nm
780 uses the
781 .Dq Flexible and Economical
782 UTF-8 decoder written by
783 .An Bjoern Hoehrmann .
784 .Sh AUTHORS
785 .An -nosplit
786 The
787 .Nm
788 program was written by
789 .An Omar Polo Aq Mt op@omarpolo.com .
790 .Sh CAVEATS
791 .Bl -bullet
792 .It
793 All the root directories are opened during the daemon startup; if a
794 root directory is deleted and then re-created,
795 .Nm
796 won't be able to serve files inside that directory until a restart.
797 This restriction only applies to the root directories and not their
798 content.
799 .It
800 a %2F sequence is indistinguishable from a literal slash: this is not
801 RFC3986-compliant.
802 .It
803 a %00 sequence is treated as invalid character and thus rejected.
804 .El