File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -131,17 +131,20 @@ public enum WebAuthn {
131
131
static func parseAttestationObject( _ bytes: [ UInt8 ] , logger: Logger ) throws -> AttestedCredentialData ? {
132
132
let minAuthDataLength = 37
133
133
let minAttestedAuthLength = 55
134
- let maxCredentialIDLength = 1023
134
+ // TODO - fix
135
+ // let maxCredentialIDLength = 1023
135
136
// What to do when we don't have this
136
137
var credentialsData : AttestedCredentialData ? = nil
137
138
138
139
guard bytes. count >= minAuthDataLength else {
139
140
throw WebAuthnError . authDataTooShort
140
141
}
141
142
142
- let rpIDHashData = bytes [ ..< 32 ]
143
+ // TODO: Use
144
+ // let rpIDHashData = bytes[..<32]
143
145
let flags = AuthenticatorFlags ( bytes [ 32 ] )
144
- let counter : UInt32 = Data ( bytes [ 33 ..< 37 ] ) . toInteger ( endian: . big)
146
+ // TODO: Use
147
+ // let counter: UInt32 = Data(bytes[33..<37]).toInteger(endian: .big)
145
148
146
149
var remainingCount = bytes. count - minAuthDataLength
147
150
You can’t perform that action at this time.
0 commit comments