~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to libraries/libldap/gssapi.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-03-06 17:34:21 UTC
  • mto: (0.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20090306173421-n2o3ca73v9tmrdiy
Tags: upstream-2.4.15
ImportĀ upstreamĀ versionĀ 2.4.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $OpenLDAP: pkg/ldap/libraries/libldap/gssapi.c,v 1.1.2.2 2009/01/22 00:00:54 kurt Exp $ */
 
1
/* $OpenLDAP: pkg/ldap/libraries/libldap/gssapi.c,v 1.1.2.3 2009/02/17 21:02:51 quanah Exp $ */
2
2
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3
3
 *
4
4
 * Copyright 1998-2009 The OpenLDAP Foundation.
351
351
        int gss_rc,
352
352
        OM_uint32 minor_status )
353
353
{
354
 
        OM_uint32 min2;
355
 
        OM_uint32 msg_ctx = 0;
356
354
        char msg[256];
357
355
 
358
356
        Debug( LDAP_DEBUG_ANY, "%s\n",
561
559
        }
562
560
 
563
561
        ret = snprintf( svc_principal, svc_principal_size - 1, principal_fmt, str);
564
 
        if (ret < 0 || ret >= svc_principal_size - 1) {
 
562
        if (ret < 0 || (size_t)ret + 1 >= svc_principal_size) {
565
563
                ld->ld_errno = LDAP_LOCAL_ERROR;
566
564
                return ld->ld_errno;
567
565
        }
996
994
        LDAP *ld,
997
995
        LDAP_CONST char *dn,
998
996
        LDAP_CONST char *creds )
999
 
{ return LDAP_NOT_SUPPORTED; }
 
997
{
 
998
        return LDAP_NOT_SUPPORTED;
 
999
}
1000
1000
 
1001
1001
int
1002
1002
ldap_gssapi_bind_s(