mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
Only define x509_cert_get_dn() when HAVE_GNUTLS. Remove unused variable.
This commit is contained in:
parent
7372fea8b5
commit
f906a99eec
1 changed files with 2 additions and 3 deletions
|
|
@ -1639,6 +1639,7 @@ ldap_tls_inplace( LDAP *ld )
|
|||
return ldap_pvt_tls_inplace( sb );
|
||||
}
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
static void
|
||||
x509_cert_get_dn( struct berval *cert, struct berval *dn, int get_subject )
|
||||
{
|
||||
|
|
@ -1671,7 +1672,6 @@ x509_cert_get_dn( struct berval *cert, struct berval *dn, int get_subject )
|
|||
dn->bv_len = cert->bv_len - len;
|
||||
}
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
static int
|
||||
tls_get_cert_dn( tls_session *session, struct berval *dnbv )
|
||||
{
|
||||
|
|
@ -1692,7 +1692,7 @@ tls_get_cert_dn( tls_session *session, struct berval *dnbv )
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#else /* !HAVE_GNUTLS */
|
||||
static X509 *
|
||||
tls_get_cert( SSL *s )
|
||||
{
|
||||
|
|
@ -1712,7 +1712,6 @@ tls_get_cert_dn( tls_session *session, struct berval *dnbv )
|
|||
{
|
||||
X509_NAME *xn;
|
||||
X509 *x = tls_get_cert( session );
|
||||
int len;
|
||||
|
||||
if ( !x )
|
||||
return LDAP_INVALID_CREDENTIALS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue