#include <rfb/ScaleFilters.h>
#include <rfb_win32/MsgBox.h>
#include <rfb_win32/Registry.h>
+#include <rfb/SecurityClient.h>
#include <rdr/HexInStream.h>
#include <rdr/HexOutStream.h>
#include <stdlib.h>
qualityLevel(::qualityLevel),
passwordFile(::passwordFile.getData())
{
+ char *sectypes;
+
if (autoSelect) {
preferredEncoding = encodingTight;
} else {
// Default to CustomCompressLevel=1 if CompressLevel is used.
customCompressLevel = ::compressLevel.hasBeenSet();
}
+
+ sectypes = SecurityClient::secTypes.getDefaultStr();
+ secTypes = parseSecTypes(sectypes);
+ delete [] sectypes;
}
autoScaling = atoi(value.buf);
} else if (stricmp(name.buf, "Scale") == 0) {
scale = atoi(value.buf);
+ } else if (stricmp(name.buf, "SecurityTypes") == 0) {
+ secTypes = parseSecTypes(value.buf);
}
}
}
fprintf(f, "QualityLevel=%d\n", qualityLevel);
fprintf(f, "AutoScaling=%d\n", (int)autoScaling);
fprintf(f, "Scale=%d\n", scale);
+
+ fprintf(f, "SecurityTypes=");
+ std::list<rdr::U32>::iterator i;
+ for (i = secTypes.begin(); i != secTypes.end(); i++)
+ fprintf(f, "%s,", secTypeName(*i));
+ fprintf(f, "\n");
+
fclose(f); f=0;
setConfigFileName(filename);