Skip to content

Commit 52cd471

Browse files
iamcarbonabergs
authored andcommitted
Improve nullability annotations
1 parent f6903a8 commit 52cd471

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Src/Fido2/AttestationFormat/AttestationVerifier.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ internal bool TryGetSig([NotNullWhen(true)] out byte[]? sig)
7171
return false;
7272
}
7373

74-
#nullable disable
75-
76-
internal static byte[] AaguidFromAttnCertExts(X509ExtensionCollection exts)
74+
internal static byte[]? AaguidFromAttnCertExts(X509ExtensionCollection exts)
7775
{
78-
byte[] aaguid = null;
76+
byte[]? aaguid = null;
7977
var ext = exts.FirstOrDefault(static e => e.Oid?.Value is "1.3.6.1.4.1.45724.1.1.4"); // id-fido-gen-ce-aaguid
8078
if (ext != null)
8179
{
@@ -127,6 +125,8 @@ internal static byte U2FTransportsFromAttnCert(X509ExtensionCollection exts)
127125
return u2ftransports;
128126
}
129127

128+
#nullable disable
129+
130130
public virtual (AttestationType, X509Certificate2[]) Verify(CborMap attStmt, byte[] authenticatorData, byte[] clientDataHash)
131131
{
132132
_attStmt = attStmt;

0 commit comments

Comments
 (0)