1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
- using System;
- using System.Globalization;
- using System.IO;
- using System.Text;
- using Org.BouncyCastle.Utilities.Encoders;
- namespace Org.BouncyCastle.Asn1.X509
- {
-
- public abstract class X509NameEntryConverter
- {
-
- protected Asn1Object ConvertHexEncoded(
- string hexString,
- int offset)
- {
- string str = hexString.Substring(offset);
- return Asn1Object.FromByteArray(Hex.Decode(str));
- }
-
- protected bool CanBePrintable(
- string str)
- {
- return DerPrintableString.IsPrintableString(str);
- }
-
- public abstract Asn1Object GetConvertedValue(DerObjectIdentifier oid, string value);
- }
- }
- #endif
|