ENGINE-463: get_trust_by_userid ENGINE-463
authorKrista Bennett <krista@pep-project.org>
Tue, 02 Oct 2018 15:04:11 +0200
branchENGINE-463
changeset 2967bb34d5f60fd5
parent 2966 29f67097eaf0
child 2968 ef444e5152b3
ENGINE-463: get_trust_by_userid
src/pEpEngine.c
src/pEpEngine.h
src/pEp_internal.h
test/src/SuiteMaker.cc
     1.1 --- a/src/pEpEngine.c	Tue Oct 02 13:32:52 2018 +0200
     1.2 +++ b/src/pEpEngine.c	Tue Oct 02 15:04:11 2018 +0200
     1.3 @@ -113,7 +113,6 @@
     1.4  
     1.5  static const char *sql_get_identities_by_address =  
     1.6      "select user_id, identity.main_key_id, username, lang,"
     1.7 -
     1.8      "   identity.flags, is_own"
     1.9      "   from identity"
    1.10      "   join person on id = identity.user_id"
    1.11 @@ -126,7 +125,7 @@
    1.12      "   timestamp desc; ";
    1.13      
    1.14  static const char* sql_get_identities_by_userid =
    1.15 -    "select address, identity.main_key_id, username, lang"
    1.16 +    "select address, identity.main_key_id, username, lang,"
    1.17      "   identity.flags, is_own"
    1.18      "   from identity"
    1.19      "   join person on id = identity.user_id"
    1.20 @@ -319,6 +318,9 @@
    1.21      "select comm_type from trust where user_id = ?1 "
    1.22      "and pgp_keypair_fpr = upper(replace(?2,' ','')) ;";
    1.23  
    1.24 +static const char *sql_get_trust_by_userid = 
    1.25 +    "select pgp_keypair_fpr, comm_type from trust where user_id = ?1 ";
    1.26 +
    1.27  static const char *sql_least_trust = 
    1.28      "select min(comm_type) from trust where"
    1.29      " pgp_keypair_fpr = upper(replace(?1,' ',''))"
    1.30 @@ -1214,6 +1216,10 @@
    1.31              (int)strlen(sql_get_trust), &_session->get_trust, NULL);
    1.32      assert(int_result == SQLITE_OK);
    1.33  
    1.34 +    int_result = sqlite3_prepare_v2(_session->db, sql_get_trust_by_userid,
    1.35 +            (int)strlen(sql_get_trust_by_userid), &_session->get_trust_by_userid, NULL);
    1.36 +    assert(int_result == SQLITE_OK);
    1.37 +
    1.38      int_result = sqlite3_prepare_v2(_session->db, sql_least_trust,
    1.39              (int)strlen(sql_least_trust), &_session->least_trust, NULL);
    1.40      assert(int_result == SQLITE_OK);
    1.41 @@ -1453,6 +1459,8 @@
    1.42                  sqlite3_finalize(session->update_trust_for_fpr);
    1.43              if (session->get_trust)
    1.44                  sqlite3_finalize(session->get_trust);
    1.45 +            if (session->get_trust_by_userid)
    1.46 +                sqlite3_finalize(session->get_trust_by_userid);                
    1.47              if (session->least_trust)
    1.48                  sqlite3_finalize(session->least_trust);
    1.49              if (session->mark_compromised)
    1.50 @@ -3112,6 +3120,35 @@
    1.51      return status;
    1.52  }
    1.53  
    1.54 +PEP_STATUS get_trust_by_userid(PEP_SESSION session, const char* user_id,
    1.55 +                                           labeled_int_list_t** trust_list)
    1.56 +{
    1.57 +    int result;
    1.58 +
    1.59 +    if (!(session && user_id && user_id[0]))
    1.60 +        return PEP_ILLEGAL_VALUE;
    1.61 +
    1.62 +    *trust_list = NULL;
    1.63 +    labeled_int_list_t* t_list = new_labeled_int_list(0, NULL); // empty
    1.64 +
    1.65 +    sqlite3_reset(session->get_trust_by_userid);
    1.66 +    sqlite3_bind_text(session->get_trust_by_userid, 1, user_id, -1, SQLITE_STATIC);
    1.67 +
    1.68 +    while ((result = sqlite3_step(session->get_trust_by_userid)) == SQLITE_ROW) {
    1.69 +        labeled_int_list_add(t_list, sqlite3_column_int(session->get_trust_by_userid, 1),
    1.70 +                            (const char *) sqlite3_column_text(session->get_trust_by_userid, 0));
    1.71 +    }
    1.72 +
    1.73 +    sqlite3_reset(session->get_trust_by_userid);
    1.74 +
    1.75 +    if (!t_list->label)
    1.76 +        free_labeled_int_list(t_list);
    1.77 +    else
    1.78 +        *trust_list = t_list;
    1.79 +        
    1.80 +    return PEP_STATUS_OK;
    1.81 +}
    1.82 +
    1.83  DYNAMIC_API PEP_STATUS least_trust(
    1.84          PEP_SESSION session,
    1.85          const char *fpr,
     2.1 --- a/src/pEpEngine.h	Tue Oct 02 13:32:52 2018 +0200
     2.2 +++ b/src/pEpEngine.h	Tue Oct 02 15:04:11 2018 +0200
     2.3 @@ -13,7 +13,8 @@
     2.4  
     2.5  #include "dynamic_api.h"
     2.6  #include "stringlist.h"
     2.7 -#include "stringpair.h"    
     2.8 +#include "stringpair.h"
     2.9 +#include "labeled_int_list.h"    
    2.10  #include "timestamp.h"
    2.11  
    2.12  #define PEP_VERSION "2.0" // protocol version
     3.1 --- a/src/pEp_internal.h	Tue Oct 02 13:32:52 2018 +0200
     3.2 +++ b/src/pEp_internal.h	Tue Oct 02 15:04:11 2018 +0200
     3.3 @@ -157,6 +157,7 @@
     3.4      sqlite3_stmt *exists_trust_entry;
     3.5      sqlite3_stmt *update_trust_for_fpr;
     3.6      sqlite3_stmt *get_trust;
     3.7 +    sqlite3_stmt *get_trust_by_userid;
     3.8      sqlite3_stmt *least_trust;
     3.9      sqlite3_stmt *mark_compromised;
    3.10      sqlite3_stmt *reset_trust;
     4.1 --- a/test/src/SuiteMaker.cc	Tue Oct 02 13:32:52 2018 +0200
     4.2 +++ b/test/src/SuiteMaker.cc	Tue Oct 02 15:04:11 2018 +0200
     4.3 @@ -12,82 +12,82 @@
     4.4  #include "SuiteMaker.h"
     4.5  
     4.6  // Begin where we generate stuff
     4.7 +#include "DecorateTests.h"
     4.8 +#include "ReencryptPlusExtraKeysTests.h"
     4.9 +#include "BlacklistTests.h"
    4.10 +#include "AppleMailTests.h"
    4.11 +#include "MessageTwoPointOhTests.h"
    4.12 +#include "IdentityListTests.h"
    4.13 +#include "I18nTests.h"
    4.14 +#include "DecryptAttachPrivateKeyUntrustedTests.h"
    4.15 +#include "BCCTests.h"
    4.16 +#include "LeastColorGroupTests.h"
    4.17 +#include "MistrustUndoTests.h"
    4.18 +#include "BlacklistAcceptNewKeyTests.h"
    4.19 +#include "MessageApiTests.h"
    4.20 +#include "StringlistTests.h"
    4.21 +#include "StringpairListTests.h"
    4.22 +#include "TrustManipulationTests.h"
    4.23 +#include "EncryptAttachPrivateKeyTests.h"
    4.24 +#include "BloblistTests.h"
    4.25 +#include "SequenceTests.h"
    4.26 +#include "TrustwordsTests.h"
    4.27 +#include "RevokeRegenAttachTests.h"
    4.28 +#include "EncryptMissingPrivateKeyTests.h"
    4.29 +#include "PepSubjectReceivedTests.h"
    4.30 +#include "KeyeditTests.h"
    4.31  #include "MapAsn1Tests.h"
    4.32 -#include "DecorateTests.h"
    4.33 -#include "EncryptMissingPrivateKeyTests.h"
    4.34 -#include "KeyeditTests.h"
    4.35 -#include "BlacklistAcceptNewKeyTests.h"
    4.36 -#include "DecryptAttachPrivateKeyUntrustedTests.h"
    4.37 -#include "AppleMailTests.h"
    4.38 +#include "PgpBinaryTests.h"
    4.39 +#include "DecryptAttachPrivateKeyTrustedTests.h"
    4.40 +#include "MessageNullFromTests.h"
    4.41 +#include "MimeTests.h"
    4.42 +#include "PgpListKeysTests.h"
    4.43 +#include "NewUpdateIdAndMyselfTests.h"
    4.44 +#include "EncryptForIdentityTests.h"
    4.45 +#include "CrashdumpTests.h"
    4.46  #include "CaseAndDotAddressTests.h"
    4.47 -#include "SequenceTests.h"
    4.48 -#include "BCCTests.h"
    4.49 -#include "MessageApiTests.h"
    4.50 -#include "I18nTests.h"
    4.51 -#include "CrashdumpTests.h"
    4.52 -#include "PgpBinaryTests.h"
    4.53 -#include "RevokeRegenAttachTests.h"
    4.54 -#include "BlacklistTests.h"
    4.55  #include "LeastCommonDenomColorTests.h"
    4.56 -#include "PepSubjectReceivedTests.h"
    4.57 -#include "MistrustUndoTests.h"
    4.58 -#include "StringpairListTests.h"
    4.59 -#include "PgpListKeysTests.h"
    4.60 -#include "ReencryptPlusExtraKeysTests.h"
    4.61 -#include "MimeTests.h"
    4.62 -#include "BloblistTests.h"
    4.63 -#include "NewUpdateIdAndMyselfTests.h"
    4.64 -#include "StringlistTests.h"
    4.65 -#include "LeastColorGroupTests.h"
    4.66  #include "ExternalRevokeTests.h"
    4.67 -#include "EncryptForIdentityTests.h"
    4.68 -#include "TrustwordsTests.h"
    4.69 -#include "TrustManipulationTests.h"
    4.70 -#include "MessageTwoPointOhTests.h"
    4.71 -#include "MessageNullFromTests.h"
    4.72 -#include "EncryptAttachPrivateKeyTests.h"
    4.73 -#include "DecryptAttachPrivateKeyTrustedTests.h"
    4.74 -#include "IdentityListTests.h"
    4.75  #include "UserIDAliasTests.h"
    4.76  
    4.77  
    4.78  const char* SuiteMaker::all_suites[] = {
    4.79 +    "DecorateTests",
    4.80 +    "ReencryptPlusExtraKeysTests",
    4.81 +    "BlacklistTests",
    4.82 +    "AppleMailTests",
    4.83 +    "MessageTwoPointOhTests",
    4.84 +    "IdentityListTests",
    4.85 +    "I18nTests",
    4.86 +    "DecryptAttachPrivateKeyUntrustedTests",
    4.87 +    "BCCTests",
    4.88 +    "LeastColorGroupTests",
    4.89 +    "MistrustUndoTests",
    4.90 +    "BlacklistAcceptNewKeyTests",
    4.91 +    "MessageApiTests",
    4.92 +    "StringlistTests",
    4.93 +    "StringpairListTests",
    4.94 +    "TrustManipulationTests",
    4.95 +    "EncryptAttachPrivateKeyTests",
    4.96 +    "BloblistTests",
    4.97 +    "SequenceTests",
    4.98 +    "TrustwordsTests",
    4.99 +    "RevokeRegenAttachTests",
   4.100 +    "EncryptMissingPrivateKeyTests",
   4.101 +    "PepSubjectReceivedTests",
   4.102 +    "KeyeditTests",
   4.103      "MapAsn1Tests",
   4.104 -    "DecorateTests",
   4.105 -    "EncryptMissingPrivateKeyTests",
   4.106 -    "KeyeditTests",
   4.107 -    "BlacklistAcceptNewKeyTests",
   4.108 -    "DecryptAttachPrivateKeyUntrustedTests",
   4.109 -    "AppleMailTests",
   4.110 +    "PgpBinaryTests",
   4.111 +    "DecryptAttachPrivateKeyTrustedTests",
   4.112 +    "MessageNullFromTests",
   4.113 +    "MimeTests",
   4.114 +    "PgpListKeysTests",
   4.115 +    "NewUpdateIdAndMyselfTests",
   4.116 +    "EncryptForIdentityTests",
   4.117 +    "CrashdumpTests",
   4.118      "CaseAndDotAddressTests",
   4.119 -    "SequenceTests",
   4.120 -    "BCCTests",
   4.121 -    "MessageApiTests",
   4.122 -    "I18nTests",
   4.123 -    "CrashdumpTests",
   4.124 -    "PgpBinaryTests",
   4.125 -    "RevokeRegenAttachTests",
   4.126 -    "BlacklistTests",
   4.127      "LeastCommonDenomColorTests",
   4.128 -    "PepSubjectReceivedTests",
   4.129 -    "MistrustUndoTests",
   4.130 -    "StringpairListTests",
   4.131 -    "PgpListKeysTests",
   4.132 -    "ReencryptPlusExtraKeysTests",
   4.133 -    "MimeTests",
   4.134 -    "BloblistTests",
   4.135 -    "NewUpdateIdAndMyselfTests",
   4.136 -    "StringlistTests",
   4.137 -    "LeastColorGroupTests",
   4.138      "ExternalRevokeTests",
   4.139 -    "EncryptForIdentityTests",
   4.140 -    "TrustwordsTests",
   4.141 -    "TrustManipulationTests",
   4.142 -    "MessageTwoPointOhTests",
   4.143 -    "MessageNullFromTests",
   4.144 -    "EncryptAttachPrivateKeyTests",
   4.145 -    "DecryptAttachPrivateKeyTrustedTests",
   4.146 -    "IdentityListTests",
   4.147      "UserIDAliasTests",
   4.148  };
   4.149  
   4.150 @@ -95,78 +95,78 @@
   4.151  int SuiteMaker::num_suites = 37;
   4.152  
   4.153  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
   4.154 -    if (strcmp(test_class_name, "MapAsn1Tests") == 0)
   4.155 -        *test_suite = new MapAsn1Tests(test_class_name, test_home);
   4.156 -    else if (strcmp(test_class_name, "DecorateTests") == 0)
   4.157 +    if (strcmp(test_class_name, "DecorateTests") == 0)
   4.158          *test_suite = new DecorateTests(test_class_name, test_home);
   4.159 +    else if (strcmp(test_class_name, "ReencryptPlusExtraKeysTests") == 0)
   4.160 +        *test_suite = new ReencryptPlusExtraKeysTests(test_class_name, test_home);
   4.161 +    else if (strcmp(test_class_name, "BlacklistTests") == 0)
   4.162 +        *test_suite = new BlacklistTests(test_class_name, test_home);
   4.163 +    else if (strcmp(test_class_name, "AppleMailTests") == 0)
   4.164 +        *test_suite = new AppleMailTests(test_class_name, test_home);
   4.165 +    else if (strcmp(test_class_name, "MessageTwoPointOhTests") == 0)
   4.166 +        *test_suite = new MessageTwoPointOhTests(test_class_name, test_home);
   4.167 +    else if (strcmp(test_class_name, "IdentityListTests") == 0)
   4.168 +        *test_suite = new IdentityListTests(test_class_name, test_home);
   4.169 +    else if (strcmp(test_class_name, "I18nTests") == 0)
   4.170 +        *test_suite = new I18nTests(test_class_name, test_home);
   4.171 +    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
   4.172 +        *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
   4.173 +    else if (strcmp(test_class_name, "BCCTests") == 0)
   4.174 +        *test_suite = new BCCTests(test_class_name, test_home);
   4.175 +    else if (strcmp(test_class_name, "LeastColorGroupTests") == 0)
   4.176 +        *test_suite = new LeastColorGroupTests(test_class_name, test_home);
   4.177 +    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
   4.178 +        *test_suite = new MistrustUndoTests(test_class_name, test_home);
   4.179 +    else if (strcmp(test_class_name, "BlacklistAcceptNewKeyTests") == 0)
   4.180 +        *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
   4.181 +    else if (strcmp(test_class_name, "MessageApiTests") == 0)
   4.182 +        *test_suite = new MessageApiTests(test_class_name, test_home);
   4.183 +    else if (strcmp(test_class_name, "StringlistTests") == 0)
   4.184 +        *test_suite = new StringlistTests(test_class_name, test_home);
   4.185 +    else if (strcmp(test_class_name, "StringpairListTests") == 0)
   4.186 +        *test_suite = new StringpairListTests(test_class_name, test_home);
   4.187 +    else if (strcmp(test_class_name, "TrustManipulationTests") == 0)
   4.188 +        *test_suite = new TrustManipulationTests(test_class_name, test_home);
   4.189 +    else if (strcmp(test_class_name, "EncryptAttachPrivateKeyTests") == 0)
   4.190 +        *test_suite = new EncryptAttachPrivateKeyTests(test_class_name, test_home);
   4.191 +    else if (strcmp(test_class_name, "BloblistTests") == 0)
   4.192 +        *test_suite = new BloblistTests(test_class_name, test_home);
   4.193 +    else if (strcmp(test_class_name, "SequenceTests") == 0)
   4.194 +        *test_suite = new SequenceTests(test_class_name, test_home);
   4.195 +    else if (strcmp(test_class_name, "TrustwordsTests") == 0)
   4.196 +        *test_suite = new TrustwordsTests(test_class_name, test_home);
   4.197 +    else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
   4.198 +        *test_suite = new RevokeRegenAttachTests(test_class_name, test_home);
   4.199      else if (strcmp(test_class_name, "EncryptMissingPrivateKeyTests") == 0)
   4.200          *test_suite = new EncryptMissingPrivateKeyTests(test_class_name, test_home);
   4.201 +    else if (strcmp(test_class_name, "PepSubjectReceivedTests") == 0)
   4.202 +        *test_suite = new PepSubjectReceivedTests(test_class_name, test_home);
   4.203      else if (strcmp(test_class_name, "KeyeditTests") == 0)
   4.204          *test_suite = new KeyeditTests(test_class_name, test_home);
   4.205 -    else if (strcmp(test_class_name, "BlacklistAcceptNewKeyTests") == 0)
   4.206 -        *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
   4.207 -    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
   4.208 -        *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
   4.209 -    else if (strcmp(test_class_name, "AppleMailTests") == 0)
   4.210 -        *test_suite = new AppleMailTests(test_class_name, test_home);
   4.211 +    else if (strcmp(test_class_name, "MapAsn1Tests") == 0)
   4.212 +        *test_suite = new MapAsn1Tests(test_class_name, test_home);
   4.213 +    else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
   4.214 +        *test_suite = new PgpBinaryTests(test_class_name, test_home);
   4.215 +    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyTrustedTests") == 0)
   4.216 +        *test_suite = new DecryptAttachPrivateKeyTrustedTests(test_class_name, test_home);
   4.217 +    else if (strcmp(test_class_name, "MessageNullFromTests") == 0)
   4.218 +        *test_suite = new MessageNullFromTests(test_class_name, test_home);
   4.219 +    else if (strcmp(test_class_name, "MimeTests") == 0)
   4.220 +        *test_suite = new MimeTests(test_class_name, test_home);
   4.221 +    else if (strcmp(test_class_name, "PgpListKeysTests") == 0)
   4.222 +        *test_suite = new PgpListKeysTests(test_class_name, test_home);
   4.223 +    else if (strcmp(test_class_name, "NewUpdateIdAndMyselfTests") == 0)
   4.224 +        *test_suite = new NewUpdateIdAndMyselfTests(test_class_name, test_home);
   4.225 +    else if (strcmp(test_class_name, "EncryptForIdentityTests") == 0)
   4.226 +        *test_suite = new EncryptForIdentityTests(test_class_name, test_home);
   4.227 +    else if (strcmp(test_class_name, "CrashdumpTests") == 0)
   4.228 +        *test_suite = new CrashdumpTests(test_class_name, test_home);
   4.229      else if (strcmp(test_class_name, "CaseAndDotAddressTests") == 0)
   4.230          *test_suite = new CaseAndDotAddressTests(test_class_name, test_home);
   4.231 -    else if (strcmp(test_class_name, "SequenceTests") == 0)
   4.232 -        *test_suite = new SequenceTests(test_class_name, test_home);
   4.233 -    else if (strcmp(test_class_name, "BCCTests") == 0)
   4.234 -        *test_suite = new BCCTests(test_class_name, test_home);
   4.235 -    else if (strcmp(test_class_name, "MessageApiTests") == 0)
   4.236 -        *test_suite = new MessageApiTests(test_class_name, test_home);
   4.237 -    else if (strcmp(test_class_name, "I18nTests") == 0)
   4.238 -        *test_suite = new I18nTests(test_class_name, test_home);
   4.239 -    else if (strcmp(test_class_name, "CrashdumpTests") == 0)
   4.240 -        *test_suite = new CrashdumpTests(test_class_name, test_home);
   4.241 -    else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
   4.242 -        *test_suite = new PgpBinaryTests(test_class_name, test_home);
   4.243 -    else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
   4.244 -        *test_suite = new RevokeRegenAttachTests(test_class_name, test_home);
   4.245 -    else if (strcmp(test_class_name, "BlacklistTests") == 0)
   4.246 -        *test_suite = new BlacklistTests(test_class_name, test_home);
   4.247      else if (strcmp(test_class_name, "LeastCommonDenomColorTests") == 0)
   4.248          *test_suite = new LeastCommonDenomColorTests(test_class_name, test_home);
   4.249 -    else if (strcmp(test_class_name, "PepSubjectReceivedTests") == 0)
   4.250 -        *test_suite = new PepSubjectReceivedTests(test_class_name, test_home);
   4.251 -    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
   4.252 -        *test_suite = new MistrustUndoTests(test_class_name, test_home);
   4.253 -    else if (strcmp(test_class_name, "StringpairListTests") == 0)
   4.254 -        *test_suite = new StringpairListTests(test_class_name, test_home);
   4.255 -    else if (strcmp(test_class_name, "PgpListKeysTests") == 0)
   4.256 -        *test_suite = new PgpListKeysTests(test_class_name, test_home);
   4.257 -    else if (strcmp(test_class_name, "ReencryptPlusExtraKeysTests") == 0)
   4.258 -        *test_suite = new ReencryptPlusExtraKeysTests(test_class_name, test_home);
   4.259 -    else if (strcmp(test_class_name, "MimeTests") == 0)
   4.260 -        *test_suite = new MimeTests(test_class_name, test_home);
   4.261 -    else if (strcmp(test_class_name, "BloblistTests") == 0)
   4.262 -        *test_suite = new BloblistTests(test_class_name, test_home);
   4.263 -    else if (strcmp(test_class_name, "NewUpdateIdAndMyselfTests") == 0)
   4.264 -        *test_suite = new NewUpdateIdAndMyselfTests(test_class_name, test_home);
   4.265 -    else if (strcmp(test_class_name, "StringlistTests") == 0)
   4.266 -        *test_suite = new StringlistTests(test_class_name, test_home);
   4.267 -    else if (strcmp(test_class_name, "LeastColorGroupTests") == 0)
   4.268 -        *test_suite = new LeastColorGroupTests(test_class_name, test_home);
   4.269      else if (strcmp(test_class_name, "ExternalRevokeTests") == 0)
   4.270          *test_suite = new ExternalRevokeTests(test_class_name, test_home);
   4.271 -    else if (strcmp(test_class_name, "EncryptForIdentityTests") == 0)
   4.272 -        *test_suite = new EncryptForIdentityTests(test_class_name, test_home);
   4.273 -    else if (strcmp(test_class_name, "TrustwordsTests") == 0)
   4.274 -        *test_suite = new TrustwordsTests(test_class_name, test_home);
   4.275 -    else if (strcmp(test_class_name, "TrustManipulationTests") == 0)
   4.276 -        *test_suite = new TrustManipulationTests(test_class_name, test_home);
   4.277 -    else if (strcmp(test_class_name, "MessageTwoPointOhTests") == 0)
   4.278 -        *test_suite = new MessageTwoPointOhTests(test_class_name, test_home);
   4.279 -    else if (strcmp(test_class_name, "MessageNullFromTests") == 0)
   4.280 -        *test_suite = new MessageNullFromTests(test_class_name, test_home);
   4.281 -    else if (strcmp(test_class_name, "EncryptAttachPrivateKeyTests") == 0)
   4.282 -        *test_suite = new EncryptAttachPrivateKeyTests(test_class_name, test_home);
   4.283 -    else if (strcmp(test_class_name, "DecryptAttachPrivateKeyTrustedTests") == 0)
   4.284 -        *test_suite = new DecryptAttachPrivateKeyTrustedTests(test_class_name, test_home);
   4.285 -    else if (strcmp(test_class_name, "IdentityListTests") == 0)
   4.286 -        *test_suite = new IdentityListTests(test_class_name, test_home);
   4.287      else if (strcmp(test_class_name, "UserIDAliasTests") == 0)
   4.288          *test_suite = new UserIDAliasTests(test_class_name, test_home);
   4.289  }