-
Notifications
You must be signed in to change notification settings - Fork 6
/
titan.1
97 lines (97 loc) · 2.25 KB
/
titan.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.\" Copyright (c) 2023 Omar Polo <[email protected]>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.Dd October 20, 2023
.Dt TITAN 1
.Os
.Sh NAME
.Nm titan
.Nd Titan client
.Sh SYNOPSIS
.Nm
.Bk -words
.Op Fl C Ar cert
.Op Fl K Ar key
.Op Fl m Ar mime
.Op Fl t Ar token
.Ar url
.Op Ar file
.Ek
.Sh DESCRIPTION
.Nm
allows to upload data to a Titan server.
If no
.Ar file
is given on the command line,
.Nm
reads from standard input.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl C Ar cert
Specify the TLS client certificate to use.
.It Fl K Ar cert
Specify the TLS client certificate key to use.
Defaults to
.Fl C
if provided.
.It Fl m Ar mime
Specify the mime of the content being sent.
Unset by default.
.It Fl t Ar token
Specify the token for the transaction.
Unset by default.
.El
.Pp
.Nm
alters the passed
.Ar url
to include the parameter for the file size as well as the MIME and the
token if
.Fl m
or
.Fl t
are given.
.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
.Bl -tag -width Ds -offset indent -compact
.It 0
The transaction completed successfully and the response code was in the
2x or 3x range.
.It 1
An error occurred.
.It 2
The response code was not in the 2x or 3x range.
.El
.Sh SEE ALSO
.Xr ftp 1 ,
.Xr gg 1
.Sh STANDARDS
.Nm
implements the
.Dq Titan Specification
.Lk gemini://transjovian.org/titan/page/The%20Titan%20Specification
.Sh AUTHORS
.An -nosplit
The
.Nm
utility was written by
.An Omar Polo Aq Mt [email protected] .
.Sh CAVEATS
.Nm
doesn't perform TOFU
.Pq Trust On First Use
or any X.509 certificate validation beyond the name verification.