Skip to content

Commit 95c800c

Browse files
authored
Merge pull request #416 from TTEMMA/bugfix/general-string-as-utf8
Changing encoding for GeneralString to UTF8
2 parents 77e10aa + 9ba0214 commit 95c800c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Kerberos.NET/Asn1/Experimental/GeneralStringEncoding.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// -----------------------------------------------------------------------
55

6+
using System.Text;
7+
68
namespace System.Security.Cryptography.Asn1
79
{
8-
internal class GeneralStringEncoding : IA5Encoding
10+
internal class GeneralStringEncoding : UTF8Encoding
911
{
12+
public GeneralStringEncoding(): base(false, throwOnInvalidBytes: true) { }
1013
}
1114
}

0 commit comments

Comments
 (0)