PageRenderTime 40ms CodeModel.GetById 25ms app.highlight 11ms RepoModel.GetById 2ms app.codeStats 0ms

/contrib/ntp/util/ntp-keygen-opts.def

https://bitbucket.org/freebsd/freebsd-head/
Module-Definition | 209 lines | 185 code | 24 blank | 0 comment | 1 complexity | 4ef7003c343a8e1ed3cf1b8e5c7cb316 MD5 | raw file
  1/* -*- Mode: Text -*- */
  2
  3autogen definitions options;
  4
  5#include copyright.def
  6#include homerc.def
  7#include autogen-version.def
  8
  9prog-name      = "ntp-keygen";
 10prog-title     = "Create a NTP host key";
 11package        = ntp;
 12
 13test-main;
 14
 15include        = '#include <stdlib.h>';
 16#include       version.def
 17
 18flag = {
 19    name      = certificate;
 20    value     = c;
 21    arg-type  = string;
 22    arg-name  = scheme;
 23    ifdef     = OPENSSL;
 24    descrip   = "certificate scheme";
 25    doc = <<-  _EndOfDoc_
 26	Just some descriptive text.
 27	_EndOfDoc_;
 28};
 29
 30#include       debug-opt.def
 31
 32flag = {
 33    name      = id-key;
 34    value     = e;
 35    ifdef     = OPENSSL;
 36    descrip   = "Write identity keys";
 37    doc = <<-  _EndOfDoc_
 38	Just some descriptive text.
 39	_EndOfDoc_;
 40};
 41
 42flag = {
 43    name      = gq-params;
 44    value     = G;
 45    ifdef     = OPENSSL;
 46    descrip   = "Generate GQ parameters and keys";
 47    doc = <<-  _EndOfDoc_
 48	Just some descriptive text.
 49	_EndOfDoc_;
 50};
 51
 52flag = {
 53    name      = gq-keys;
 54    value     = g;
 55    ifdef     = OPENSSL;
 56    descrip   = "update GQ keys";
 57    doc = <<-  _EndOfDoc_
 58	Just some descriptive text.
 59	_EndOfDoc_;
 60};
 61
 62flag = {
 63    name      = host-key;
 64    value     = H;
 65    ifdef     = OPENSSL;
 66    descrip   = "generate RSA host key";
 67    doc = <<-  _EndOfDoc_
 68	Just some descriptive text.
 69	_EndOfDoc_;
 70};
 71
 72flag = {
 73    name      = iffkey;
 74    value     = I;
 75    ifdef     = OPENSSL;
 76    descrip   = "generate IFF parameters";
 77    doc = <<-  _EndOfDoc_
 78	Just some descriptive text.
 79	_EndOfDoc_;
 80};
 81
 82flag = {
 83    name      = issuer-name;
 84    value     = i;
 85    ifdef     = OPENSSL;
 86    descrip   = "set issuer name";
 87    doc = <<-  _EndOfDoc_
 88	Just some descriptive text.
 89	_EndOfDoc_;
 90};
 91
 92flag = {
 93    name      = md5key;
 94    value     = M;
 95    descrip   = "generate MD5 keys";
 96    doc = <<-  _EndOfDoc_
 97	Just some descriptive text.
 98	_EndOfDoc_;
 99};
100
101flag = {
102    name      = modulus;
103    value     = m;
104    arg-type  = number;
105    arg-name  = modulus;
106    arg-range = '256->2048';
107    ifdef     = OPENSSL;
108    descrip   = "modulus";
109    doc = <<-  _EndOfDoc_
110	Just some descriptive text.
111	_EndOfDoc_;
112};
113
114flag = {
115    name      = pvt-cert;
116    value     = P;
117    ifdef     = OPENSSL;
118    descrip   = "generate PC private certificate";
119    doc = <<-  _EndOfDoc_
120	Just some descriptive text.
121	_EndOfDoc_;
122};
123
124flag = {
125    name      = pvt-passwd;
126    value     = p;
127    ifdef     = OPENSSL;
128    arg-type  = string;
129    arg-name  = passwd;
130    descrip   = "output private password";
131    doc = <<-  _EndOfDoc_
132	Just some descriptive text.
133	_EndOfDoc_;
134};
135
136flag = {
137    name      = get-pvt-passwd;
138    value     = q;
139    ifdef     = OPENSSL;
140    arg-type  = string;
141    arg-name  = passwd;
142    descrip   = "input private password";
143    doc = <<-  _EndOfDoc_
144	Just some descriptive text.
145	_EndOfDoc_;
146};
147
148flag = {
149    name      = sign-key;
150    value     = S;
151    arg-type  = string;
152    arg-name  = sign;
153    ifdef     = OPENSSL;
154    descrip   = "generate sign key (RSA or DSA)";
155    doc = <<-  _EndOfDoc_
156	Just some descriptive text.
157	_EndOfDoc_;
158};
159
160flag = {
161    name      = subject-name;
162    value     = s;
163    arg-type  = string;
164    arg-name  = host;
165    ifdef     = OPENSSL;
166    descrip   = "set subject name";
167    doc = <<-  _EndOfDoc_
168	Just some descriptive text.
169	_EndOfDoc_;
170};
171
172flag = {
173    name      = trusted-cert;
174    value     = T;
175    ifdef     = OPENSSL;
176    descrip   = "trusted certificate (TC scheme)";
177    doc = <<-  _EndOfDoc_
178	Just some descriptive text.
179	_EndOfDoc_;
180};
181
182flag = {
183    name      = mv-params;
184    value     = V;
185    arg-type  = number;
186    arg-name  = num;
187    ifdef     = OPENSSL;
188    descrip   = "generate <num> MV parameters";
189    doc = <<-  _EndOfDoc_
190	Just some descriptive text.
191	_EndOfDoc_;
192};
193
194flag = {
195    name      = mv-keys;
196    value     = v;
197    arg-type  = number;
198    arg-name  = num;
199    ifdef     = OPENSSL;
200    descrip   = "update <num> MV keys";
201    doc = <<-  _EndOfDoc_
202	Just some descriptive text.
203	_EndOfDoc_;
204};
205
206detail = <<-  _EODetail_
207	If there is no new host key, look for an existing one.
208	If one is not found, create it.
209	_EODetail_;