Move SSLIdentity Generate() implementations from .h to .cc file.

This amends https://codereview.webrtc.org/1683193003/

BUG=
R=hbos@webrtc.org, tommi@webrtc.org

Review URL: https://codereview.webrtc.org/1701953002 .

Cr-Commit-Position: refs/heads/master@{#11632}
This commit is contained in:
Torbjorn Granlund
2016-02-16 13:33:53 +01:00
parent 71e92dc5e8
commit a3dc79e072
2 changed files with 19 additions and 6 deletions

View File

@ -201,13 +201,9 @@ class SSLIdentity {
const KeyParams& key_param,
time_t certificate_lifetime);
static SSLIdentity* Generate(const std::string& common_name,
const KeyParams& key_param) {
return Generate(common_name, key_param, kDefaultCertificateLifetime);
}
const KeyParams& key_param);
static SSLIdentity* Generate(const std::string& common_name,
KeyType key_type) {
return Generate(common_name, KeyParams(key_type));
}
KeyType key_type);
// Generates an identity with the specified validity period.
// TODO(torbjorng): Now that Generate() accepts relevant params, make tests