fpr is at least 16 chars and it is uppercase sync
authorVolker Birk <vb@pep-project.org>
Sat, 14 Dec 2019 11:05:30 +0100
branchsync
changeset 427610975e6e75c7
parent 4275 8e1a09dbad16
child 4277 397e03959517
fpr is at least 16 chars and it is uppercase
test/src/KeyResetMessageTest.cc
     1.1 --- a/test/src/KeyResetMessageTest.cc	Sat Dec 14 00:10:26 2019 +0100
     1.2 +++ b/test/src/KeyResetMessageTest.cc	Sat Dec 14 11:05:30 2019 +0100
     1.3 @@ -1441,18 +1441,18 @@
     1.4  TEST_F(KeyResetMessageTest, codec_test) {
     1.5      // create input values
     1.6  
     1.7 -    pEp_identity *ident1 = new_identity("alice@pep-project.org", "23", "42", "Alice Miller");
     1.8 +    pEp_identity *ident1 = new_identity("alice@pep-project.org", "FEDCBA9876543210", "42", "Alice Miller");
     1.9      ASSERT_NE(ident1, nullptr);
    1.10 -    const char *key1 = "0123456789abcdef";
    1.11 +    const char *key1 = "0123456789ABCDEF";
    1.12      keyreset_command *cmd1 = new_keyreset_command(ident1, key1);
    1.13      ASSERT_NE(cmd1, nullptr);
    1.14  
    1.15      keyreset_command_list *il = new_keyreset_command_list(cmd1);
    1.16      ASSERT_NE(il, nullptr);
    1.17  
    1.18 -    pEp_identity *ident2 = new_identity("alice@peptest.ch", "423", "42", "Alice Miller");
    1.19 +    pEp_identity *ident2 = new_identity("alice@peptest.ch", "0123456789ABCDEF", "42", "Alice Miller");
    1.20      ASSERT_NE(ident2, nullptr);
    1.21 -    const char *key2 = "fedcba9876543210";
    1.22 +    const char *key2 = "FEDCBA9876543210";
    1.23      keyreset_command *cmd2 = new_keyreset_command(ident2, key2);
    1.24      ASSERT_NE(cmd2, nullptr);
    1.25  
    1.26 @@ -1466,7 +1466,7 @@
    1.27      ASSERT_NE(il->command->new_key, nullptr);
    1.28  
    1.29      ASSERT_STREQ(il->command->ident->address, ident1->address);
    1.30 -    ASSERT_STRCASEEQ(il->command->ident->fpr, ident1->fpr);
    1.31 +    ASSERT_STREQ(il->command->ident->fpr, ident1->fpr);
    1.32      ASSERT_STREQ(il->command->ident->user_id, ident1->user_id);
    1.33      ASSERT_STREQ(il->command->ident->username, ident1->username);
    1.34      ASSERT_STREQ(il->command->new_key, key1);
    1.35 @@ -1477,7 +1477,7 @@
    1.36      ASSERT_NE(il->next->command->new_key, nullptr);
    1.37  
    1.38      ASSERT_STREQ(il->next->command->ident->address, ident2->address);
    1.39 -    ASSERT_STRCASEEQ(il->next->command->ident->fpr, ident2->fpr);
    1.40 +    ASSERT_STREQ(il->next->command->ident->fpr, ident2->fpr);
    1.41      ASSERT_STREQ(il->next->command->ident->user_id, ident2->user_id);
    1.42      ASSERT_STREQ(il->next->command->ident->username, ident2->username);
    1.43      ASSERT_STREQ(il->next->command->new_key, key2);
    1.44 @@ -1507,7 +1507,7 @@
    1.45      ASSERT_NE(ol->command->new_key, nullptr);
    1.46  
    1.47      ASSERT_STREQ(ol->command->ident->address, ident1->address);
    1.48 -    ASSERT_STRCASEEQ(ol->command->ident->fpr, ident1->fpr);
    1.49 +    ASSERT_STREQ(ol->command->ident->fpr, ident1->fpr);
    1.50      ASSERT_STREQ(ol->command->ident->user_id, ident1->user_id);
    1.51      ASSERT_STREQ(ol->command->ident->username, ident1->username);
    1.52      ASSERT_STREQ(ol->command->new_key, key1);
    1.53 @@ -1518,7 +1518,7 @@
    1.54      ASSERT_NE(ol->next->command->new_key, nullptr);
    1.55  
    1.56      ASSERT_STREQ(ol->next->command->ident->address, ident2->address);
    1.57 -    ASSERT_STRCASEEQ(ol->next->command->ident->fpr, ident2->fpr);
    1.58 +    ASSERT_STREQ(ol->next->command->ident->fpr, ident2->fpr);
    1.59      ASSERT_STREQ(ol->next->command->ident->user_id, ident2->user_id);
    1.60      ASSERT_STREQ(ol->next->command->ident->username, ident2->username);
    1.61      ASSERT_STREQ(ol->next->command->new_key, key2);