Skip to content

Commit 093542b

Browse files
committed
fix openldap tabs vs spaces issue
1 parent 02ad5ca commit 093542b

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

‎deps-packaging/openldap/gcc-8.5.patch‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
+++ patched-openldap/libraries/libldap/tls_o.c 2026-05-19 21:24:52.955329138 +0000
33
@@ -543,7 +543,7 @@
44

5-
while ((info = OSSL_STORE_load( sctx ))) {
6-
switch (OSSL_STORE_INFO_get_type( info )) {
7-
- case OSSL_STORE_INFO_CERT:
8-
+ case OSSL_STORE_INFO_CERT:;
9-
X509 *cert = OSSL_STORE_INFO_get0_CERT( info );
10-
X509_STORE *store = SSL_CTX_get_cert_store( ctx );
11-
if ( !X509_STORE_add_cert( store, cert ) ) {
5+
while ((info = OSSL_STORE_load( sctx ))) {
6+
switch (OSSL_STORE_INFO_get_type( info )) {
7+
- case OSSL_STORE_INFO_CERT:
8+
+ case OSSL_STORE_INFO_CERT:;
9+
X509 *cert = OSSL_STORE_INFO_get0_CERT( info );
10+
X509_STORE *store = SSL_CTX_get_cert_store( ctx );
11+
if ( !X509_STORE_add_cert( store, cert ) ) {
1212
@@ -753,7 +753,7 @@
13-
return -1;
14-
}
15-
break;
16-
- case OSSL_STORE_INFO_CERT:
17-
+ case OSSL_STORE_INFO_CERT:;
18-
X509 *cert = OSSL_STORE_INFO_get0_CERT(info);
19-
int is_ca = X509_check_ca( cert );
20-
if ( !is_ca && !SSL_CTX_use_certificate( ctx, cert )) {
13+
return -1;
14+
}
15+
break;
16+
- case OSSL_STORE_INFO_CERT:
17+
+ case OSSL_STORE_INFO_CERT:;
18+
X509 *cert = OSSL_STORE_INFO_get0_CERT(info);
19+
int is_ca = X509_check_ca( cert );
20+
if ( !is_ca && !SSL_CTX_use_certificate( ctx, cert )) {
2121
@@ -773,7 +773,7 @@
22-
return -1;
23-
}
24-
break;
25-
- case OSSL_STORE_INFO_CRL:
26-
+ case OSSL_STORE_INFO_CRL:;
27-
X509_STORE *x509_s = SSL_CTX_get_cert_store( ctx );
28-
if ( !X509_STORE_add_crl( x509_s,
29-
OSSL_STORE_INFO_get0_CRL(info) )) {
22+
return -1;
23+
}
24+
break;
25+
- case OSSL_STORE_INFO_CRL:
26+
+ case OSSL_STORE_INFO_CRL:;
27+
X509_STORE *x509_s = SSL_CTX_get_cert_store( ctx );
28+
if ( !X509_STORE_add_crl( x509_s,
29+
OSSL_STORE_INFO_get0_CRL(info) )) {

0 commit comments

Comments
 (0)