manual test: explicitly set all request options 16/314516/3
authorKrzysztof Malysa <k.malysa@samsung.com>
Fri, 12 Jul 2024 15:49:46 +0000 (17:49 +0200)
committerKrzysztof Malysa <k.malysa@samsung.com>
Tue, 16 Jul 2024 14:49:52 +0000 (16:49 +0200)
Change-Id: I5c83eb2bf72f1756b76071109b310cdc999398fd

tests/man_tests.cpp

index 71832da9b62e8cd895ed07274fb8929c6c65c0e6..6a52e549dec11c148c3615ba2e6fd1d0bc71dcc8 100644 (file)
@@ -247,6 +247,12 @@ void TestMC(struct TestContents &testContents)
     mcOptions.pubkey_cred_params = &pubkeyCredParams;
     mcOptions.timeout = 60000; // 60s
     mcOptions.exclude_credentials = exclude_credentials.size > 0 ? &exclude_credentials : nullptr;
+    mcOptions.authenticator_selection = nullptr;
+    mcOptions.hints = nullptr;
+    mcOptions.attestation = AP_NONE;
+    mcOptions.attestation_formats = nullptr;
+    mcOptions.extensions = nullptr;
+    mcOptions.linked_device = nullptr;
 
     wauthn_mc_callbacks_s mcCallbacks;
     mcCallbacks.qrcode_callback = DisplayQRCallback;
@@ -315,8 +321,8 @@ void TestGA(struct TestContents &testContents)
     std::memset(&gaOptions, 0, sizeof(gaOptions)); // For future compatibility.
     gaOptions.timeout = 60000;                     // 60s
     gaOptions.rpId = RP_ID;
-    gaOptions.user_verification = UVR_REQUIRED;
     gaOptions.allow_credentials = &pubkeyCredDescriptors;
+    gaOptions.user_verification = UVR_REQUIRED;
     gaOptions.hints = nullptr;
     gaOptions.attestation = AP_NONE;
     gaOptions.attestation_formats = nullptr;