Addressing post-submit comments regarding OpenSSL handhake changes

Following up on feedback from earlier change https://android-git.corp.google.com/g/50435

    Added new test_SSLSocket_startHandshake_noClientCertificate to
    make sure handshaking works when no client certificates are
    present after issues raised by hwu during code review.

	luni/src/test/java/javax/net/ssl/SSLSocketTest.java

    Improve TestSSLContext.create* options
    - added javadoc comments to help distinguish different versions
    - fixed bug of not passing in keyStorePassword in create()
    - added new createClient(server) method to create a TestSSLContext
      that trusts the provided server TestSSLContext's certificate for
      use by test_SSLSocket_startHandshake_noClientCertificate
    - made createKeyStore optionally create a more minimal keystore if
      aliases are not present
	support/src/test/java/javax/net/ssl/TestSSLContext.java

    Fixed argument names in SSL_*_mode methods names as pointed out by hwu

	luni/src/main/java/org/apache/harmony/xnet/provider/jsse/NativeCrypto.java

    Added comment to explain purpose of OpenSSLSessionImpl.resetId.

	luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLSessionImpl.java

    Two changes to OpenSocketImpl
    - Added logging on runtime exception catch around
      HandshakeCompletedListener execution to closely mirror RI
      behavior.
    - Cleaned up peerCertificate check to not just be on the client path.

	luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLSocketImpl.java

    Addressed enh's comments about using clearEnv and when to delete AppData

	luni/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp

Change-Id: I34f54e3e41a5d53d81fdc22aa34ca4de4ee9826f
6 files changed