diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 01:46:57 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 01:46:57 +0000 |
commit | b1f18494233f64c720729039222d9ad66c8ae95f (patch) | |
tree | 0f2848bdedba2a46c3d3b3fc8c7855d2786fd14d /chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h | |
parent | b1995975f4e6b17df513a6d0dae44b37c46c5e00 (diff) | |
download | chromium_src-b1f18494233f64c720729039222d9ad66c8ae95f.zip chromium_src-b1f18494233f64c720729039222d9ad66c8ae95f.tar.gz chromium_src-b1f18494233f64c720729039222d9ad66c8ae95f.tar.bz2 |
Linux: implement Client SSL Certificate selection UI
BUG=25241
TEST=Visit site for which you have a client certificate, verify that dialog comes up and you can select your cert (or cancel)
Review URL: http://codereview.chromium.org/661241
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h')
-rw-r--r-- | chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h b/chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h new file mode 100644 index 0000000..31ba550 --- /dev/null +++ b/chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.h @@ -0,0 +1,53 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is the Netscape security libraries. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 2000 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * John Gardiner Myers <jgmyers@speakeasy.net> + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +#ifndef CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSUSAGEARRAYHELPER_H_ +#define CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSUSAGEARRAYHELPER_H_ + +#include <cert.h> + +#include <string> +#include <vector> + +namespace mozilla_security_manager { + +// Based on nsUsageArrayHelper::GetUsagesArray. +void GetCertUsageStrings(CERTCertificate* cert, std::vector<std::string>* out); + +} // namespace mozilla_security_manager + +#endif // CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSUSAGEARRAYHELPER_H_ |