diff --git a/pam_pkcs11-implicit-declaration.patch b/pam_pkcs11-implicit-declaration.patch index 4c9f7a8..4a156cb 100644 --- a/pam_pkcs11-implicit-declaration.patch +++ b/pam_pkcs11-implicit-declaration.patch @@ -3,7 +3,50 @@ ldap_mapper.c:757: warning: implicit declaration of function 'd2i_X509' ldap_mapper.c:757: warning: assignment makes pointer from integer without a cast ldap_mapper.c: In function 'ldap_mapper_match_user': ldap_mapper.c:871: warning: implicit declaration of function 'X509_cmp' +error.c: In function 'set_error': +error.c:34: warning: implicit declaration of function 'vsnprintf' +cert_vfy.c: In function 'verify_certificate': +cert_vfy.c:36: warning: implicit declaration of function 'SECU_Strerror' +cert_vfy.c:36: warning: implicit declaration of function 'PR_GetError' +cert_vfy.c: In function 'verify_signature': +cert_vfy.c:59: warning: implicit declaration of function 'SEC_GetSignatureAlgorithmOidTag' +cert_vfy.c:63: warning: implicit declaration of function 'VFY_VerifyData' +cert_vfy.c:67: warning: implicit declaration of function 'SECKEY_DestroyPublicKey' +pkcs11_eventmgr.c: In function 'thats_all_folks': +pkcs11_eventmgr.c:93: warning: implicit declaration of function 'NSS_Shutdown' +pkcs11_eventmgr.c: In function 'main': +pkcs11_eventmgr.c:379: warning: implicit declaration of function 'NSS_Init' +pkcs11_eventmgr.c:382: warning: implicit declaration of function 'NSS_NoDB_Init' +pkcs11_eventmgr.c:421: warning: statement with no effect +pkcs11_eventmgr.c:463: warning: implicit declaration of function 'PK11_GetSlotID' +pkcs11_eventmgr.c:466: warning: implicit declaration of function 'PK11_IsPresent' +pkcs11_eventmgr.c:467: warning: implicit declaration of function 'PK11_GetSlotSeries' +pkcs11_eventmgr.c:493: warning: implicit declaration of function 'PK11_FreeSlot' ================================================================================ +--- src/common/cert_vfy.c ++++ src/common/cert_vfy.c +@@ -18,8 +18,10 @@ + #include "cert_vfy.h" + + #ifdef HAVE_NSS +- ++#include ++#include + #include "cert.h" ++#include "secutil.h" + + int verify_certificate(X509 * x509, cert_policy *policy) + { +--- src/common/error.c ++++ src/common/error.c +@@ -17,6 +17,7 @@ + + #include "error.h" + #include ++#include + + #define __ERROR_C_ + --- src/mappers/ldap_mapper.c +++ src/mappers/ldap_mapper.c @@ -36,6 +36,7 @@ @@ -14,3 +57,14 @@ ldap_mapper.c:871: warning: implicit declaration of function 'X509_cmp' #include "../common/cert_st.h" #include "../common/debug.h" +--- src/tools/pkcs11_eventmgr.c ++++ src/tools/pkcs11_eventmgr.c +@@ -32,6 +32,8 @@ + + #ifdef HAVE_NSS + #include ++#include ++#include + #endif + + #define DEF_POLLING 1 /* 1 second timeout */ diff --git a/pam_pkcs11.changes b/pam_pkcs11.changes index 42f35ac..e25eaf9 100644 --- a/pam_pkcs11.changes +++ b/pam_pkcs11.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 15 18:30:29 CEST 2008 - sbrabec@suse.cz + +- Fixed all implicit declarations. + ------------------------------------------------------------------- Tue Sep 23 17:49:42 CEST 2008 - sbrabec@suse.cz diff --git a/pam_pkcs11.spec b/pam_pkcs11.spec index bba1e56..86b4d39 100644 --- a/pam_pkcs11.spec +++ b/pam_pkcs11.spec @@ -20,7 +20,7 @@ Name: pam_pkcs11 Version: 0.6.0 -Release: 138 +Release: 139 Url: http://www.opensc-project.org/pam_pkcs11/ Group: Productivity/Security License: LGPL v2.1 or later @@ -128,6 +128,8 @@ rm -rf $RPM_BUILD_ROOT %config(noreplace) %{_sysconfdir}/pam.d/common-auth-smartcard %changelog +* Wed Oct 15 2008 sbrabec@suse.cz +- Fixed all implicit declarations. * Tue Sep 23 2008 sbrabec@suse.cz - Fixed uninitialized variable (bnc#351207). * Thu Apr 10 2008 ro@suse.de