xcrypt.c (126274) | xcrypt.c (128456) |
---|---|
1/* 2 * Copyright (c) 2003 Ben Lindstrom. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include "includes.h" 26 | 1/* 2 * Copyright (c) 2003 Ben Lindstrom. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include "includes.h" 26 |
27#if !defined(HAVE_OSF_SIA) 28 | |
29# ifdef HAVE_CRYPT_H 30# include <crypt.h> 31# endif 32 33# ifdef __hpux 34# include <hpsecurity.h> 35# include <prot.h> 36# endif --- 66 unchanged lines hidden (view full) --- 103 struct pr_passwd *spw = getprpwnam(pw->pw_name); 104 105 if (spw != NULL) 106 pw_password = spw->ufld.fd_encrypt; 107# endif 108 109 return pw_password; 110} | 27# ifdef HAVE_CRYPT_H 28# include <crypt.h> 29# endif 30 31# ifdef __hpux 32# include <hpsecurity.h> 33# include <prot.h> 34# endif --- 66 unchanged lines hidden (view full) --- 101 struct pr_passwd *spw = getprpwnam(pw->pw_name); 102 103 if (spw != NULL) 104 pw_password = spw->ufld.fd_encrypt; 105# endif 106 107 return pw_password; 108} |
111 112#endif /* !defined(HAVE_OSF_SIA) */ | |