SHA256
1
0
forked from pool/pam_pkcs11
pam_pkcs11/pam_pkcs11-implicit-declaration.patch

71 lines
2.5 KiB
Diff

ldap_mapper.c: In function 'ldap_get_certificate':
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 <nspr.h>
+#include <cryptohi.h>
#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 <string.h>
+#include <stdio.h>
#define __ERROR_C_
--- src/mappers/ldap_mapper.c
+++ src/mappers/ldap_mapper.c
@@ -36,6 +36,7 @@
#include <ldap.h>
#include <pwd.h>
+#include <ssl/x509.h>
#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 <secmod.h>
+#include <nss.h>
+#include <pk11pub.h>
#endif
#define DEF_POLLING 1 /* 1 second timeout */