Lines Matching full:args
107 char **args;
145 args = argv + 1;
159 while (!badarg && *args && *args[0] == '-')
161 if (!strcmp (*args, "-encrypt"))
163 else if (!strcmp (*args, "-decrypt"))
165 else if (!strcmp (*args, "-sign"))
167 else if (!strcmp (*args, "-sign_receipt"))
169 else if (!strcmp (*args, "-resign"))
171 else if (!strcmp (*args, "-verify"))
173 else if (!strcmp (*args, "-verify_retcode"))
175 else if (!strcmp(*args,"-verify_receipt"))
178 if (!args[1])
180 args++;
181 rctfile = *args;
183 else if (!strcmp (*args, "-cmsout"))
185 else if (!strcmp (*args, "-data_out"))
187 else if (!strcmp (*args, "-data_create"))
189 else if (!strcmp (*args, "-digest_verify"))
191 else if (!strcmp (*args, "-digest_create"))
193 else if (!strcmp (*args, "-compress"))
195 else if (!strcmp (*args, "-uncompress"))
197 else if (!strcmp (*args, "-EncryptedData_decrypt"))
199 else if (!strcmp (*args, "-EncryptedData_encrypt"))
202 else if (!strcmp (*args, "-des3"))
204 else if (!strcmp (*args, "-des"))
208 else if (!strcmp (*args, "-seed"))
212 else if (!strcmp (*args, "-rc2-40"))
214 else if (!strcmp (*args, "-rc2-128"))
216 else if (!strcmp (*args, "-rc2-64"))
220 else if (!strcmp(*args,"-aes128"))
222 else if (!strcmp(*args,"-aes192"))
224 else if (!strcmp(*args,"-aes256"))
228 else if (!strcmp(*args,"-camellia128"))
230 else if (!strcmp(*args,"-camellia192"))
232 else if (!strcmp(*args,"-camellia256"))
235 else if (!strcmp (*args, "-text"))
237 else if (!strcmp (*args, "-nointern"))
239 else if (!strcmp (*args, "-noverify")
240 || !strcmp (*args, "-no_signer_cert_verify"))
242 else if (!strcmp (*args, "-nocerts"))
244 else if (!strcmp (*args, "-noattr"))
246 else if (!strcmp (*args, "-nodetach"))
248 else if (!strcmp (*args, "-nosmimecap"))
250 else if (!strcmp (*args, "-binary"))
252 else if (!strcmp (*args, "-keyid"))
254 else if (!strcmp (*args, "-nosigs"))
256 else if (!strcmp (*args, "-no_content_verify"))
258 else if (!strcmp (*args, "-no_attr_verify"))
260 else if (!strcmp (*args, "-stream"))
262 else if (!strcmp (*args, "-indef"))
264 else if (!strcmp (*args, "-noindef"))
266 else if (!strcmp (*args, "-nooldmime"))
268 else if (!strcmp (*args, "-crlfeol"))
270 else if (!strcmp (*args, "-noout"))
272 else if (!strcmp (*args, "-receipt_request_print"))
274 else if (!strcmp (*args, "-receipt_request_all"))
276 else if (!strcmp (*args, "-receipt_request_first"))
278 else if (!strcmp(*args,"-receipt_request_from"))
280 if (!args[1])
282 args++;
285 sk_OPENSSL_STRING_push(rr_from, *args);
287 else if (!strcmp(*args,"-receipt_request_to"))
289 if (!args[1])
291 args++;
294 sk_OPENSSL_STRING_push(rr_to, *args);
296 else if (!strcmp (*args, "-print"))
301 else if (!strcmp(*args,"-secretkey"))
304 if (!args[1])
306 args++;
307 secret_key = string_to_hex(*args, <mp);
310 BIO_printf(bio_err, "Invalid key %s\n", *args);
315 else if (!strcmp(*args,"-secretkeyid"))
318 if (!args[1])
320 args++;
321 secret_keyid = string_to_hex(*args, <mp);
324 BIO_printf(bio_err, "Invalid id %s\n", *args);
329 else if (!strcmp(*args,"-econtent_type"))
331 if (!args[1])
333 args++;
334 econtent_type = OBJ_txt2obj(*args, 0);
337 BIO_printf(bio_err, "Invalid OID %s\n", *args);
341 else if (!strcmp(*args,"-rand"))
343 if (!args[1])
345 args++;
346 inrand = *args;
350 else if (!strcmp(*args,"-engine"))
352 if (!args[1])
354 engine = *++args;
357 else if (!strcmp(*args,"-passin"))
359 if (!args[1])
361 passargin = *++args;
363 else if (!strcmp (*args, "-to"))
365 if (!args[1])
367 to = *++args;
369 else if (!strcmp (*args, "-from"))
371 if (!args[1])
373 from = *++args;
375 else if (!strcmp (*args, "-subject"))
377 if (!args[1])
379 subject = *++args;
381 else if (!strcmp (*args, "-signer"))
383 if (!args[1])
399 signerfile = *++args;
401 else if (!strcmp (*args, "-recip"))
403 if (!args[1])
405 recipfile = *++args;
407 else if (!strcmp (*args, "-certsout"))
409 if (!args[1])
411 certsoutfile = *++args;
413 else if (!strcmp (*args, "-md"))
415 if (!args[1])
417 sign_md = EVP_get_digestbyname(*++args);
421 *args);
425 else if (!strcmp (*args, "-inkey"))
427 if (!args[1])
445 keyfile = *++args;
447 else if (!strcmp (*args, "-keyform"))
449 if (!args[1])
451 keyform = str2fmt(*++args);
453 else if (!strcmp (*args, "-rctform"))
455 if (!args[1])
457 rctformat = str2fmt(*++args);
459 else if (!strcmp (*args, "-certfile"))
461 if (!args[1])
463 certfile = *++args;
465 else if (!strcmp (*args, "-CAfile"))
467 if (!args[1])
469 CAfile = *++args;
471 else if (!strcmp (*args, "-CApath"))
473 if (!args[1])
475 CApath = *++args;
477 else if (!strcmp (*args, "-in"))
479 if (!args[1])
481 infile = *++args;
483 else if (!strcmp (*args, "-inform"))
485 if (!args[1])
487 informat = str2fmt(*++args);
489 else if (!strcmp (*args, "-outform"))
491 if (!args[1])
493 outformat = str2fmt(*++args);
495 else if (!strcmp (*args, "-out"))
497 if (!args[1])
499 outfile = *++args;
501 else if (!strcmp (*args, "-content"))
503 if (!args[1])
505 contfile = *++args;
507 else if (args_verify(&args, NULL, &badarg, bio_err, &vpm))
509 else if ((cipher = EVP_get_cipherbyname(*args + 1)) == NULL)
511 args++;
570 if (!*args && !secret_key)
711 if (*args)
713 while (*args)
715 if (!(cert = load_cert(bio_err,*args,FORMAT_PEM,
720 args++;