blob: b135bed38f7d40a15c24411ab65f0e140553c53a [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Should match SSLBlockingPageCommands in ssl_blocking_page.cc.
var SSL_CMD_DONT_PROCEED = 0;
var SSL_CMD_PROCEED = 1;
var SSL_CMD_MORE = 2;
var SSL_CMD_RELOAD = 3;
var SSL_CMD_HELP = 4;
var SSL_CMD_CLOCK = 5;
function setupSSLDebuggingInfo() {
if (loadTimeData.getString('type') != 'SSL')
return;
// The titles are not internationalized because this is debugging information
// for bug reports, help center posts, etc.
appendDebuggingField('Subject', loadTimeData.getString('subject'));
appendDebuggingField('Issuer', loadTimeData.getString('issuer'));
appendDebuggingField('Expires on', loadTimeData.getString('expirationDate'));
appendDebuggingField('Current date', loadTimeData.getString('currentDate'));
appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem'));
$('error-code').addEventListener('click', toggleDebuggingInfo);
}