Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
34c945b8
Commit
34c945b8
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
added ber_print_error() and renamed lber_bprint into ber_ namespace.
parent
80cf83ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/man/man1/ldapsearch.1
+1
-1
1 addition, 1 deletion
doc/man/man1/ldapsearch.1
include/lber.h
+3
-1
3 additions, 1 deletion
include/lber.h
libraries/liblber/bprint.c
+15
-4
15 additions, 4 deletions
libraries/liblber/bprint.c
with
19 additions
and
6 deletions
doc/man/man1/ldapsearch.1
+
1
−
1
View file @
34c945b8
...
...
@@ -164,7 +164,7 @@ base object for the search. The default is to never dereference aliases.
wait at most \fItimelimit\fP seconds for a search to complete.
.TP
.B \-z sizelimit
retrieve at most \fIsizelimit\fP
second
s for a search
to complete
.
retrieve at most \fIsizelimit\fP
entrie
s for a search.
.SH OUTPUT FORMAT
If one or more entries are found, each entry is written to standard output
in the form:
...
...
This diff is collapsed.
Click to expand it.
include/lber.h
+
3
−
1
View file @
34c945b8
...
...
@@ -97,7 +97,9 @@ extern int lber_debug;
/*
* in bprint.c:
*/
LDAP_F
void
lber_bprint
LDAP_P
((
char
*
data
,
int
len
));
LDAP_F
void
ber_print_error
LDAP_P
((
char
*
data
));
LDAP_F
void
ber_bprint
LDAP_P
((
char
*
data
,
int
len
));
#define lber_bprint(d,l) ber_bprint((d),(l))
/*
* in decode.c:
...
...
This diff is collapsed.
Click to expand it.
libraries/liblber/bprint.c
+
15
−
4
View file @
34c945b8
#include
"portable.h"
#if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
#include
<stdio.h>
#if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
#include
<ac/ctype.h>
#include
<ac/string.h>
#endif
/* LDAP_DEBUG && LDAP_LIBUI */
...
...
@@ -11,12 +11,21 @@
#include
"lber-int.h"
/*
* Print
arbitrary stuff, for debugging.
* Print
stuff
*/
void
ber_print_error
(
char
*
data
)
{
fputs
(
data
,
stderr
);
fflush
(
stderr
);
}
/*
* Print arbitrary stuff, for debugging.
*/
void
l
ber_bprint
(
char
*
data
,
int
len
)
ber_bprint
(
char
*
data
,
int
len
)
{
#if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
#define BPLEN 48
...
...
@@ -48,7 +57,9 @@ lber_bprint( char *data, int len )
data
++
;
if
(
i
>
BPLEN
-
2
)
{
fprintf
(
stderr
,
"
\t
%s
\n
"
,
out
);
char
data
[
128
+
BPLEN
];
sprintf
(
data
,
"
\t
%s
\n
"
,
out
);
ber_print_error
(
data
);
memset
(
out
,
0
,
BPLEN
);
i
=
0
;
continue
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment