]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_checkpw/lib/checkpw.c
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_checkpw / lib / checkpw.c
index f5207f7dcb80fc89e6102dfdd86734c454c3d512..1d1b20714846889dc8b907692d05790b9c8be3df 100644 (file)
 
 #include "checkpw.h"
 #include <syslog.h>
 
 #include "checkpw.h"
 #include <syslog.h>
+#include <unistd.h>
 
 #define PAM_STACK_NAME "checkpw"
 
 
 #define PAM_STACK_NAME "checkpw"
 
+static
 int checkpw_internal_pam( const char* uname, const char* password )
 {
        int checkpwret = CHECKPW_FAILURE;
 int checkpw_internal_pam( const char* uname, const char* password )
 {
        int checkpwret = CHECKPW_FAILURE;
@@ -76,6 +78,8 @@ pamerr_no_end:
 
 }
 
 
 }
 
+#warning TODO: this should be declared in some header.
+int checkpw_internal( const struct passwd* pw, const char* password );
 int checkpw_internal( const struct passwd* pw, const char* password )
 {
        return checkpw(pw->pw_name, password);
 int checkpw_internal( const struct passwd* pw, const char* password )
 {
        return checkpw(pw->pw_name, password);