From 7068be9cd5c3007d7c74791ed3e70864dd5af283 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Wed, 10 Apr 2019 13:13:38 -0400 Subject: [PATCH] reorder options --- fido2/ctap.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/fido2/ctap.c b/fido2/ctap.c index ccc2a4f..c7f2d55 100644 --- a/fido2/ctap.c +++ b/fido2/ctap.c @@ -123,13 +123,6 @@ uint8_t ctap_get_info(CborEncoder * encoder) ret = cbor_encoder_create_map(&map, &options,4); check_ret(ret); { - ret = cbor_encode_text_string(&options, "plat", 4); - check_ret(ret); - { - ret = cbor_encode_boolean(&options, 0); // Not attached to platform - check_ret(ret); - } - ret = cbor_encode_text_string(&options, "rk", 2); check_ret(ret); { @@ -153,6 +146,15 @@ uint8_t ctap_get_info(CborEncoder * encoder) // ret = cbor_encode_boolean(&options, 0); // check_ret(ret); // } + + ret = cbor_encode_text_string(&options, "plat", 4); + check_ret(ret); + { + ret = cbor_encode_boolean(&options, 0); // Not attached to platform + check_ret(ret); + } + + ret = cbor_encode_text_string(&options, "clientPin", 9); check_ret(ret); {