Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit caa61ee

Browse files
buildbot171justcoding121
authored andcommitted
Organize files for readability
1 parent 7c31141 commit caa61ee

38 files changed

+281
-281
lines changed

Diff for: src/Titanium.Web.Proxy/Certificates/BCCertificateMaker.cs renamed to src/Titanium.Web.Proxy/Certificates/Makers/BCCertificateMaker.cs

+237-237
Large diffs are not rendered by default.

Diff for: src/Titanium.Web.Proxy/Certificates/WinCertificateMaker.cs renamed to src/Titanium.Web.Proxy/Certificates/Makers/WinCertificateMaker.cs

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
using System.Net;
2+
using System.Net;
33
using System.Reflection;
44
using System.Security.Cryptography.X509Certificates;
55
using System.Threading;
@@ -221,9 +221,9 @@ private X509Certificate2 makeCertificate(string subject, string fullSubject,
221221

222222
var altNameCollection = Activator.CreateInstance(typeAltNamesCollection);
223223
var extNames = Activator.CreateInstance(typeExtNames);
224-
var altDnsNames = Activator.CreateInstance(typeCAlternativeName);
225-
226-
IPAddress ip;
224+
var altDnsNames = Activator.CreateInstance(typeCAlternativeName);
225+
226+
IPAddress ip;
227227
if (IPAddress.TryParse(subject, out ip))
228228
{
229229
String ipBase64 = Convert.ToBase64String(ip.GetAddressBytes());
@@ -308,45 +308,45 @@ private X509Certificate2 makeCertificate(string subject, string fullSubject,
308308
return new X509Certificate2(Convert.FromBase64String(empty), string.Empty, X509KeyStorageFlags.Exportable);
309309
}
310310

311-
}
312-
313-
public enum EncodingType
314-
{
315-
XCN_CRYPT_STRING_ANY = 7,
316-
XCN_CRYPT_STRING_BASE64 = 1,
317-
XCN_CRYPT_STRING_BASE64_ANY = 6,
318-
XCN_CRYPT_STRING_BASE64HEADER = 0,
319-
XCN_CRYPT_STRING_BASE64REQUESTHEADER = 3,
320-
XCN_CRYPT_STRING_BASE64URI = 13,
321-
XCN_CRYPT_STRING_BASE64X509CRLHEADER = 9,
322-
XCN_CRYPT_STRING_BINARY = 2,
323-
XCN_CRYPT_STRING_CHAIN = 0x100,
324-
XCN_CRYPT_STRING_ENCODEMASK = 0xff,
325-
XCN_CRYPT_STRING_HASHDATA = 0x10000000,
326-
XCN_CRYPT_STRING_HEX = 4,
327-
XCN_CRYPT_STRING_HEX_ANY = 8,
328-
XCN_CRYPT_STRING_HEXADDR = 10,
329-
XCN_CRYPT_STRING_HEXASCII = 5,
330-
XCN_CRYPT_STRING_HEXASCIIADDR = 11,
331-
XCN_CRYPT_STRING_HEXRAW = 12,
332-
XCN_CRYPT_STRING_NOCR = -2147483648,
333-
XCN_CRYPT_STRING_NOCRLF = 0x40000000,
334-
XCN_CRYPT_STRING_PERCENTESCAPE = 0x8000000,
335-
XCN_CRYPT_STRING_STRICT = 0x20000000,
336-
XCN_CRYPT_STRING_TEXT = 0x200
337-
}
338-
339-
public enum AlternativeNameType
340-
{
341-
XCN_CERT_ALT_NAME_DIRECTORY_NAME = 5,
342-
XCN_CERT_ALT_NAME_DNS_NAME = 3,
343-
XCN_CERT_ALT_NAME_GUID = 10,
344-
XCN_CERT_ALT_NAME_IP_ADDRESS = 8,
345-
XCN_CERT_ALT_NAME_OTHER_NAME = 1,
346-
XCN_CERT_ALT_NAME_REGISTERED_ID = 9,
347-
XCN_CERT_ALT_NAME_RFC822_NAME = 2,
348-
XCN_CERT_ALT_NAME_UNKNOWN = 0,
349-
XCN_CERT_ALT_NAME_URL = 7,
350-
XCN_CERT_ALT_NAME_USER_PRINCIPLE_NAME = 11
311+
}
312+
313+
public enum EncodingType
314+
{
315+
XCN_CRYPT_STRING_ANY = 7,
316+
XCN_CRYPT_STRING_BASE64 = 1,
317+
XCN_CRYPT_STRING_BASE64_ANY = 6,
318+
XCN_CRYPT_STRING_BASE64HEADER = 0,
319+
XCN_CRYPT_STRING_BASE64REQUESTHEADER = 3,
320+
XCN_CRYPT_STRING_BASE64URI = 13,
321+
XCN_CRYPT_STRING_BASE64X509CRLHEADER = 9,
322+
XCN_CRYPT_STRING_BINARY = 2,
323+
XCN_CRYPT_STRING_CHAIN = 0x100,
324+
XCN_CRYPT_STRING_ENCODEMASK = 0xff,
325+
XCN_CRYPT_STRING_HASHDATA = 0x10000000,
326+
XCN_CRYPT_STRING_HEX = 4,
327+
XCN_CRYPT_STRING_HEX_ANY = 8,
328+
XCN_CRYPT_STRING_HEXADDR = 10,
329+
XCN_CRYPT_STRING_HEXASCII = 5,
330+
XCN_CRYPT_STRING_HEXASCIIADDR = 11,
331+
XCN_CRYPT_STRING_HEXRAW = 12,
332+
XCN_CRYPT_STRING_NOCR = -2147483648,
333+
XCN_CRYPT_STRING_NOCRLF = 0x40000000,
334+
XCN_CRYPT_STRING_PERCENTESCAPE = 0x8000000,
335+
XCN_CRYPT_STRING_STRICT = 0x20000000,
336+
XCN_CRYPT_STRING_TEXT = 0x200
337+
}
338+
339+
public enum AlternativeNameType
340+
{
341+
XCN_CERT_ALT_NAME_DIRECTORY_NAME = 5,
342+
XCN_CERT_ALT_NAME_DNS_NAME = 3,
343+
XCN_CERT_ALT_NAME_GUID = 10,
344+
XCN_CERT_ALT_NAME_IP_ADDRESS = 8,
345+
XCN_CERT_ALT_NAME_OTHER_NAME = 1,
346+
XCN_CERT_ALT_NAME_REGISTERED_ID = 9,
347+
XCN_CERT_ALT_NAME_RFC822_NAME = 2,
348+
XCN_CERT_ALT_NAME_UNKNOWN = 0,
349+
XCN_CERT_ALT_NAME_URL = 7,
350+
XCN_CERT_ALT_NAME_USER_PRINCIPLE_NAME = 11
351351
}
352352
}

0 commit comments

Comments
 (0)