]> git.pld-linux.org Git - packages/openldap.git/blob - openldap-ldapc++.patch
perl 5.38.0 rebuild
[packages/openldap.git] / openldap-ldapc++.patch
1 diff -urNp -x '*.orig' openldap-2.4.49.org/contrib/ldapc++/examples/startTls.cpp openldap-2.4.49/contrib/ldapc++/examples/startTls.cpp
2 --- openldap-2.4.49.org/contrib/ldapc++/examples/startTls.cpp   2020-01-30 18:58:35.000000000 +0100
3 +++ openldap-2.4.49/contrib/ldapc++/examples/startTls.cpp       2021-05-07 23:04:51.668862326 +0200
4 @@ -30,6 +30,7 @@ int main( int argc, char* argv[]){
5  
6      try {
7          // 1. connect using global options
8 +        {
9          LDAPAsynConnection l(uri);
10          try {
11              l.start_tls();
12 @@ -38,8 +39,10 @@ int main( int argc, char* argv[]){
13          } catch ( LDAPException e ) {
14              std::cerr << e << std::endl;
15          }
16 +       }
17  
18          // 2. connect using connection specific option
19 +       {
20          LDAPAsynConnection l1(uri);
21          tls=l1.getTlsOptions();
22          std::cout << "Current connection specific settings:" << std::endl;
23 @@ -58,6 +61,7 @@ int main( int argc, char* argv[]){
24          } catch ( LDAPException e ) {
25              std::cerr << e << std::endl;
26          }
27 +       }
28  
29          // 3. and once again using the globals
30          try {
31 diff -urNp -x '*.orig' openldap-2.4.49.org/contrib/ldapc++/src/Makefile.am openldap-2.4.49/contrib/ldapc++/src/Makefile.am
32 --- openldap-2.4.49.org/contrib/ldapc++/src/Makefile.am 2020-01-30 18:58:35.000000000 +0100
33 +++ openldap-2.4.49/contrib/ldapc++/src/Makefile.am     2021-05-07 23:04:51.668862326 +0200
34 @@ -51,7 +51,9 @@ libldapcpp_la_SOURCES = LDAPAddRequest.c
35                         StringList.cpp \
36                         TlsOptions.cpp
37  
38 -include_HEADERS = LDAPAsynConnection.h \
39 +ldapcppincludedir = $(includedir)/ldapc++
40 +
41 +ldapcppinclude_HEADERS = LDAPAsynConnection.h \
42                         LDAPAttribute.h \
43                         LDAPAttributeList.h \
44                         LDAPAttrType.h \
45 diff -urNp -x '*.orig' openldap-2.4.49.org/contrib/ldapc++/src/SaslInteractionHandler.cpp openldap-2.4.49/contrib/ldapc++/src/SaslInteractionHandler.cpp
46 --- openldap-2.4.49.org/contrib/ldapc++/src/SaslInteractionHandler.cpp  2020-01-30 18:58:35.000000000 +0100
47 +++ openldap-2.4.49/contrib/ldapc++/src/SaslInteractionHandler.cpp      2021-05-07 23:04:51.668862326 +0200
48 @@ -7,6 +7,7 @@
49  #include <iostream>
50  #include <iomanip>
51  #include <limits>
52 +#include <cstdio>
53  #include "config.h"
54  
55  #ifdef HAVE_TERMIOS_H
This page took 0.058363 seconds and 3 git commands to generate.