using Asn1;
using Crypto;
+using IO;
using SSLTLS;
using XKeys;
string[] r = JSON.GetStringArray(conf, "versions");
int[] vv = new int[r.Length];
for (int i = 0; i < r.Length; i ++) {
- vv[i] = GetVersionByName(r[i]);
+ vv[i] = SSL.GetVersionByName(r[i]);
}
return vv;
}
+ /* obsolete
internal static int GetVersionByName(string s)
{
s = s.Replace(" ", "").Replace(".", "").ToUpperInvariant();
"Unknown version: '{0}'", s));
}
}
+ */
int[] GetCipherSuites()
{
{
int[] r = new int[ss.Length];
for (int i = 0; i < ss.Length; i ++) {
- r[i] = GetSuiteByName(ss[i]);
+ r[i] = SSL.GetSuiteByName(ss[i]);
}
return r;
}
+ /* obsolete
internal static int GetSuiteByName(string s)
{
switch (s) {
"Unknown cipher suite: '{0}'", s));
}
}
+ */
int[] GetHashAndSigns()
{
{
int[] r = new int[ss.Length];
for (int i = 0; i < ss.Length; i ++) {
- r[i] = GetHashAndSignByName(ss[i]);
+ r[i] = SSL.GetHashAndSignByName(ss[i]);
}
return r;
}
+ /* obsolete
internal static int GetHashAndSignByName(string s)
{
switch (s) {
"Unknown hash-and-sign: '{0}'", s));
}
}
+ */
int[] GetCurves()
{
{
int[] r = new int[ss.Length];
for (int i = 0; i < ss.Length; i ++) {
- r[i] = GetCurveByName(ss[i]);
+ r[i] = SSL.GetCurveByName(ss[i]);
}
return r;
}
+ /* obsolete
internal static int GetCurveByName(string s)
{
switch (s) {
"Unknown curve: '{0}'", s));
}
}
+ */
/*
* RunEnum() builds and runs synthetic tests that exercise all
*/
string svmin;
if (JSON.TryGetString(obj, "versionMin", out svmin)) {
- eng.VersionMin = GetVersionByName(svmin);
+ eng.VersionMin = SSL.GetVersionByName(svmin);
} else {
eng.VersionMin = versionMin;
}
*/
string svmax;
if (JSON.TryGetString(obj, "versionMax", out svmax)) {
- eng.VersionMax = GetVersionByName(svmax);
+ eng.VersionMax = SSL.GetVersionByName(svmax);
} else {
eng.VersionMax = versionMax;
}