@@ -33,9 +33,8 @@ 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; @@ -55,17 +54,9 @@ */ 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);