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

Side by Side Diff: remoting/host/pam_authorization_factory_posix.h

Issue 11276040: Implemented local login check for PAM (only enabled on Linux for now). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 #ifndef REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
6 #define REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
7
8 #include "remoting/protocol/authenticator.h"
Wez 2012/10/26 03:25:43 nit: Blank line between this include and the next.
Jamie 2012/10/26 17:53:30 Done.
9 #include "base/memory/scoped_ptr.h"
10
11 // PamAuthorizationFactory abuses the AuthenticatorFactory interface to apply
12 // PAM-based authorization on top of some underlying authentication scheme.
13
14 namespace remoting {
15
16 class PamAuthorizationFactory : public protocol::AuthenticatorFactory {
17 public:
18 PamAuthorizationFactory(
19 scoped_ptr<protocol::AuthenticatorFactory> underlying);
20
21 virtual scoped_ptr<protocol::Authenticator> CreateAuthenticator(
22 const std::string& local_jid,
23 const std::string& remote_jid,
24 const buzz::XmlElement* first_message) OVERRIDE;
25
26 private:
27 scoped_ptr<protocol::AuthenticatorFactory> underlying_;
28 };
29
30 } // namespace remoting
31
32 #endif
OLDNEW
« no previous file with comments | « no previous file | remoting/host/pam_authorization_factory_posix.cc » ('j') | remoting/host/pam_authorization_factory_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698