Lines Matching refs:argv
384 int MAIN(int argc, char **argv)
482 argv++;
485 if (strcmp(*argv,"-host") == 0)
488 host= *(++argv);
490 else if (strcmp(*argv,"-port") == 0)
493 port=atoi(*(++argv));
496 else if (strcmp(*argv,"-connect") == 0)
499 if (!extract_host_port(*(++argv),&host,NULL,&port))
502 else if (strcmp(*argv,"-verify") == 0)
506 verify_depth=atoi(*(++argv));
509 else if (strcmp(*argv,"-cert") == 0)
512 cert_file= *(++argv);
514 else if (strcmp(*argv,"-sess_out") == 0)
517 sess_out = *(++argv);
519 else if (strcmp(*argv,"-sess_in") == 0)
522 sess_in = *(++argv);
524 else if (strcmp(*argv,"-certform") == 0)
527 cert_format = str2fmt(*(++argv));
529 else if (args_verify(&argv, &argc, &badarg, bio_err, &vpm))
535 else if (strcmp(*argv,"-verify_return_error") == 0)
537 else if (strcmp(*argv,"-prexit") == 0)
539 else if (strcmp(*argv,"-crlf") == 0)
541 else if (strcmp(*argv,"-quiet") == 0)
546 else if (strcmp(*argv,"-ign_eof") == 0)
548 else if (strcmp(*argv,"-no_ign_eof") == 0)
550 else if (strcmp(*argv,"-pause") == 0)
552 else if (strcmp(*argv,"-debug") == 0)
555 else if (strcmp(*argv,"-tlsextdebug") == 0)
557 else if (strcmp(*argv,"-status") == 0)
561 else if (strcmp(*argv,"-wdebug") == 0)
564 else if (strcmp(*argv,"-msg") == 0)
566 else if (strcmp(*argv,"-showcerts") == 0)
568 else if (strcmp(*argv,"-nbio_test") == 0)
570 else if (strcmp(*argv,"-state") == 0)
573 else if (strcmp(*argv,"-psk_identity") == 0)
576 psk_identity=*(++argv);
578 else if (strcmp(*argv,"-psk") == 0)
583 psk_key=*(++argv);
588 BIO_printf(bio_err,"Not a hex number '%s'\n",*argv);
594 else if (strcmp(*argv,"-ssl2") == 0)
598 else if (strcmp(*argv,"-ssl3") == 0)
602 else if (strcmp(*argv,"-tls1") == 0)
606 else if (strcmp(*argv,"-dtls1") == 0)
611 else if (strcmp(*argv,"-timeout") == 0)
613 else if (strcmp(*argv,"-mtu") == 0)
616 socket_mtu = atol(*(++argv));
619 else if (strcmp(*argv,"-bugs") == 0)
621 else if (strcmp(*argv,"-keyform") == 0)
624 key_format = str2fmt(*(++argv));
626 else if (strcmp(*argv,"-pass") == 0)
629 passarg = *(++argv);
631 else if (strcmp(*argv,"-key") == 0)
634 key_file= *(++argv);
636 else if (strcmp(*argv,"-reconnect") == 0)
640 else if (strcmp(*argv,"-CApath") == 0)
643 CApath= *(++argv);
645 else if (strcmp(*argv,"-CAfile") == 0)
648 CAfile= *(++argv);
650 else if (strcmp(*argv,"-no_tls1") == 0)
652 else if (strcmp(*argv,"-no_ssl3") == 0)
654 else if (strcmp(*argv,"-no_ssl2") == 0)
656 else if (strcmp(*argv,"-no_comp") == 0)
659 else if (strcmp(*argv,"-no_ticket") == 0)
662 else if (strcmp(*argv,"-cutthrough") == 0)
664 else if (strcmp(*argv,"-serverpref") == 0)
666 else if (strcmp(*argv,"-legacy_renegotiation") == 0)
668 else if (strcmp(*argv,"-legacy_server_connect") == 0)
670 else if (strcmp(*argv,"-no_legacy_server_connect") == 0)
672 else if (strcmp(*argv,"-cipher") == 0)
675 cipher= *(++argv);
678 else if (strcmp(*argv,"-nbio") == 0)
681 else if (strcmp(*argv,"-starttls") == 0)
684 ++argv;
685 if (strcmp(*argv,"smtp") == 0)
687 else if (strcmp(*argv,"pop3") == 0)
689 else if (strcmp(*argv,"imap") == 0)
691 else if (strcmp(*argv,"ftp") == 0)
693 else if (strcmp(*argv, "xmpp") == 0)
699 else if (strcmp(*argv,"-engine") == 0)
702 engine_id = *(++argv);
704 else if (strcmp(*argv,"-ssl_client_engine") == 0)
707 ssl_client_engine_id = *(++argv);
710 else if (strcmp(*argv,"-rand") == 0)
713 inrand= *(++argv);
716 else if (strcmp(*argv,"-servername") == 0)
719 servername= *(++argv);
724 else if (strcmp(*argv,"-jpake") == 0)
727 jpake_secret = *++argv;
732 BIO_printf(bio_err,"unknown option %s\n",*argv);
737 argv++;