181,218d180
< /*------------------------------------- PASSWORD */
< pop_result
< check_password ( POP *p, char *password_entry, char *password_claim )
< {
<     /*
<      * First check if password entry (system password) is null
<      */
<     if ( (  password_entry == NULL ) || 
<          ( *password_entry == '\0' )   ) {
<         sleep ( SLEEP_SECONDS );
<         return ( pop_msg ( p, POP_FAILURE, HERE, ERRMSG_PW, p->user ) );
<     }
< 
<     /*
<      * Now compare the claimed password with the system password entry
<      *
<      * Linux kernels older than 2.0.x need pw_encrypt() for shadow support 
<      */
<     if ( TRUE
< #ifdef    HAVE_CRYPT16
<          && strcmp ( crypt16    ( password_claim, password_entry ), password_entry )
< #endif /* HAVE_CRYPT16 */
< #ifdef    HAVE_BIGCRYPT
<          && strcmp ( bigcrypt   ( password_claim, password_entry ), password_entry )
< #endif /* HAVE_BIGCRYPT */
< #ifdef   HAVE_PW_ENCRYPT
<          && strcmp ( pw_encrypt ( password_claim, password_entry ), password_entry )
< #endif /* HAVE_PW_ENCRYPT */
< #ifdef    HAVE_CRYPT
<          && strcmp ( crypt      ( password_claim, password_entry ), password_entry )
< #endif /* HAVE_CRYPT */
<        ) {
<         sleep  ( SLEEP_SECONDS );
<         return ( pop_msg ( p, POP_FAILURE, HERE, ERRMSG_PW, p->user ) );
<     }
< 
<     return POP_SUCCESS;
< }
219a182,183
> pop_result
> check_password ( POP *p, char *password_entry, char *password_claim );
1368a1333,1372
> }
> 
> 
> /*------------------------------------- PASSWORD */
> pop_result
> check_password ( POP *p, char *password_entry, char *password_claim )
> {
>     /*
>      * First check if password entry (system password) is null
>      */
>     if ( (  password_entry == NULL ) || 
>          ( *password_entry == '\0' )   ) {
>         sleep ( SLEEP_SECONDS );
>         return ( pop_msg ( p, POP_FAILURE, HERE, ERRMSG_PW, p->user ) );
>     }
> 
>     /*
>      * Now compare the claimed password with the system password entry
>      *
>      * Linux kernels older than 2.0.x need pw_encrypt() for shadow support 
>      */
>     if ( TRUE
> #ifdef    HAVE_CRYPT16
>          && strcmp ( crypt16    ( password_claim, password_entry ), password_entry )
> #endif /* HAVE_CRYPT16 */
> #ifdef    HAVE_BIGCRYPT
>          && strcmp ( bigcrypt   ( password_claim, password_entry ), password_entry )
> #endif /* HAVE_BIGCRYPT */
> #ifdef   HAVE_PW_ENCRYPT
>          && strcmp ( pw_encrypt ( password_claim, password_entry ), password_entry )
> #endif /* HAVE_PW_ENCRYPT */
> #ifdef    HAVE_CRYPT
>          && strcmp ( crypt      ( password_claim, password_entry ), password_entry )
> #endif /* HAVE_CRYPT */
>        ) {
>         sleep  ( SLEEP_SECONDS );
>         return ( pop_msg ( p, POP_FAILURE, HERE, ERRMSG_PW, p->user ) );
>     }
> 
>     return POP_SUCCESS;
