@@ -32,11 +32,10 @@ virtual void HandleMessageThread(pp::VarDictionary *message, pp::Var *messagePlain) { cackey_chrome_returnType signRet; char *pinPrompt = NULL; const char *pin; - const char *smartcardManagerAppId = NULL; unsigned char buffer[8192]; struct cackey_certificate *certificates, incomingCertificateCACKey; struct cackey_reader *readers; pp::VarDictionary *reply, *readerInfo; pp::VarArray certificatesPPArray, readersPPArray; @@ -54,19 +53,11 @@ * Do the thing we are being asked to do */ reply = new pp::VarDictionary(); if (command.AsString() == "init") { - if (message->HasKey("smartcardManagerAppId")) { - smartcardManagerAppId = strdup(message->Get("smartcardManagerAppId").AsString().c_str()); - } - - pcscNaClInit(this, corePointer, smartcardManagerAppId, "CACKey"); - - if (smartcardManagerAppId) { - free((void *) smartcardManagerAppId); - } + pcscNaClInit(this, corePointer); reply->Set("status", "success"); } else if (command.AsString() == "listcertificates") { numCertificates = cackey_chrome_listCertificates(&certificates);