PORT_Assert(ss->enableSSL3 || ss->enableTLS);
PORT_Assert(ss->opt.enableSSL3 || ss->opt.enableTLS);
ssl3_NegotiateVersion(sslSocket *ss, SSL3ProtocolVersion peerVersion){    SSL3ProtocolVersion version;    SSL3ProtocolVersion maxVersion;    if (ss->enableTLS) {	maxVersion = SSL_LIBRARY_VERSION_3_1_TLS;    } else if (ss->enableSSL3) {	maxVersion = SSL_LIBRARY_VERSION_3_0;    } else {    	/* what are we doing here? */	PORT_Assert(ss->enableSSL3 || ss->enableTLS);	PORT_SetError(SSL_ERROR_SSL_DISABLED);	return SECFailure;    }    ss->version = version = PR_MIN(maxVersion, peerVersion);    if ((version == SSL_LIBRARY_VERSION_3_1_TLS && ss->enableTLS) ||    	(version == SSL_LIBRARY_VERSION_3_0     && ss->enableSSL3)) {	return SECSuccess;    }    PORT_SetError(SSL_ERROR_NO_CYPHER_OVERLAP);    return SECFailure;}