|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
diff --git a/liboath/global.c b/liboath/global.c
|
|
|
|
|
index d442cf3..cfe1cee 100644
|
|
|
|
|
index d1a0e4d..4c6e5ca 100644
|
|
|
|
|
--- a/liboath/global.c
|
|
|
|
|
+++ b/liboath/global.c
|
|
|
|
|
@@ -25,9 +25,12 @@
|
|
|
|
@ -61,7 +61,7 @@ index d442cf3..cfe1cee 100644
|
|
|
|
|
+ return OATH_OK;
|
|
|
|
|
+}
|
|
|
|
|
diff --git a/liboath/liboath.map b/liboath/liboath.map
|
|
|
|
|
index 2f247ff..e8f8cdf 100644
|
|
|
|
|
index d980107..a001f6d 100644
|
|
|
|
|
--- a/liboath/liboath.map
|
|
|
|
|
+++ b/liboath/liboath.map
|
|
|
|
|
@@ -75,6 +75,7 @@ LIBOATH_2.2.0
|
|
|
|
@ -73,50 +73,50 @@ index 2f247ff..e8f8cdf 100644
|
|
|
|
|
|
|
|
|
|
LIBOATH_2.6.0
|
|
|
|
|
diff --git a/liboath/oath.h b/liboath/oath.h
|
|
|
|
|
index fe93b9e..6660fb3 100644
|
|
|
|
|
index 01b7a3c..a5d7787 100644
|
|
|
|
|
--- a/liboath/oath.h
|
|
|
|
|
+++ b/liboath/oath.h
|
|
|
|
|
@@ -159,11 +159,15 @@ typedef enum
|
|
|
|
|
@@ -159,11 +159,15 @@ extern "C"
|
|
|
|
|
|
|
|
|
|
/* Global */
|
|
|
|
|
|
|
|
|
|
+extern char *oath_lockfile_path;
|
|
|
|
|
+ extern char *oath_lockfile_path;
|
|
|
|
|
+
|
|
|
|
|
extern OATHAPI int oath_init (void);
|
|
|
|
|
extern OATHAPI int oath_done (void);
|
|
|
|
|
extern OATHAPI int oath_init (void);
|
|
|
|
|
extern OATHAPI int oath_done (void);
|
|
|
|
|
|
|
|
|
|
extern OATHAPI const char *oath_check_version (const char *req_version);
|
|
|
|
|
extern OATHAPI const char *oath_check_version (const char *req_version);
|
|
|
|
|
|
|
|
|
|
+extern OATHAPI int oath_set_lockfile_path(const char *lockfile);
|
|
|
|
|
+ extern OATHAPI int oath_set_lockfile_path(const char *lockfile);
|
|
|
|
|
+
|
|
|
|
|
/* Error handling */
|
|
|
|
|
|
|
|
|
|
extern OATHAPI const char *oath_strerror (int err);
|
|
|
|
|
extern OATHAPI const char *oath_strerror (int err);
|
|
|
|
|
diff --git a/liboath/oath.h.in b/liboath/oath.h.in
|
|
|
|
|
index eee284c..536cd30 100644
|
|
|
|
|
index b8b4fbd..99e5fd0 100644
|
|
|
|
|
--- a/liboath/oath.h.in
|
|
|
|
|
+++ b/liboath/oath.h.in
|
|
|
|
|
@@ -159,11 +159,15 @@ typedef enum
|
|
|
|
|
@@ -159,11 +159,15 @@ extern "C"
|
|
|
|
|
|
|
|
|
|
/* Global */
|
|
|
|
|
|
|
|
|
|
+extern char *oath_lockfile_path;
|
|
|
|
|
+ extern char *oath_lockfile_path;
|
|
|
|
|
+
|
|
|
|
|
extern OATHAPI int oath_init (void);
|
|
|
|
|
extern OATHAPI int oath_done (void);
|
|
|
|
|
extern OATHAPI int oath_init (void);
|
|
|
|
|
extern OATHAPI int oath_done (void);
|
|
|
|
|
|
|
|
|
|
extern OATHAPI const char *oath_check_version (const char *req_version);
|
|
|
|
|
extern OATHAPI const char *oath_check_version (const char *req_version);
|
|
|
|
|
|
|
|
|
|
+extern OATHAPI int oath_set_lockfile_path(const char *lockfile);
|
|
|
|
|
+ extern OATHAPI int oath_set_lockfile_path(const char *lockfile);
|
|
|
|
|
+
|
|
|
|
|
/* Error handling */
|
|
|
|
|
|
|
|
|
|
extern OATHAPI const char *oath_strerror (int err);
|
|
|
|
|
extern OATHAPI const char *oath_strerror (int err);
|
|
|
|
|
diff --git a/liboath/usersfile.c b/liboath/usersfile.c
|
|
|
|
|
index ef03f39..7cc4347 100644
|
|
|
|
|
index 68268a2..eb78fe0 100644
|
|
|
|
|
--- a/liboath/usersfile.c
|
|
|
|
|
+++ b/liboath/usersfile.c
|
|
|
|
|
@@ -323,9 +323,18 @@ update_usersfile (const char *usersfile,
|
|
|
|
|
@@ -325,9 +325,18 @@ update_usersfile (const char *usersfile,
|
|
|
|
|
{
|
|
|
|
|
int l;
|
|
|
|
|
|
|
|
|
@ -136,10 +136,10 @@ index ef03f39..7cc4347 100644
|
|
|
|
|
+ return OATH_PRINTF_ERROR;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
lockfh = fopen (lockfile, "w");
|
|
|
|
|
lockfh = fopen (lockfile, "wx");
|
|
|
|
|
if (!lockfh)
|
|
|
|
|
diff --git a/pam_oath/pam_oath.c b/pam_oath/pam_oath.c
|
|
|
|
|
index b2afed7..307ffc2 100644
|
|
|
|
|
index 2a85030..6a83195 100644
|
|
|
|
|
--- a/pam_oath/pam_oath.c
|
|
|
|
|
+++ b/pam_oath/pam_oath.c
|
|
|
|
|
@@ -75,6 +75,7 @@ struct cfg
|
|
|
|
@ -175,7 +175,7 @@ index b2afed7..307ffc2 100644
|
|
|
|
|
D (("digits=%d", cfg->digits));
|
|
|
|
|
D (("window=%d", cfg->window));
|
|
|
|
|
}
|
|
|
|
|
@@ -327,6 +332,17 @@ pam_sm_authenticate (pam_handle_t * pamh,
|
|
|
|
|
@@ -369,6 +374,17 @@ pam_sm_authenticate (pam_handle_t *pamh,
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
|