remove is_conditional_mediation_available from API 68/308168/1
authorDongsun Lee <ds73.lee@samsung.com>
Tue, 19 Mar 2024 03:01:01 +0000 (12:01 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Tue, 19 Mar 2024 03:01:01 +0000 (12:01 +0900)
Change-Id: I78addbf3907abbda9fa9b8006da498b1a75a3c1a

include/webauthn-types.h
tests/serialization-test.cpp
tests/webauthn-client-test.cpp

index c983dffb54ff6ede7b7c1f0510db7da3fa57c232..4cf32f1484bcae8148b4a3b8aa094d281153bae7 100644 (file)
@@ -473,7 +473,6 @@ typedef struct __wauthn_pubkey_credential_attestaion {
     wauthn_authenticator_attestation_response_s *response;
     wauthn_authenticator_attachment_e authenticator_attachment;
     wauthn_authentication_exts_s *extensions;
-    bool is_conditional_mediation_available;
     wauthn_const_buffer_s *json_data;
     wauthn_hybrid_linked_data_s *linked_device;
 } wauthn_pubkey_credential_attestaion_s;
@@ -495,7 +494,6 @@ typedef struct __wauthn_pubkey_credential_assertion {
     wauthn_authenticator_assertion_response_s *response;
     wauthn_authenticator_attachment_e authenticator_attachment;
     wauthn_authentication_exts_s *extensions;
-    bool is_conditional_mediation_available;
     wauthn_const_buffer_s *json_data;
     wauthn_hybrid_linked_data_s *linked_device;
 } wauthn_pubkey_credential_assertion_s;
index 7549b851e630efcf72c645dbe3210bd645e879d5..abfc515e8f2efedecf3b33ee3a88b8e0fd40ad98 100644 (file)
@@ -173,18 +173,15 @@ namespace SerializationTestData {
     wauthn_pubkey_cred_request_options_s emptyPubkeyCredRequestOptions = {nullptr, 0, nullptr,
             nullptr, UVR_NONE, nullptr, AP_NONE, nullptr, nullptr, nullptr};
 
-    bool is_conditional_mediation_available = false;
     wauthn_pubkey_credential_attestaion_s pubkeyCredentialAttestation = {&bufferId, pubkeyCredType, &bufferId0,
-            &authenticatorAttestationResponse, attachment, &authenticationExts2, is_conditional_mediation_available,
-            &buffer1, &hybirdLinkedData};
+            &authenticatorAttestationResponse, attachment, &authenticationExts2, &buffer1, &hybirdLinkedData};
     wauthn_pubkey_credential_attestaion_s emptyPubkeyCredentialAttestation = {nullptr, pubkeyCredType, nullptr,
-            nullptr, attachment, nullptr, is_conditional_mediation_available, nullptr, nullptr};
+            nullptr, attachment, nullptr, nullptr, nullptr};
 
     wauthn_pubkey_credential_assertion_s pubkeyCredentialAssertion = {&bufferId, pubkeyCredType, &bufferId0,
-            &authenticatorAssertionResponse, attachment, &authenticationExts2, is_conditional_mediation_available,
-            &buffer1, &hybirdLinkedData};
+            &authenticatorAssertionResponse, attachment, &authenticationExts2, &buffer1, &hybirdLinkedData};
     wauthn_pubkey_credential_assertion_s emptyPubkeyCredentialAssertion = {nullptr, pubkeyCredType, nullptr,
-            nullptr, attachment, nullptr, is_conditional_mediation_available, nullptr, nullptr};
+            nullptr, attachment, nullptr, nullptr, nullptr};
 
     wauthn_hash_algorithm_e hashAlg = WAUTHN_HASH_ALGORITHM_SHA_256;
     wauthn_client_data_s clientData = {&bufferId, hashAlg};
@@ -1145,8 +1142,6 @@ bool __compareWAuthnPubkeyCredentialAttestionS(const wauthn_pubkey_credential_at
         return false;
     if(__compareWAuthnAuthenticationExtsS(expected->extensions, actual->extensions) == false)
         return false;
-    if (expected->is_conditional_mediation_available != actual->is_conditional_mediation_available)
-        return false;
     if(__compareWAuthnBuffers(expected->json_data, actual->json_data) == false)
         return false;
     if(__compareWAuthnHybridLinkedDataS(expected->linked_device, actual->linked_device) == false)
@@ -1207,8 +1202,6 @@ bool __compareWAuthnPubkeyCredentialAssertionS(const wauthn_pubkey_credential_as
         return false;
     if(__compareWAuthnAuthenticationExtsS(expected->extensions, actual->extensions) == false)
         return false;
-    if (expected->is_conditional_mediation_available != actual->is_conditional_mediation_available)
-        return false;
     if(__compareWAuthnBuffers(expected->json_data, actual->json_data) == false)
         return false;
     if(__compareWAuthnHybridLinkedDataS(expected->linked_device, actual->linked_device) == false)
index 1382d4412f4f53393ecc4b1283645a3cf91dd60c..5991a5ecdd6e7a65d38b7e4ef67a1f80a3a715ec 100644 (file)
@@ -182,18 +182,15 @@ namespace CommonTestData {
     wauthn_pubkey_cred_request_options_s emptyPubkeyCredRequestOptions = {nullptr, 0, nullptr,
             nullptr, UVR_NONE, nullptr, AP_NONE, nullptr, nullptr, nullptr};
 
-    bool is_conditional_mediation_available = false;
     wauthn_pubkey_credential_attestaion_s pubkeyCredentialAttestation = {&bufferId, pubkeyCredType, &bufferId0,
-            &authenticatorAttestationResponse, attachment, &authenticationExts2, is_conditional_mediation_available,
-            &buffer1, &hybirdLinkedData};
+            &authenticatorAttestationResponse, attachment, &authenticationExts2, &buffer1, &hybirdLinkedData};
     wauthn_pubkey_credential_attestaion_s emptyPubkeyCredentialAttestation = {nullptr, pubkeyCredType, nullptr,
-            nullptr, attachment, nullptr, is_conditional_mediation_available, nullptr, nullptr};
+            nullptr, attachment, nullptr, nullptr, nullptr};
 
     wauthn_pubkey_credential_assertion_s pubkeyCredentialAssertion = {&bufferId, pubkeyCredType, &bufferId0,
-            &authenticatorAssertionResponse, attachment, &authenticationExts2, is_conditional_mediation_available,
-            &buffer1, &hybirdLinkedData};
+            &authenticatorAssertionResponse, attachment, &authenticationExts2, &buffer1, &hybirdLinkedData};
     wauthn_pubkey_credential_assertion_s emptyPubkeyCredentialAssertion = {nullptr, pubkeyCredType, nullptr,
-            nullptr, attachment, nullptr, is_conditional_mediation_available, nullptr, nullptr};
+            nullptr, attachment, nullptr, nullptr, nullptr};
 
     wauthn_hash_algorithm_e hashAlg = WAUTHN_HASH_ALGORITHM_SHA_256;
     wauthn_client_data_s clientData = {&bufferId, hashAlg};