diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 16:58:37 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 16:58:37 +0000 |
commit | a755e1076f116a71e2888eeea635082baabc69ce (patch) | |
tree | 2dde81e236a55d88d7768495e78194df72a59550 /net/base/keygen_handler.h | |
parent | a5684464f46687c95ff8e62b48de4d09b914873d (diff) | |
download | chromium_src-a755e1076f116a71e2888eeea635082baabc69ce.zip chromium_src-a755e1076f116a71e2888eeea635082baabc69ce.tar.gz chromium_src-a755e1076f116a71e2888eeea635082baabc69ce.tar.bz2 |
Adds support for the <keygen> tag for client certificate enrollment
under Linux. Currently, no notifications are given to the user that the
certificate was successfully enrolled.
Patch by Gaurav Shah <gauravsh@chromium.org> of Google.
Original review URL: http://codereview.chromium.org/261035
BUG=148
TEST=Can test on the following sites:
http://foaf.me/simple_KEYGEN_CreateClientCertificate.php
http://www.myopenid.com
Review URL: http://codereview.chromium.org/271112
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/keygen_handler.h')
-rw-r--r-- | net/base/keygen_handler.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/base/keygen_handler.h b/net/base/keygen_handler.h new file mode 100644 index 0000000..346b577 --- /dev/null +++ b/net/base/keygen_handler.h @@ -0,0 +1,27 @@ +// Copyright (c) 2009 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. + +#ifndef NET_BASE_KEYGEN_HANDLER_H_ +#define NET_BASE_KEYGEN_HANDLER_H_ + +#include <string> + +namespace net { + +// This class handles keypair generation for generating client +// certificates via the Netscape <keygen> tag. + +class KeygenHandler { + public: + KeygenHandler(int key_size_index, const std::string& challenge); + std::string GenKeyAndSignChallenge(); + + private: + int key_size_index_; + std::string challenge_; +}; + +} // namespace net + +#endif // NET_BASE_KEYGEN_HANDLER_H_ |