+++ /dev/null
-diff -Nru opensc-0.9.6.orig/src/pam/pam_support.c opensc-0.9.6/src/pam/pam_support.c
---- opensc-0.9.6.orig/src/pam/pam_support.c 2005-04-14 11:02:10.000000000 +0200
-+++ opensc-0.9.6/src/pam/pam_support.c 2005-04-28 17:51:36.360434392 +0200
-@@ -205,7 +205,7 @@
-
- static void _cleanup(pam_handle_t * pamh, void *x, int error_status)
- {
-- _pam_delete((char *) x);
-+ _pam_delete(x);
- }
-
- /* ************************************************************** *
+++ /dev/null
---- opensc-0.8.1/src/pkcs11/Makefile.am.wiget 2003-09-30 09:11:33.000000000 +0200
-+++ opensc-0.8.1/src/pkcs11/Makefile.am 2003-10-08 12:17:05.944565027 +0200
-@@ -1,7 +1,7 @@
- # Process this file with automake to create Makefile.in
-
- bundledir = @BUNDLEDIR@/pkcs11
--libdir = @libdir@/pkcs11
-+pksc11dir = @libdir@/pkcs11
- includedir = @includedir@/opensc
-
- MAINTAINERCLEANFILES = Makefile.in
-@@ -17,7 +17,8 @@
- framework-pkcs15init.c debug.c
- INC = sc-pkcs11.h
-
--lib_LTLIBRARIES = opensc-pkcs11.la libpkcs11.la pkcs11-spy.la
-+lib_LTLIBRARIES = libpkcs11.la opensc-pkcs11.la
-+pksc11_LTLIBRARIES = pkcs11-spy.la
-
- opensc_pkcs11_la_SOURCES = $(SRC) $(INC)
- opensc_pkcs11_la_LDFLAGS = -module -avoid-version
+++ /dev/null
-file->acl[op] can contain special value (1,2,3) cast to pointer; it must be
-passed through sc_file_get_acl_entry before dereferencing.
-
---- opensc-0.8.1/src/libopensc/card-setcos.c.orig Wed Sep 3 11:28:54 2003
-+++ opensc-0.8.1/src/libopensc/card-setcos.c Wed Jul 21 13:16:44 2004
-@@ -152,8 +152,11 @@
- for (i = 0; i < 6; i++)
- idx[i] = ef_idx[i];
- }
-- for (i = 0; i < 6; i++)
-- buf[i] = acl_to_byte(file->acl[idx[i]]);
-+ for (i = 0; i < 6; i++) {
-+ const struct sc_acl_entry *entry;
-+ entry = sc_file_get_acl_entry(file, idx[i]);
-+ buf[i] = acl_to_byte(entry);
-+ }
-
- sc_file_set_sec_attr(file, buf, 6);
- }