Diff for /libraries/libldap/sasl.c between versions 1.12 and 1.13

version 1.12, 2000/03/14 01:59:53 version 1.13, 2000/03/14 02:08:46
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.11 2000/03/14 01:54:08 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.12 2000/03/14 01:59:53 kurt Exp $ */
 /*  /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 829  ldap_negotiated_sasl_bind_s( Line 829  ldap_negotiated_sasl_bind_s(
         sasl_callback_t callbacks[4];          sasl_callback_t callbacks[4];
         int rc;          int rc;
   
         callbacks[n=0].id = SASL_CB_USER;          /*
            * Cyrus uses screwy terms.  The authname is the
            * SASL "username" or authentication identity.
            * The user is the authorization identity.
            */
   
           callbacks[n=0].id = SASL_CB_AUTHNAME;
         callbacks[n].proc = ldap_pvt_sasl_getsimple;          callbacks[n].proc = ldap_pvt_sasl_getsimple;
         callbacks[n].context = (void *)authenticationId;          callbacks[n].context = (void *)authenticationId;
   
         if( authorizationId != NULL ) {          if( authorizationId != NULL ) {
                 callbacks[++n].id = SASL_CB_AUTHNAME;                  callbacks[++n].id = SASL_CB_USER;
                 callbacks[n].proc = ldap_pvt_sasl_getsimple;                  callbacks[n].proc = ldap_pvt_sasl_getsimple;
                 callbacks[n].context = (void *)authorizationId;                  callbacks[n].context = (void *)authorizationId;
         }          }

Removed from v.1.12  
changed lines
  Added in v.1.13


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org