Browse code
format
Greg Wiley authored on 21/04/2017 05:37:21
Showing 26 changed files
Showing 26 changed files
- conversation.cc
- conversation.h
- conversation_test.cc
- dual_control.cc
- dual_control.h
- dual_control_integrate.cc
- dual_control_test.cc
- logger.h
- logging.cc
- logging_test.cc
- pam.cc
- pam.h
- request.cc
- request.h
- request_test.cc
- test_support.h
- test_util.h
- token.cc
- token.h
- token_test.cc
- user.cc
- user.h
- user_test.cc
- validator.cc
- validator.h
- validator_test.cc
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <security/pam_modules.h> |
2 | 12 |
#include <algorithm> |
3 | 13 |
#include <vector> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef _CONVERSATION_H |
2 | 12 |
#define _CONVERSATION_H |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <vector> |
2 | 12 |
#include <algorithm> |
3 | 13 |
#include <string> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <string> |
2 | 12 |
#include <vector> |
3 | 13 |
#include <security/pam_modules.h> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
/* PAM handlers class interface. The methods on the dual control class |
2 | 12 |
* correspond directly to the specified PAM handler entrypoints. |
3 | 13 |
* |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
/* PAM native handler entrypoints. Keep these dumb so the logic can |
2 | 12 |
* be tested. |
3 | 13 |
*/ |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <security/pam_modules.h> |
2 | 12 |
#include <string> |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef __DUAL_CONTROL_LOGGING |
2 | 12 |
#define __DUAL_CONTROL_LOGGING |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <syslog.h> |
2 | 12 |
|
3 | 13 |
#include "logging.h" |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <cstdio> |
2 | 12 |
#include <cstring> |
3 | 13 |
#include <syslog.h> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <vector> |
2 | 12 |
#include <security/pam_modules.h> |
3 | 13 |
#include <security/pam_appl.h> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef _PAM_H |
2 | 12 |
#define _PAM_H |
3 | 13 |
#include <memory> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <vector> |
2 | 12 |
#include <string> |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef ARGUMENT_H |
2 | 12 |
#define ARGUMENT_H |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <vector> |
2 | 12 |
#include <string> |
3 | 13 |
#include <security/pam_modules.h> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
/* Include this in a module that will be under test coverage |
2 | 12 |
* |
3 | 13 |
*/ |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef _TESTUTIL_H |
2 | 12 |
#define _TESTUTIL_H |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <cstdlib> |
2 | 12 |
#include <cstring> |
3 | 13 |
#include <security/pam_modules.h> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef _TOKEN_H |
2 | 12 |
#define _TOKEN_H |
3 | 13 |
#include <string> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <cstring> |
2 | 12 |
#include <pwd.h> |
3 | 13 |
#include <cstdio> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <memory> |
2 | 12 |
#include <vector> |
3 | 13 |
#include <string> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef _USER_H |
2 | 12 |
#define _USER_H |
3 | 13 |
#include <vector> |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <memory> |
2 | 12 |
#include <iostream> |
3 | 13 |
#include "user.h" |
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <string> |
2 | 12 |
#include <vector> |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#ifndef _VALIDATOR_H |
2 | 12 |
#define _VALIDATOR_H |
3 | 13 |
|
... | ... |
@@ -1,3 +1,13 @@ |
1 |
+/* Copyright (C) CJ Affiliate |
|
2 |
+ * |
|
3 |
+ * You may use, distribute and modify this code under the |
|
4 |
+ * terms of the GNU Public License. |
|
5 |
+ * |
|
6 |
+ * You should have received a copy of the license with this |
|
7 |
+ * file. If not, you will find a copy in the "LICENSE" file |
|
8 |
+ * at https://github.com/cjdev/dual-control. |
|
9 |
+ */ |
|
10 |
+ |
|
1 | 11 |
#include <string> |
2 | 12 |
#include <vector> |
3 | 13 |
|