This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ public static string ToHexStringUpper(this byte[] bytes)
35
35
36
36
// Decode a hex string-encoded byte array passed to various X509 crypto api. The parsing rules are overly forgiving but for compat reasons,
37
37
// they cannot be tightened.
38
- public static byte [ ] DecodeHexString ( this String s )
38
+ public static byte [ ] DecodeHexString ( this string s )
39
39
{
40
40
int whitespaceCount = 0 ;
41
41
42
42
for ( int i = 0 ; i < s . Length ; i ++ )
43
43
{
44
- if ( Char . IsWhiteSpace ( s [ i ] ) )
44
+ if ( char . IsWhiteSpace ( s [ i ] ) )
45
45
whitespaceCount ++ ;
46
46
}
47
47
@@ -50,7 +50,7 @@ public static byte[] DecodeHexString(this String s)
50
50
51
51
for ( int index = 0 , i = 0 ; index < cbHex ; index ++ )
52
52
{
53
- if ( Char . IsWhiteSpace ( s [ i ] ) )
53
+ if ( char . IsWhiteSpace ( s [ i ] ) )
54
54
{
55
55
i ++ ;
56
56
}
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ private static void ValidateOidValue(String keyValue)
449
449
for ( int i = 1 ; i < len ; i ++ )
450
450
{
451
451
// ensure every character is either a digit or a dot
452
- if ( Char . IsDigit ( keyValue [ i ] ) )
452
+ if ( char . IsDigit ( keyValue [ i ] ) )
453
453
continue ;
454
454
if ( keyValue [ i ] != '.' || keyValue [ i + 1 ] == '.' ) // disallow double dots
455
455
throw new ArgumentException ( SR . Argument_InvalidOidValue ) ;
You can’t perform that action at this time.
0 commit comments