int secType = Security.secTypeInvalid;
List<Integer> secTypes = new ArrayList<Integer>();
- secTypes = security.GetEnabledSecTypes();
+ secTypes = Security.GetEnabledSecTypes();
//for (Iterator i = secTypes.iterator(); i.hasNext(); )
// vlog.info(((Integer)i.next()).toString());
}
sslfactory = ctx.getSocketFactory();
try {
- ssl = (SSLSocket)sslfactory.createSocket(cc.sock,
- cc.sock.getInetAddress().getHostName(),
- cc.sock.getPort(), true);
+ ssl = (SSLSocket)sslfactory.createSocket(CConnection.sock,
+ CConnection.sock.getInetAddress().getHostName(),
+ CConnection.sock.getPort(), true);
} catch (java.io.IOException e) {
throw new Exception(e.toString());
}
private SSLSession session;
private String cafile, crlfile;
private InStream is;
- private OutStream os;
private SSLSocket ssl;
static LogWriter vlog = new LogWriter("CSecurityTLS");
Iterator j;
List<Integer> secTypes = new ArrayList<Integer>();
- secTypes = security.GetEnabledExtSecTypes();
+ secTypes = Security.GetEnabledExtSecTypes();
/* Honor server's security type order */
for (i = 0; i < nAvailableTypes; i++) {
int comp_ctl = is.readU8();
- int bytesPerPixel = handler.cp.pf().bpp / 8;
boolean bigEndian = handler.cp.pf().bigEndian;
// Flush zlib streams if we are told by the server to do so.
public boolean showMsgBox(int flags, String title, String text)
{
- StringBuffer titleText = new StringBuffer("VNC Viewer: "+title);
+ //StringBuffer titleText = new StringBuffer("VNC Viewer: "+title);
return true;
}
/* Process non-VeNCrypt sectypes */
java.util.List<Integer> secTypes = new ArrayList<Integer>();
- secTypes = security.GetEnabledSecTypes();
+ secTypes = Security.GetEnabledSecTypes();
for (Iterator i = secTypes.iterator(); i.hasNext();) {
switch ((Integer)i.next()) {
case Security.secTypeVeNCrypt:
/* Process VeNCrypt subtypes */
if (options.secVeNCrypt.isSelected()) {
java.util.List<Integer> secTypesExt = new ArrayList<Integer>();
- secTypesExt = security.GetEnabledExtSecTypes();
+ secTypesExt = Security.GetEnabledExtSecTypes();
for (Iterator iext = secTypesExt.iterator(); iext.hasNext();) {
switch ((Integer)iext.next()) {
case Security.secTypePlain:
}
public void itemStateChanged(ItemEvent e) {
- Object s = e.getSource();
+ //Object s = e.getSource();
}
public void actionPerformed(ActionEvent e) {