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
Tero Saarni
OpenLDAP
Commits
9f7d119c
Commit
9f7d119c
authored
13 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Add LDAP_OPT_X_TLS_PACKAGE
to return the name of the underlying TLS implementation
parent
329e7937
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ldap.h
+1
-0
1 addition, 0 deletions
include/ldap.h
libraries/libldap/tls2.c
+5
-0
5 additions, 0 deletions
libraries/libldap/tls2.c
with
6 additions
and
0 deletions
include/ldap.h
+
1
−
0
View file @
9f7d119c
...
...
@@ -157,6 +157,7 @@ LDAP_BEGIN_DECL
#define LDAP_OPT_X_TLS_DHFILE 0x600e
#define LDAP_OPT_X_TLS_NEWCTX 0x600f
#define LDAP_OPT_X_TLS_CRLFILE 0x6010
/* GNUtls only */
#define LDAP_OPT_X_TLS_PACKAGE 0x6011
#define LDAP_OPT_X_TLS_NEVER 0
#define LDAP_OPT_X_TLS_HARD 1
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/tls2.c
+
5
−
0
View file @
9f7d119c
...
...
@@ -578,6 +578,11 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg )
{
struct
ldapoptions
*
lo
;
if
(
option
==
LDAP_OPT_X_TLS_PACKAGE
)
{
*
(
char
**
)
arg
=
LDAP_STRDUP
(
tls_imp
->
ti_name
);
return
0
;
}
if
(
ld
!=
NULL
)
{
assert
(
LDAP_VALID
(
ld
)
);
...
...
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