summaryrefslogtreecommitdiffstats
path: root/net/base/keygen_handler.cc
blob: d1e91a4806a656245a42b9ff311afeb14be4e55f (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
28
29
// Copyright (c) 2011 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.

#include "net/base/keygen_handler.h"

#if defined(USE_NSS_CERTS)
#include "crypto/nss_crypto_module_delegate.h"
#endif  // defined(USE_NSS_CERTS)

namespace net {

// The constructor and destructor must be defined in a .cc file so that
// CryptoModuleBlockingPasswordDelegate can be forward-declared on platforms
// which use NSS.

KeygenHandler::KeygenHandler(int key_size_in_bits,
                             const std::string& challenge,
                             const GURL& url)
    : key_size_in_bits_(key_size_in_bits),
      challenge_(challenge),
      url_(url),
      stores_key_(true) {
}

KeygenHandler::~KeygenHandler() {
}

}  // namespace net