aboutsummaryrefslogtreecommitdiff
path: root/security/pam_bsdbioapi/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-03-17 19:59:53 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-03-17 19:59:53 +0000
commitf6825e276c0ef9f321a4ef2fed91a552113e1259 (patch)
tree8b6b6f5af58a5c8ee822b0908e6196f65567b11a /security/pam_bsdbioapi/files
parent2b9dfc79cfbf7cb050d1d8850a04121db2e4b191 (diff)
downloadports-f6825e276c0ef9f321a4ef2fed91a552113e1259.tar.gz
ports-f6825e276c0ef9f321a4ef2fed91a552113e1259.zip
- Update to 1.5.1
PR: 121732 Submitted by: "Fredrik Lindberg" <fli@shapeshifter.se> (maintainer)
Notes
Notes: svn path=/head/; revision=209254
Diffstat (limited to 'security/pam_bsdbioapi/files')
-rw-r--r--security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.823
-rw-r--r--security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.c51
2 files changed, 0 insertions, 74 deletions
diff --git a/security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.8 b/security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.8
deleted file mode 100644
index 0e7d99d87b32..000000000000
--- a/security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.8
+++ /dev/null
@@ -1,23 +0,0 @@
---- src/pam_bsdbioapi/pam_bsdbioapi.8 Thu Feb 23 06:15:13 2006
-+++ src/pam_bsdbioapi/pam_bsdbioapi.8.orig Sun Dec 10 06:36:31 2006
-@@ -36,6 +36,7 @@
- .Ar pam_bsdbioapi
- .Ar bsp-uuid
- .Ar backend
-+.Op -s
- .Op -f birdb-path
- .Op -m message-file
- .Sh DESCRIPTION
-@@ -69,6 +70,12 @@
- This option is required.
- .Pp
- .Bl -tag -width ".Fl m Ar message-file"
-+.It Fl s
-+Fail without prompting the user to swipe finger if the user has not enrolled
-+yet.
-+This is useful if only a handful of users has enrolled, but leaks whether the
-+given user has enrolled, to whomever tries to authenticate as the user (e.g.
-+an attacker outside).
- .It Fl f Ar birdb-path
- Specify an alternative path to the birdb.conf file for backend configuration.
- The default is /usr/local/etc/birdb.conf
diff --git a/security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.c b/security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.c
deleted file mode 100644
index 9e125ce4eafc..000000000000
--- a/security/pam_bsdbioapi/files/patch-src_pam_bsdbioapi_pam_bsdbioapi.c
+++ /dev/null
@@ -1,51 +0,0 @@
---- src/pam_bsdbioapi/pam_bsdbioapi.c Thu Feb 23 06:15:13 2006
-+++ src/pam_bsdbioapi/pam_bsdbioapi.c.orig Sun Dec 10 06:26:57 2006
-@@ -215,7 +215,7 @@
- int argc, const char *argv[])
- {
- const char *user, *bsp_id, *dbid, *conf, *msgfile;
-- int error, pam_retval = PAM_AUTH_ERR;
-+ int error, pam_retval = PAM_AUTH_ERR, skip_unenrolled;
- BioAPI_HANDLE *handle;
- struct birdb_rec keyrec, **recs;
- struct birdb_mod *bm;
-@@ -241,9 +241,10 @@
-
- conf = DEFCONFPATH;
- msgfile = NULL;
-+ skip_unenrolled = 0;
-
- optind = 2;
-- while ((opt = getopt(argc, (char **)argv, "m:f:")) != -1) {
-+ while ((opt = getopt(argc, (char **)argv, "m:f:s")) != -1) {
- switch (opt) {
- case 'm':
- msgfile = argv[optind - 1];
-@@ -253,6 +254,9 @@
- conf = argv[optind - 1];
- PAM_LOG("Got birdb configuration file: %s", conf);
- break;
-+ case 's':
-+ skip_unenrolled = 1;
-+ break;
- }
- }
-
-@@ -271,7 +275,6 @@
- PAM_LOG("Got user: %s", user);
-
- setuid(euid);
-- pam_info(pamh, "Initiating biometric authentication...");
-
- error = bioapi_init();
- if (error)
-@@ -312,7 +315,8 @@
-
- keyrec.br_key = (char *)user;
- recs = birdb_backend_get(bm, bmh, &keyrec);
-- if (recs != NULL) {
-+ if (recs != NULL && (!skip_unenrolled || recs[0] != NULL)) {
-+ pam_info(pamh, "Initiating biometric authentication...");
- handle = bioapi_attach_bsp(bsp_id);
- if (handle == NULL) {
- PAM_VERBOSE_ERROR("Failed to attach the selected BSP");