Home | History | Annotate | Download | only in cryptohome
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "chromeos/cryptohome/cryptohome_parameters.h"
      6 
      7 namespace cryptohome {
      8 
      9 Authorization::Authorization(const std::string& key, const std::string& label)
     10     : key(key), label(label) {}
     11 
     12 Authorization::Authorization(const KeyDefinition& key_def)
     13     : key(key_def.key), label(key_def.label) {}
     14 
     15 MountParameters::MountParameters(bool ephemeral) : ephemeral(ephemeral) {}
     16 
     17 MountParameters::~MountParameters() {}
     18 
     19 KeyDefinition::KeyDefinition(const std::string& key,
     20                              const std::string& label,
     21                              int /*AuthKeyPrivileges*/ privileges)
     22     : label(label), revision(1), key(key), privileges(privileges) {}
     23 
     24 KeyDefinition::~KeyDefinition() {}
     25 
     26 }  // namespace cryptohome
     27