pkgsrc-wip/pam-pkcs11/patches/patch-src_pam__pkcs11_pam__pkcs11.c
Greg Troxel 40336c0462 Update to 0.6.8.
Upstream does not provide NEWS.  The ChangeLog indicates that changes
are mostly bugfixes.

packaging changes:
  use pkg-config
  depend on pam
  install config files
2012-11-26 00:49:51 +00:00

32 lines
933 B
C

$NetBSD: patch-src_pam__pkcs11_pam__pkcs11.c,v 1.1 2012/11/26 00:49:52 lexort Exp $
NetBSD's pam implements pam_prompt. configure should be testing for each
function and replacing separately. For now, adjust for NetBSD.
--- src/pam_pkcs11/pam_pkcs11.c.orig 2012-04-07 16:55:19.000000000 +0000
+++ src/pam_pkcs11/pam_pkcs11.c
@@ -68,10 +68,7 @@ static int is_spaced_str(const char *str
return 1;
}
-#ifndef HAVE_SECURITY_PAM_EXT_H
-/*
- * implement pam utilities for older versions of pam.
- */
+#ifdef DONT_ALREADY_IN_NETBSD
static int pam_prompt(pam_handle_t *pamh, int style, char **response, char *fmt, ...)
{
int rv;
@@ -108,7 +105,12 @@ static int pam_prompt(pam_handle_t *pamh
free(&resp[0]);
return PAM_SUCCESS;
}
+#endif
+#ifndef HAVE_SECURITY_PAM_EXT_H
+/*
+ * implement pam utilities for older versions of pam.
+ */
static void
pam_syslog(pam_handle_t *pamh, int priority, const char *fmt, ...)
{