Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
David Barchiesi
OpenLDAP
Commits
42f2a836
Commit
42f2a836
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
rename ber_init() to ber_init_w_nullc in preparation of LDAPv3 ber_init()
parent
43f29c3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
include/lber.h
+1
-1
1 addition, 1 deletion
include/lber.h
libraries/liblber/io.c
+7
-1
7 additions, 1 deletion
libraries/liblber/io.c
libraries/libldap/cldap.c
+1
-1
1 addition, 1 deletion
libraries/libldap/cldap.c
libraries/libldap/result.c
+2
-2
2 additions, 2 deletions
libraries/libldap/result.c
with
11 additions
and
5 deletions
include/lber.h
+
1
−
1
View file @
42f2a836
...
...
@@ -161,7 +161,7 @@ LDAP_F void ber_dump LDAP_P(( BerElement *ber, int inout ));
LDAP_F
void
ber_sos_dump
LDAP_P
((
Seqorset
*
sos
));
LDAP_F
unsigned
long
ber_get_next
LDAP_P
((
Sockbuf
*
sb
,
unsigned
long
*
len
,
BerElement
*
ber
));
LDAP_F
void
ber_init
LDAP_P
((
BerElement
*
ber
,
int
options
));
LDAP_F
void
ber_init
_w_nullc
LDAP_P
((
BerElement
*
ber
,
int
options
));
LDAP_F
void
ber_reset
LDAP_P
((
BerElement
*
ber
,
int
was_writing
));
LDAP_END_DECL
...
...
This diff is collapsed.
Click to expand it.
libraries/liblber/io.c
+
7
−
1
View file @
42f2a836
...
...
@@ -366,13 +366,19 @@ ber_dup( BerElement *ber )
void
ber_init
(
BerElement
*
ber
,
int
options
)
ber_init
_w_nullc
(
BerElement
*
ber
,
int
options
)
{
(
void
)
memset
(
(
char
*
)
ber
,
'\0'
,
sizeof
(
BerElement
));
ber
->
ber_tag
=
LBER_DEFAULT
;
ber
->
ber_options
=
(
char
)
options
;
}
BerElement
*
ber_init
(
struct
berval
*
bv
)
{
return
(
NULL
);
}
void
ber_reset
(
BerElement
*
ber
,
int
was_writing
)
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/cldap.c
+
1
−
1
View file @
42f2a836
...
...
@@ -297,7 +297,7 @@ cldap_result( LDAP *ld, int msgid, LDAPMessage **res,
Debug
(
LDAP_DEBUG_TRACE
,
"cldap_result waiting up to %d seconds for a response
\n
"
,
tv
.
tv_sec
,
0
,
0
);
ber_init
(
&
ber
,
0
);
ber_init
_w_nullc
(
&
ber
,
0
);
ldap_set_ber_options
(
ld
,
&
ber
);
if
(
cldap_getmsg
(
ld
,
&
tv
,
&
ber
)
==
-
1
)
{
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/result.c
+
2
−
2
View file @
42f2a836
...
...
@@ -274,7 +274,7 @@ read1msg( LDAP *ld, int msgid, int all, Sockbuf *sb,
Debug
(
LDAP_DEBUG_TRACE
,
"read1msg
\n
"
,
0
,
0
,
0
);
ber_init
(
&
ber
,
0
);
ber_init
_w_nullc
(
&
ber
,
0
);
ldap_set_ber_options
(
ld
,
&
ber
);
/* get the next message */
...
...
@@ -516,7 +516,7 @@ build_result_ber( LDAP *ld, BerElement *ber, LDAPRequest *lr )
unsigned
long
len
;
long
along
;
ber_init
(
ber
,
0
);
ber_init
_w_nullc
(
ber
,
0
);
ldap_set_ber_options
(
ld
,
ber
);
if
(
ber_printf
(
ber
,
"{it{ess}}"
,
lr
->
lr_msgid
,
(
long
)
lr
->
lr_res_msgtype
,
lr
->
lr_res_errno
,
...
...
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