Home
last modified time | relevance | path

Searched refs:bio_err (Results 1 – 25 of 64) sorted by relevance

123

/freebsd-9-stable/crypto/openssl/apps/
Dsmime.c122 if (bio_err == NULL) { in MAIN()
123 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
124 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
127 if (!load_config(bio_err, NULL)) in MAIN()
312 } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm)) in MAIN()
321 BIO_printf(bio_err, "No signer certificate specified\n"); in MAIN()
327 BIO_printf(bio_err, in MAIN()
333 BIO_printf(bio_err, "No recipient(s) certificate(s) specified\n"); in MAIN()
341 BIO_printf(bio_err, "Usage smime [options] cert.pem ...\n"); in MAIN()
342 BIO_printf(bio_err, "where options are\n"); in MAIN()
[all …]
Dpkcs8.c93 if (bio_err == NULL) in MAIN()
94 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN()
96 if (!load_config(bio_err, NULL)) in MAIN()
111 BIO_printf(bio_err, "Unknown cipher %s\n", *args); in MAIN()
121 BIO_printf(bio_err, "Unknown PBE algorithm %s\n", *args); in MAIN()
185 BIO_printf(bio_err, "Usage pkcs8 [options]\n"); in MAIN()
186 BIO_printf(bio_err, "where options are\n"); in MAIN()
187 BIO_printf(bio_err, "-in file input file\n"); in MAIN()
188 BIO_printf(bio_err, "-inform X input format (DER or PEM)\n"); in MAIN()
189 BIO_printf(bio_err, in MAIN()
[all …]
Ddsa.c118 if (bio_err == NULL) in MAIN()
119 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
120 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
122 if (!load_config(bio_err, NULL)) in MAIN()
180 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
190 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
191 BIO_printf(bio_err, "where options are\n"); in MAIN()
192 BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); in MAIN()
193 BIO_printf(bio_err, " -outform arg output format - DER or PEM\n"); in MAIN()
194 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]
Drsa.c121 if (bio_err == NULL) in MAIN()
122 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
123 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
125 if (!load_config(bio_err, NULL)) in MAIN()
184 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
194 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
195 BIO_printf(bio_err, "where options are\n"); in MAIN()
196 BIO_printf(bio_err, in MAIN()
198 BIO_printf(bio_err, in MAIN()
200 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]
Ddhparam.c169 if (bio_err == NULL) in MAIN()
170 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
171 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
173 if (!load_config(bio_err, NULL)) in MAIN()
237 BIO_printf(bio_err, "%s [options] [numbits]\n", prog); in MAIN()
238 BIO_printf(bio_err, "where options are\n"); in MAIN()
239 BIO_printf(bio_err, " -inform arg input format - one of DER PEM\n"); in MAIN()
240 BIO_printf(bio_err, in MAIN()
242 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
243 BIO_printf(bio_err, " -out arg output file\n"); in MAIN()
[all …]
Ddgst.c116 BIO_printf(bio_err, "out of memory\n"); in MAIN()
119 if (bio_err == NULL) in MAIN()
120 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
121 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
123 if (!load_config(bio_err, NULL)) in MAIN()
177 BIO_printf(bio_err, "Invalid PSS salt length %d\n", saltlen); in MAIN()
225 BIO_printf(bio_err, in MAIN()
232 BIO_printf(bio_err, "unknown option '%s'\n", *argv); in MAIN()
233 BIO_printf(bio_err, "options are\n"); in MAIN()
234 BIO_printf(bio_err, in MAIN()
[all …]
Drsautl.c112 if (!bio_err) in MAIN()
113 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN()
115 if (!load_config(bio_err, NULL)) in MAIN()
195 BIO_printf(bio_err, "A private key is needed for this operation\n"); in MAIN()
199 e = setup_engine(bio_err, engine, 0); in MAIN()
201 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL)) { in MAIN()
202 BIO_printf(bio_err, "Error getting password\n"); in MAIN()
207 app_RAND_load_file(NULL, bio_err, 0); in MAIN()
211 pkey = load_key(bio_err, keyfile, keyform, 0, in MAIN()
216 pkey = load_pubkey(bio_err, keyfile, keyform, 0, in MAIN()
[all …]
Dec.c107 if (bio_err == NULL) in MAIN()
108 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
109 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
111 if (!load_config(bio_err, NULL)) in MAIN()
187 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
197 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
198 BIO_printf(bio_err, "where options are\n"); in MAIN()
199 BIO_printf(bio_err, " -inform arg input format - " in MAIN()
201 BIO_printf(bio_err, " -outform arg output format - " in MAIN()
203 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]
Dgendsa.c94 if (bio_err == NULL) in MAIN()
95 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
96 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
98 if (!load_config(bio_err, NULL)) in MAIN()
168 BIO_printf(bio_err, "usage: gendsa [args] dsaparam-file\n"); in MAIN()
169 BIO_printf(bio_err, " -out file - output the key to 'file'\n"); in MAIN()
171 BIO_printf(bio_err, in MAIN()
173 BIO_printf(bio_err, in MAIN()
177 BIO_printf(bio_err, in MAIN()
181 BIO_printf(bio_err, " -seed\n"); in MAIN()
[all …]
Dspkac.c103 if (!bio_err) in MAIN()
104 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN()
106 if (!load_config(bio_err, NULL)) in MAIN()
163 BIO_printf(bio_err, "%s [options]\n", prog); in MAIN()
164 BIO_printf(bio_err, "where options are\n"); in MAIN()
165 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
166 BIO_printf(bio_err, " -out arg output file\n"); in MAIN()
167 BIO_printf(bio_err, in MAIN()
169 BIO_printf(bio_err, in MAIN()
171 BIO_printf(bio_err, " -challenge arg challenge string\n"); in MAIN()
[all …]
Dcms.c148 if (bio_err == NULL) { in MAIN()
149 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
150 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
153 if (!load_config(bio_err, NULL)) in MAIN()
293 BIO_printf(bio_err, "Invalid key %s\n", *args); in MAIN()
304 BIO_printf(bio_err, "Invalid id %s\n", *args); in MAIN()
314 BIO_printf(bio_err, "Invalid OID %s\n", *args); in MAIN()
377 BIO_printf(bio_err, "Unknown digest %s\n", *args); in MAIN()
386 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); in MAIN()
438 } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm)) in MAIN()
[all …]
Dgenrsa.c114 BN_GENCB_set(&cb, genrsa_cb, bio_err); in MAIN()
116 if (bio_err == NULL) in MAIN()
117 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
118 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
120 if (!load_config(bio_err, NULL)) in MAIN()
123 BIO_printf(bio_err, "unable to create BIO for output\n"); in MAIN()
195 BIO_printf(bio_err, "usage: genrsa [args] [numbits]\n"); in MAIN()
196 BIO_printf(bio_err, in MAIN()
198 BIO_printf(bio_err, in MAIN()
201 BIO_printf(bio_err, in MAIN()
[all …]
Dpkcs12.c149 if (bio_err == NULL) in MAIN()
150 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN()
152 if (!load_config(bio_err, NULL)) in MAIN()
231 BIO_printf(bio_err, in MAIN()
245 BIO_printf(bio_err, in MAIN()
351 BIO_printf(bio_err, "Usage: pkcs12 [options]\n"); in MAIN()
352 BIO_printf(bio_err, "where options are\n"); in MAIN()
353 BIO_printf(bio_err, "-export output PKCS12 file\n"); in MAIN()
354 BIO_printf(bio_err, "-chain add certificate chain\n"); in MAIN()
355 BIO_printf(bio_err, "-inkey file private key if not infile\n"); in MAIN()
[all …]
Dreq.c215 if (bio_err == NULL) in MAIN()
216 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
217 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
314 BIO_printf(bio_err, in MAIN()
326 BIO_printf(bio_err, in MAIN()
357 BIO_printf(bio_err, in MAIN()
369 BIO_printf(bio_err, in MAIN()
461 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
471 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
472 BIO_printf(bio_err, "where options are\n"); in MAIN()
[all …]
Denc.c130 if (bio_err == NULL) in MAIN()
131 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
132 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
134 if (!load_config(bio_err, NULL)) in MAIN()
144 BIO_printf(bio_err, "%s is an unknown cipher\n", pname); in MAIN()
213 BIO_printf(bio_err, "unable to read key from '%s'\n", file); in MAIN()
218 BIO_printf(bio_err, "unable to read key from '%s'\n", file); in MAIN()
228 BIO_printf(bio_err, "zero length password\n"); in MAIN()
256 BIO_printf(bio_err, "unknown option '%s'\n", *argv); in MAIN()
258 BIO_printf(bio_err, "options are\n"); in MAIN()
[all …]
Ddsaparam.c133 if (bio_err == NULL) in MAIN()
134 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
135 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
137 if (!load_config(bio_err, NULL)) in MAIN()
199 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
209 BIO_printf(bio_err, "%s [options] [bits] <infile >outfile\n", prog); in MAIN()
210 BIO_printf(bio_err, "where options are\n"); in MAIN()
211 BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); in MAIN()
212 BIO_printf(bio_err, " -outform arg output format - DER or PEM\n"); in MAIN()
213 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]
Docsp.c142 if (bio_err == NULL) in MAIN()
143 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN()
145 if (!load_config(bio_err, NULL)) in MAIN()
164 BIO_printf(bio_err, "Illegal timeout value %s\n", *args); in MAIN()
179 BIO_printf(bio_err, "Error parsing URL\n"); in MAIN()
288 BIO_printf(bio_err, in MAIN()
299 BIO_printf(bio_err, "Illegal validity age %s\n", *args); in MAIN()
332 issuer = load_cert(bio_err, *args, FORMAT_PEM, in MAIN()
342 cert = load_cert(bio_err, *args, FORMAT_PEM, in MAIN()
378 BIO_printf(bio_err, "Illegal update period %s\n", *args); in MAIN()
[all …]
Dasn1pars.c108 if (bio_err == NULL) in MAIN()
109 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
110 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
112 if (!load_config(bio_err, NULL)) in MAIN()
119 BIO_printf(bio_err, "Memory allocation failure\n"); in MAIN()
174 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
184 BIO_printf(bio_err, "%s [options] <infile\n", prog); in MAIN()
185 BIO_printf(bio_err, "where options are\n"); in MAIN()
186 BIO_printf(bio_err, " -inform arg input format - one of DER PEM\n"); in MAIN()
187 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]
Decparam.c141 if (bio_err == NULL) in MAIN()
142 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
143 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
145 if (!load_config(bio_err, NULL)) in MAIN()
224 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
234 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
235 BIO_printf(bio_err, "where options are\n"); in MAIN()
236 BIO_printf(bio_err, " -inform arg input format - " in MAIN()
238 BIO_printf(bio_err, " -outform arg output format - " in MAIN()
240 BIO_printf(bio_err, " -in arg input file - " in MAIN()
[all …]
Dgendh.c106 BN_GENCB_set(&cb, dh_cb, bio_err); in MAIN()
107 if (bio_err == NULL) in MAIN()
108 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
109 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
111 if (!load_config(bio_err, NULL)) in MAIN()
147 BIO_printf(bio_err, "usage: gendh [args] [numbits]\n"); in MAIN()
148 BIO_printf(bio_err, " -out file - output the key to 'file\n"); in MAIN()
149 BIO_printf(bio_err, " -2 - use 2 as the generator value\n"); in MAIN()
153 BIO_printf(bio_err, " -5 - use 5 as the generator value\n"); in MAIN()
155 BIO_printf(bio_err, in MAIN()
[all …]
Ds_client.c204 BIO_printf(bio_err, "usage: s_client args\n"); in sc_usage()
205 BIO_printf(bio_err, "\n"); in sc_usage()
206 BIO_printf(bio_err, " -host host - use -connect instead\n"); in sc_usage()
207 BIO_printf(bio_err, " -port port - use -connect instead\n"); in sc_usage()
208 BIO_printf(bio_err, in sc_usage()
212 BIO_printf(bio_err, in sc_usage()
214 BIO_printf(bio_err, in sc_usage()
216 BIO_printf(bio_err, in sc_usage()
218 BIO_printf(bio_err, in sc_usage()
220 BIO_printf(bio_err, " not specified but cert file is.\n"); in sc_usage()
[all …]
Dca.c344 if (bio_err == NULL) in MAIN()
345 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
346 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
515 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
525 BIO_printf(bio_err, "%s", *pp); in MAIN()
555 BIO_printf(bio_err, "Using configuration from %s\n", configfile); in MAIN()
559 BIO_printf(bio_err, "error loading the config file '%s'\n", in MAIN()
562 BIO_printf(bio_err, "error on line %ld of config file '%s'\n", in MAIN()
571 if (!load_config(bio_err, conf)) in MAIN()
575 e = setup_engine(bio_err, engine, 0); in MAIN()
[all …]
Ddh.c103 if (bio_err == NULL) in MAIN()
104 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
105 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
107 if (!load_config(bio_err, NULL)) in MAIN()
155 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
165 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
166 BIO_printf(bio_err, "where options are\n"); in MAIN()
167 BIO_printf(bio_err, " -inform arg input format - one of DER PEM\n"); in MAIN()
168 BIO_printf(bio_err, in MAIN()
170 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]
Ds_server.c335 BIO_printf(bio_err, "usage: s_server [args ...]\n"); in sv_usage()
336 BIO_printf(bio_err, "\n"); in sv_usage()
337 BIO_printf(bio_err, in sv_usage()
339 BIO_printf(bio_err, " -context arg - set session ID context\n"); in sv_usage()
340 BIO_printf(bio_err, in sv_usage()
342 BIO_printf(bio_err, in sv_usage()
344 BIO_printf(bio_err, " -cert arg - certificate file to use\n"); in sv_usage()
345 BIO_printf(bio_err, " (default is %s)\n", TEST_CERT); in sv_usage()
346 BIO_printf(bio_err, in sv_usage()
349 BIO_printf(bio_err, in sv_usage()
[all …]
Dpkcs7.c99 if (bio_err == NULL) in MAIN()
100 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN()
101 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN()
103 if (!load_config(bio_err, NULL)) in MAIN()
145 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN()
155 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN()
156 BIO_printf(bio_err, "where options are\n"); in MAIN()
157 BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); in MAIN()
158 BIO_printf(bio_err, " -outform arg output format - DER or PEM\n"); in MAIN()
159 BIO_printf(bio_err, " -in arg input file\n"); in MAIN()
[all …]

123