Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1206)

Unified Diff: net/base/keygen_handler.h

Issue 271112: Adds support for the <keygen> tag for client certificate enrollment... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/cert_database_win.cc ('k') | net/base/keygen_handler_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/keygen_handler.h
===================================================================
--- net/base/keygen_handler.h (revision 0)
+++ net/base/keygen_handler.h (revision 0)
@@ -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_
Property changes on: net/base/keygen_handler.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « net/base/cert_database_win.cc ('k') | net/base/keygen_handler_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698