We've had some sort of command-line error. Print out the client options.
(int build_mode, String option)
| 660 | * We've had some sort of command-line error. Print out the client options. |
| 661 | */ |
| 662 | private void print_client_options(int build_mode, String option) |
| 663 | { |
| 664 | int cert_size = SSLUtil.maxCerts(); |
| 665 | int ca_cert_size = SSLUtil.maxCACerts(); |
| 666 | |
| 667 | System.out.println("unknown option " + option); |
| 668 | |
| 669 | if (build_mode >= axtlsj.SSL_BUILD_ENABLE_CLIENT) |
| 670 | { |
| 671 | System.out.println("usage: s_client [args ...]"); |
| 672 | System.out.println(" -connect host:port - who to connect to " + |
| 673 | "(default is localhost:4433)"); |
| 674 | System.out.println(" -verify\t- turn on peer certificate " + |
| 675 | "verification"); |
| 676 | System.out.println(" -cert arg\t- certificate file to use"); |
| 677 | System.out.println(" -key arg\t- Private key file to use"); |
| 678 | System.out.println("\t\t Can repeat up to " + cert_size + |
| 679 | " times"); |
| 680 | System.out.println(" -CAfile arg\t- Certificate authority."); |
| 681 | System.out.println("\t\t Can repeat up to " + ca_cert_size + |
| 682 | " times"); |
| 683 | System.out.println(" -quiet\t\t- No client output"); |
| 684 | System.out.println(" -pass\t\t- private key file pass " + |
| 685 | "phrase source"); |
| 686 | System.out.println(" -reconnect\t- Drop and re-make the " + |
| 687 | "connection with the same Session-ID"); |
| 688 | |
| 689 | if (build_mode == axtlsj.SSL_BUILD_FULL_MODE) |
| 690 | { |
| 691 | System.out.println(" -debug\t\t- Print more output"); |
| 692 | System.out.println(" -state\t\t- Show state messages"); |
| 693 | System.out.println(" -show-rsa\t- Show RSA state"); |
| 694 | } |
| 695 | } |
| 696 | else |
| 697 | { |
| 698 | System.out.println("Change configuration to allow this feature"); |
| 699 | } |
| 700 | |
| 701 | System.exit(1); |
| 702 | } |
| 703 | |
| 704 | /** |
| 705 | * Display what cipher we are using |
no test coverage detected