Check-in [188c4d598f]
Overview
SHA1:188c4d598f249848e81e06b7dd69b14ff5c65195
Date: 2016-03-08 21:02:46
User: rkeene
Comment:ChromeOS: Added support for informing the user if we are a certificate provider or not
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-03-09
04:30
[64c4c68fa6] ChromeOS: Added support for listing smartcard readers (user: rkeene, tags: trunk)
2016-03-08
21:02
[188c4d598f] ChromeOS: Added support for informing the user if we are a certificate provider or not (user: rkeene, tags: trunk)
2016-03-01
03:10
[a7016d7084] ChromeOS: Updated to forget PINs that have not been used recently (user: rkeene, tags: trunk)
Changes

Modified build/chrome/ui.html from [22195d78ea] to [cc97e7803b].

     2      2   	<head>
     3      3   		<title>CACKey</title>
     4      4   		<script type="text/javascript" src="jsrsasign.js"></script>
     5      5   		<script type="text/javascript" src="ui.js"></script>
     6      6   	</head>
     7      7   	<body>
     8      8   		<h1>CACKey for Chrome</h1>
            9  +		<div>Certificate Provider: <span id="certificate_provider"></span></div>
     9     10   		<div>Certificates: <span id="certificates"></span></div>
    10     11   	</body>
    11     12   </html>

Modified build/chrome/ui.js from [213cbbd233] to [2cf5ac6095].

    57     57   		globalCerts = certs;
    58     58   
    59     59   		displayCerts(htmlObject, certs);
    60     60   	});
    61     61   
    62     62   	return;
    63     63   }
           64  +
           65  +function updateCertificateProvider(htmlObject) {
           66  +	var resultHTML;
           67  +
           68  +	if (chrome.certificateProvider) {
           69  +		resultHTML = "Yes (ChromeOS)";
           70  +	} else {
           71  +		resultHTML = "<b>No, informational only.</b>";
           72  +	}
           73  +
           74  +	htmlObject.innerHTML = resultHTML;
           75  +
           76  +	return;
           77  +}
    64     78   
    65     79   setTimeout(function() {
    66     80   	updateCertificates(document.getElementById('certificates'));
           81  +	updateCertificateProvider(document.getElementById('certificate_provider'));
    67     82   }, 1);