Check-in [433d53f019]
Overview
Comment:ChromeOS: Removed debugging from PCSC bridge initialization
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 433d53f0190f6fa77121291f14a1f87bdb55dd1a
User & Date: rkeene on 2016-02-12 04:06:30
Other Links: manifest | tags
Context
2016-02-12
04:06
ChromeOS: Started work on supporting signing messages check-in: 75140d9f77 user: rkeene tags: trunk
04:06
ChromeOS: Removed debugging from PCSC bridge initialization check-in: 433d53f019 user: rkeene tags: trunk
04:04
Better invocation of "ar" for static CACKey builds check-in: 2eba6a47c6 user: rkeene tags: trunk
Changes

Modified build/chrome/build-deps from [13d302559b] to [5999de848a].

301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
301
302
303
304
305
306
307

308
309
310
311
312
313
314
315
316
317
318


319
320
321
322
323
324


325


326
327
328
329
330




331
332
333
334
335
336
337







-











-
-






-
-

-
-





-
-
-
-








		## Create initialization procedure, since it lacks one
		cat << \_EOF_ > third_party/pcsc-lite/client-side/pcsc_nacl_init.cc
#include <ppapi/cpp/core.h>
#include <ppapi/cpp/instance.h>

#include <unistd.h>
#include <stdio.h>

#include "pcsc_nacl_global.h"
#include "dom_requests_manager.h"
#include "pcsc_nacl.h"

static DomRequestsManager *pcscNaClDRM = NULL;

void pcscNaClInit(pp::Instance *instance, pp::Core *core) {
	DomRequestsManager::PpDelegateImpl *drmDelegateImpl;
	PcscNacl *pcsc_nacl;

	fprintf(stderr, "Called pcscNaClInit()\n");

	drmDelegateImpl = new DomRequestsManager::PpDelegateImpl(instance, core);

	pcscNaClDRM = new DomRequestsManager("pcsc-nacl", drmDelegateImpl);

	pcsc_nacl = new PcscNacl(pcscNaClDRM, "khpfeaanjngmcnplbdlpegiifgpfgdco", "CACKey");

	fprintf(stderr, "New PcscNacl object = %p\n", pcsc_nacl);

	if (!pcsc_nacl->Initialize()) {
		fprintf(stderr, "PcscNacl->Initialize() failed !");

		return;
	}

	SetPcscNaclGlobalInstance(pcsc_nacl);

	fprintf(stderr, "Global instance set to %p\n", pcsc_nacl);

	fprintf(stderr, "Returning.\n");

	return;
}

bool pcscNaClHandleMessage(const pp::Var &message) {
	return(pcscNaClDRM->HandleMessage(message));
}
_EOF_