mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
eb65ab684d
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to
gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use /dev/urandom for entropy
* Allow tls obtains random bits from /dev/urandom:
The URANDOM_DEVICE is undefined for cross-compiling, define it as
/dev/urandom to allow tls obtains random bits from /dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license file
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From 0205e83f4670d10ad3c6ae4b8fc5ec1d0c7020c0 Mon Sep 17 00:00:00 2001
|
|
From: Howard Chu <hyc@openldap.org>
|
|
Date: Sat, 7 Sep 2013 09:39:24 -0700
|
|
Subject: [PATCH] ITS#7430 GnuTLS: Avoid use of deprecated function
|
|
|
|
Upstream-status: Backport
|
|
|
|
---
|
|
libraries/libldap/tls_g.c | 12 ++++++++++++
|
|
1 files changed, 12 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/libraries/libldap/tls_g.c b/libraries/libldap/tls_g.c
|
|
index 9acffaf..c793828 100644
|
|
--- a/libraries/libldap/tls_g.c
|
|
+++ b/libraries/libldap/tls_g.c
|
|
@@ -368,6 +368,17 @@ tlsg_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
|
|
* then we have to build the cert chain.
|
|
*/
|
|
if ( max == 1 && !gnutls_x509_crt_check_issuer( certs[0], certs[0] )) {
|
|
+#if GNUTLS_VERSION_NUMBER >= 0x020c00
|
|
+ unsigned int i;
|
|
+ for ( i = 1; i<VERIFY_DEPTH; i++ ) {
|
|
+ if ( gnutls_certificate_get_issuer( ctx->cred, certs[i-1], &certs[i], 0 ))
|
|
+ break;
|
|
+ max++;
|
|
+ /* If this CA is self-signed, we're done */
|
|
+ if ( gnutls_x509_crt_check_issuer( certs[i], certs[i] ))
|
|
+ break;
|
|
+ }
|
|
+#else
|
|
gnutls_x509_crt_t *cas;
|
|
unsigned int i, j, ncas;
|
|
|
|
@@ -387,6 +398,7 @@ tlsg_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
|
|
if ( j == ncas )
|
|
break;
|
|
}
|
|
+#endif
|
|
}
|
|
rc = gnutls_certificate_set_x509_key( ctx->cred, certs, max, key );
|
|
if ( rc ) return -1;
|
|
--
|
|
1.7.4.2
|
|
|