javatools/certificatesconfigurator/tsrc/src/testcertificatesconfigurator.cpp
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <stdio.h>
       
    19 #include <string>
       
    20 #include <e32std.h>
       
    21 
       
    22 #include "TestHarness.h"
       
    23 #include "comms.h"
       
    24 #include "commsmessage.h"
       
    25 #include "commsclientendpoint.h"
       
    26 #include "commsendpoint.h"
       
    27 #include "securitycommsmessagedefs.h"
       
    28 
       
    29 using namespace java::comms;
       
    30 using namespace std;
       
    31 
       
    32 TEST_GROUP(TestCertificatesConfigurator)
       
    33 {
       
    34     CommsClientEndpoint cli_conn;
       
    35 
       
    36     TEST_SETUP()
       
    37     {
       
    38         cli_conn.connect(IPC_ADDRESS_JAVA_CAPTAIN_C);
       
    39     }
       
    40 
       
    41     TEST_TEARDOWN()
       
    42     {
       
    43         cli_conn.disconnect();
       
    44     }
       
    45 };
       
    46 
       
    47 TEST(TestCertificatesConfigurator, TestCertificatesConfiguratorL)
       
    48 {
       
    49     CommsMessage s_msg;
       
    50     CommsMessage r_msg;
       
    51     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
    52     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
    53     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
    54     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "DB6368D9";
       
    55     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
    56     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
    57     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
    58     std::string prot_domain_name;
       
    59     std::string prot_domain_category;
       
    60     r_msg >> prot_domain_name;
       
    61     r_msg >> prot_domain_category;
       
    62     CHECK(prot_domain_name == "Manufacturer" && prot_domain_category == "MFD");
       
    63     s_msg.reset();
       
    64     r_msg.reset();
       
    65     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
    66     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
    67     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
    68     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "DB6368D9";
       
    69     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
    70     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
    71     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
    72     long long cert_content_len;
       
    73     r_msg >> cert_content_len;
       
    74     CHECK(cert_content_len != 0);
       
    75     std::string cert_content;
       
    76     std::string hash;
       
    77     int state;
       
    78     r_msg >> cert_content;
       
    79     r_msg >> hash;
       
    80     r_msg >> state;
       
    81     CHECK(state == 0 /* not disablable and not deletable */);
       
    82     s_msg.reset();
       
    83     r_msg.reset();
       
    84 
       
    85 
       
    86     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
    87     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
    88     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
    89     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "3BACF549";
       
    90     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
    91     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
    92     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
    93     r_msg >> prot_domain_name;
       
    94     r_msg >> prot_domain_category;
       
    95     CHECK(prot_domain_name == "Manufacturer" && prot_domain_category == "MFD");
       
    96     s_msg.reset();
       
    97     r_msg.reset();
       
    98     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
    99     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   100     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   101     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "3BACF549";
       
   102     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   103     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   104     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   105     r_msg >> cert_content_len;
       
   106     CHECK(cert_content_len != 0);
       
   107     r_msg >> cert_content;
       
   108     r_msg >> hash;
       
   109     r_msg >> state;
       
   110     CHECK(state == 0/* not disablable and not deletable */);
       
   111     s_msg.reset();
       
   112     r_msg.reset();
       
   113 
       
   114     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   115     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   116     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   117     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "C200DD68";
       
   118     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   119     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   120     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   121     r_msg >> prot_domain_name;
       
   122     r_msg >> prot_domain_category;
       
   123     CHECK(prot_domain_name == "IdentifiedThirdParty" && prot_domain_category == "ITPD");
       
   124     s_msg.reset();
       
   125     r_msg.reset();
       
   126     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   127     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   128     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   129     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "C200DD68";
       
   130     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   131     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   132     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   133     r_msg >> cert_content_len;
       
   134     CHECK(cert_content_len != 0);
       
   135     r_msg >> cert_content;
       
   136     r_msg >> hash;
       
   137     r_msg >> state;
       
   138     CHECK(state == 0/* not disablable and not deletable */);
       
   139     s_msg.reset();
       
   140     r_msg.reset();
       
   141 
       
   142     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   143     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   144     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   145     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "1A9F76AE";
       
   146     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   147     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   148     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   149     r_msg >> prot_domain_name;
       
   150     r_msg >> prot_domain_category;
       
   151     CHECK(prot_domain_name == "Operator" && prot_domain_category == "OPD");
       
   152     s_msg.reset();
       
   153     r_msg.reset();
       
   154     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   155     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   156     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   157     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "1A9F76AE";
       
   158     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   159     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   160     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   161     r_msg >> cert_content_len;
       
   162     CHECK(cert_content_len != 0);
       
   163     r_msg >> cert_content;
       
   164     r_msg >> hash;
       
   165     r_msg >> state;
       
   166     CHECK(state == 0/* not disablable and not deletable */);
       
   167     s_msg.reset();
       
   168     r_msg.reset();
       
   169 
       
   170     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   171     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   172     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   173     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "160ED1E9";
       
   174     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_DISABLED;
       
   175     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   176     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   177     r_msg >> prot_domain_name;
       
   178     r_msg >> prot_domain_category;
       
   179     CHECK(prot_domain_name == "OperatorExtra" && prot_domain_category == "OPD");
       
   180     s_msg.reset();
       
   181     r_msg.reset();
       
   182     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   183     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   184     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   185     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "160ED1E9";
       
   186     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_DISABLED;
       
   187     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   188     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   189     r_msg >> cert_content_len;
       
   190     CHECK(cert_content_len != 0);
       
   191     r_msg >> cert_content;
       
   192     r_msg >> hash;
       
   193     r_msg >> state;
       
   194     CHECK(state == 1/* not disablable and not deletable but disabled */);
       
   195     s_msg.reset();
       
   196     r_msg.reset();
       
   197 
       
   198     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   199     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   200     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   201     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "50957A0B";
       
   202     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_DELETED;
       
   203     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   204     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   205     r_msg >> prot_domain_name;
       
   206     r_msg >> prot_domain_category;
       
   207     CHECK(prot_domain_name == "Operator" && prot_domain_category == "OPD");
       
   208     s_msg.reset();
       
   209     r_msg.reset();
       
   210     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   211     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   212     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   213     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "50957A0B";
       
   214     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_DELETED;
       
   215     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   216     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   217     r_msg >> cert_content_len;
       
   218     CHECK(cert_content_len != 0);
       
   219     r_msg >> cert_content;
       
   220     r_msg >> hash;
       
   221     r_msg >> state;
       
   222     CHECK(state == 0/* not disablable and not deletable */);
       
   223     s_msg.reset();
       
   224     r_msg.reset();
       
   225 
       
   226     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   227     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   228     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   229     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "19812ECB";
       
   230     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   231     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   232     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   233     r_msg >> prot_domain_name;
       
   234     r_msg >> prot_domain_category;
       
   235     CHECK(prot_domain_name == "Operator" && prot_domain_category == "OPD");
       
   236     s_msg.reset();
       
   237     r_msg.reset();
       
   238     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   239     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   240     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   241     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "19812ECB";
       
   242     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   243     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   244     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   245     r_msg >> cert_content_len;
       
   246     CHECK(cert_content_len != 0);
       
   247     r_msg >> cert_content;
       
   248     r_msg >> hash;
       
   249     r_msg >> state;
       
   250     CHECK(state == 0/* not disablable and not deletable */);
       
   251     s_msg.reset();
       
   252     r_msg.reset();
       
   253 
       
   254     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   255     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   256     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   257     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "6F70725D";
       
   258     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   259     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   260     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   261     r_msg >> prot_domain_name;
       
   262     r_msg >> prot_domain_category;
       
   263     CHECK(prot_domain_name == "IdentifiedThirdParty" && prot_domain_category == "ITPD");
       
   264     s_msg.reset();
       
   265     r_msg.reset();
       
   266     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   267     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   268     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   269     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "6F70725D";
       
   270     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   271     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   272     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   273     r_msg >> cert_content_len;
       
   274     CHECK(cert_content_len != 0);
       
   275     r_msg >> cert_content;
       
   276     r_msg >> hash;
       
   277     r_msg >> state;
       
   278     CHECK(state == 2 /* only disablable */);
       
   279     s_msg.reset();
       
   280     r_msg.reset();
       
   281 
       
   282     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   283     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   284     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   285     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "C9058545";
       
   286     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   287     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   288     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   289     r_msg >> prot_domain_name;
       
   290     r_msg >> prot_domain_category;
       
   291     CHECK(prot_domain_name == "IdentifiedThirdParty" && prot_domain_category == "ITPD");
       
   292     s_msg.reset();
       
   293     r_msg.reset();
       
   294     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   295     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   296     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   297     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "C9058545";
       
   298     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   299     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   300     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   301     r_msg >> cert_content_len;
       
   302     CHECK(cert_content_len != 0);
       
   303     r_msg >> cert_content;
       
   304     r_msg >> hash;
       
   305     r_msg >> state;
       
   306     CHECK(state == 0/* not disablable and not deletable */);
       
   307     s_msg.reset();
       
   308     r_msg.reset();
       
   309 
       
   310     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   311     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   312     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   313     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "0EE64645";
       
   314     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   315     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   316     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   317     r_msg >> prot_domain_name;
       
   318     r_msg >> prot_domain_category;
       
   319     CHECK(prot_domain_name == "IdentifiedThirdParty" && prot_domain_category == "ITPD");
       
   320     s_msg.reset();
       
   321     r_msg.reset();
       
   322     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   323     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   324     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   325     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "0EE64645";
       
   326     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   327     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   328     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   329     r_msg >> cert_content_len;
       
   330     CHECK(cert_content_len != 0);
       
   331     r_msg >> cert_content;
       
   332     r_msg >> hash;
       
   333     r_msg >> state;
       
   334     CHECK(state == 4 /* only deletable */);
       
   335     s_msg.reset();
       
   336     r_msg.reset();
       
   337 
       
   338     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   339     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   340     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   341     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "1775ABBE";
       
   342     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   343     s_msg << JAVA_CERT_STORE_QUERY_ID_PROTECTION_DOMAIN;
       
   344     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   345     r_msg >> prot_domain_name;
       
   346     r_msg >> prot_domain_category;
       
   347     CHECK(prot_domain_name == "IdentifiedThirdParty" && prot_domain_category == "ITPD");
       
   348     s_msg.reset();
       
   349     r_msg.reset();
       
   350     s_msg.setModuleId(PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C);
       
   351     s_msg.setMessageId(JAVA_CERT_STORE_MSG_ID_REQUEST);
       
   352     s_msg << JAVA_CERT_STORE_OPERATION_QUERY_CERTS;
       
   353     s_msg << JAVA_CERT_STORE_FILTER_ID_HASH << "1775ABBE";
       
   354     s_msg << JAVA_CERT_STORE_FILTER_ID_STATE << JAVA_CERT_STORE_STATE_ENABLED;
       
   355     s_msg << JAVA_CERT_STORE_QUERY_ID_FULL_DETAILS;
       
   356     CHECK(cli_conn.sendReceive(s_msg,r_msg,10) == 0);
       
   357     r_msg >> cert_content_len;
       
   358     CHECK(cert_content_len != 0);
       
   359     r_msg >> cert_content;
       
   360     r_msg >> hash;
       
   361     r_msg >> state;
       
   362     CHECK(state == 6 /* deletable and disablable */);
       
   363     s_msg.reset();
       
   364     r_msg.reset();
       
   365 }
       
   366