summaryrefslogtreecommitdiffstats
path: root/net/base/keygen_handler.h
blob: 346b577a031d3ce27a89abb16c4f525ca3b37d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_