Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn McKinney
OpenLDAP
Commits
aaaac6ee
Commit
aaaac6ee
authored
May 19, 2000
by
Kurt Zeilenga
Browse files
Detect and use getpassphrase() and getpass()
parent
40b8a71c
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
aaaac6ee
...
...
@@ -10,6 +10,7 @@ Changes included in OpenLDAP 1.2.11 Release Engineering
Fixed NULL prefix bug in libldap/ufn.c
Fixed slapd_shutdown extern reference bug (ITS#527)
Build Environment
Detect and use getpassphrase() and getpass()
Change GNU Pth to enable soft syscalls
Changed RCPT cmds symbol to avoid link conflict (ITS#526)
Changed LDBM directory to $localstatedir/openldap-ldbm
...
...
configure
View file @
aaaac6ee
...
...
@@ -9277,6 +9277,8 @@ for ac_func in \
bcopy
\
closesocket
\
flock
\
getpass
\
getpassphrase
\
getdtablesize
\
gethostname
\
getpwuid
\
...
...
@@ -9305,12 +9307,12 @@ for ac_func in \
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:93
09
: checking for
$ac_func
"
>
&5
echo
"configure:93
11
: checking for
$ac_func
"
>
&5
if
eval
"test
\"\$
{ac_cv_func_
$ac_func
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 931
4
"configure"
#line 931
6
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -9334,7 +9336,7 @@ f = $ac_func;
; return 0; }
EOF
if
{
(
eval echo
configure:93
38
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:93
40
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -9362,12 +9364,12 @@ done
for
ac_func
in
getopt strdup tempnam
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:936
6
: checking for
$ac_func
"
>
&5
echo
"configure:936
8
: checking for
$ac_func
"
>
&5
if
eval
"test
\"\$
{ac_cv_func_
$ac_func
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 937
1
"configure"
#line 937
3
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -9391,7 +9393,7 @@ f = $ac_func;
; return 0; }
EOF
if
{
(
eval echo
configure:939
5
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:939
7
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -9421,13 +9423,13 @@ done
# Check Configuration
echo
$ac_n
"checking declaration of sys_errlist""...
$ac_c
"
1>&6
echo
"configure:942
5
: checking declaration of sys_errlist"
>
&5
echo
"configure:942
7
: checking declaration of sys_errlist"
>
&5
if
eval
"test
\"\$
{ol_cv_dcl_sys_errlist+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 943
1
"configure"
#line 943
3
"configure"
#include "confdefs.h"
#include <stdio.h>
...
...
@@ -9437,7 +9439,7 @@ int main() {
char *c = (char *) *sys_errlist
; return 0; }
EOF
if
{
(
eval echo
configure:944
1
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:944
3
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ol_cv_dcl_sys_errlist
=
yes
else
...
...
@@ -9458,20 +9460,20 @@ if test $ol_cv_dcl_sys_errlist = no ; then
EOF
echo
$ac_n
"checking existence of sys_errlist""...
$ac_c
"
1>&6
echo
"configure:946
2
: checking existence of sys_errlist"
>
&5
echo
"configure:946
4
: checking existence of sys_errlist"
>
&5
if
eval
"test
\"\$
{ol_cv_have_sys_errlist+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 94
68
"configure"
#line 94
70
"configure"
#include "confdefs.h"
#include <errno.h>
int main() {
char *c = (char *) *sys_errlist
; return 0; }
EOF
if
{
(
eval echo
configure:947
5
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:947
7
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ol_cv_have_sys_errlist
=
yes
else
...
...
configure.in
View file @
aaaac6ee
...
...
@@ -1396,6 +1396,8 @@ AC_CHECK_FUNCS( \
bcopy \
closesocket \
flock \
getpass \
getpassphrase \
getdtablesize \
gethostname \
getpwuid \
...
...
include/ac/unistd.h
View file @
aaaac6ee
...
...
@@ -27,7 +27,13 @@
extern
char
*
crypt
();
#endif
#ifndef HAVE_GETPASS
#if defined( HAVE_GETPASSPHRASE )
extern
char
*
(
getpassphrase
)();
#define getpass(x) getpassphrase(x)
#elif defined( HAVE_GETPASS )
extern
char
*
(
getpass
)();
#else
#define NEED_GETPASS
extern
char
*
getpass
LDAP_P
((
const
char
*
prompt
));
#endif
...
...
include/portable.h.in
View file @
aaaac6ee
...
...
@@ -214,6 +214,12 @@
/* Define if you have the getopt function. */
#undef HAVE_GETOPT
/* Define if you have the getpass function. */
#undef HAVE_GETPASS
/* Define if you have the getpassphrase function. */
#undef HAVE_GETPASSPHRASE
/* Define if you have the getpwuid function. */
#undef HAVE_GETPWUID
...
...
libraries/liblutil/getpass.c
View file @
aaaac6ee
...
...
@@ -12,8 +12,6 @@
#include
"portable.h"
#ifndef HAVE_GETPASS
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -25,6 +23,8 @@
#include
<ac/time.h>
#include
<ac/unistd.h>
#ifdef NEED_GETPASS
#ifdef HAVE_FCNTL_H
#include
<fcntl.h>
#endif
...
...
@@ -149,4 +149,4 @@ getpass( const char *prompt )
#endif
/* DOS */
}
#endif
/* !HAVE_GETPASS */
\ No newline at end of file
#endif
/* !NEED_GETPASS */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment