Display what cipher we are using
(SSL ssl)
| 705 | * Display what cipher we are using |
| 706 | */ |
| 707 | private void display_cipher(SSL ssl) |
| 708 | { |
| 709 | System.out.print("CIPHER is "); |
| 710 | |
| 711 | byte ciph_id = ssl.getCipherId(); |
| 712 | |
| 713 | if (ciph_id == axtlsj.SSL_AES128_SHA) |
| 714 | System.out.println("AES128-SHA"); |
| 715 | else if (ciph_id == axtlsj.SSL_AES256_SHA) |
| 716 | System.out.println("AES256-SHA"); |
| 717 | else if (ciph_id == axtlsj.SSL_RC4_128_SHA) |
| 718 | System.out.println("RC4-SHA"); |
| 719 | else if (ciph_id == axtlsj.SSL_RC4_128_MD5) |
| 720 | System.out.println("RC4-MD5"); |
| 721 | else |
| 722 | System.out.println("Unknown - " + ssl.getCipherId()); |
| 723 | } |
| 724 | |
| 725 | public char toHexChar(int i) |
| 726 | { |
no test coverage detected