~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/lib/gssapi/krb5/set_allowable_enctypes.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman, Russ Allbery, Sam Hartman
  • Date: 2008-08-21 10:41:41 UTC
  • mfrom: (11.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080821104141-a0f9c4o4cpo8xd0o
Tags: 1.6.dfsg.4~beta1-4
[ Russ Allbery ]
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #487669, #491774)
  - Italian, thanks Luca Monducci.  (Closes: #493962)

[ Sam Hartman ]
* Translation Updates:
    - Dutch, Thanks Vincent Zweije, Closes: #495733

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
#include "gssapi_krb5.h"
60
60
 
61
61
OM_uint32 KRB5_CALLCONV
62
 
gss_krb5_set_allowable_enctypes(OM_uint32 *minor_status, 
63
 
                                gss_cred_id_t cred_handle,
64
 
                                OM_uint32 num_ktypes,
65
 
                                krb5_enctype *ktypes)
 
62
gss_krb5int_set_allowable_enctypes(OM_uint32 *minor_status, 
 
63
                                   gss_cred_id_t cred_handle,
 
64
                                   OM_uint32 num_ktypes,
 
65
                                   krb5_enctype *ktypes)
66
66
{
67
67
    int i;
68
68
    krb5_enctype * new_ktypes;
115
115
        goto error_out;
116
116
    }
117
117
    kerr = k5_mutex_lock(&cred->lock);
118
 
    if (kerr)
 
118
    if (kerr) {
 
119
        free(new_ktypes);
119
120
        goto error_out;
 
121
    }
120
122
    if (cred->req_enctypes)
121
123
        free(cred->req_enctypes);
122
124
    cred->req_enctypes = new_ktypes;