diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-01-07 16:50:06 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-01-07 16:50:06 +0000 |
commit | f3ff6a502f9a69b453c4fe42e2e6a9648712493e (patch) | |
tree | 62051a793f525a1bec8f86763362ddad167d432f /src/lib/krb5/krb/kfree.c | |
parent | cb8dc48cfaf273d0e93e4ad383484a7849b64099 (diff) | |
download | krb5-f3ff6a502f9a69b453c4fe42e2e6a9648712493e.tar.gz krb5-f3ff6a502f9a69b453c4fe42e2e6a9648712493e.tar.xz krb5-f3ff6a502f9a69b453c4fe42e2e6a9648712493e.zip |
Remove some unused structures and encoders
krb5_alt_method was added in r6604 but never supported. krb5_pwd_data
became unused when the Sandia kadmin system was replaced.
krb5_pa_server_referral_data and krb5_pa_svr_referral_data were added
in r21690 with internally-visible encoders which nothing uses.
Leave behind structure declarations in krb5.hin for API compatibility.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25619 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/kfree.c')
-rw-r--r-- | src/lib/krb5/krb/kfree.c | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c index 6208a9be90..5c79900323 100644 --- a/src/lib/krb5/krb/kfree.c +++ b/src/lib/krb5/krb/kfree.c @@ -76,16 +76,6 @@ krb5_free_addresses(krb5_context context, krb5_address **val) free(val); } - -void KRB5_CALLCONV -krb5_free_alt_method(krb5_context context, - krb5_alt_method *alt) -{ - if (alt) { - free(alt->data); - free(alt); - } -} void KRB5_CALLCONV krb5_free_ap_rep(krb5_context context, register krb5_ap_rep *val) { @@ -429,43 +419,6 @@ krb5_free_priv_enc_part(krb5_context context, register krb5_priv_enc_part *val) } void KRB5_CALLCONV -krb5_free_pwd_data(krb5_context context, krb5_pwd_data *val) -{ - if (val == NULL) - return; - krb5_free_pwd_sequences(context, val->element); - free(val); -} - - -void KRB5_CALLCONV -krb5_free_passwd_phrase_element(krb5_context context, - passwd_phrase_element *val) -{ - if (val == NULL) - return; - krb5_free_data(context, val->passwd); - val->passwd = NULL; - krb5_free_data(context, val->phrase); - val->phrase = NULL; - free(val); -} - - -void KRB5_CALLCONV -krb5_free_pwd_sequences(krb5_context context, passwd_phrase_element **val) -{ - register passwd_phrase_element **temp; - - if (val == NULL) - return; - for (temp = val; *temp; temp++) - krb5_free_passwd_phrase_element(context, *temp); - free(val); -} - - -void KRB5_CALLCONV krb5_free_safe(krb5_context context, register krb5_safe *val) { if (val == NULL) @@ -681,33 +634,6 @@ krb5_free_pa_s4u_x509_user(krb5_context context, krb5_pa_s4u_x509_user *req) } void KRB5_CALLCONV -krb5_free_pa_server_referral_data(krb5_context context, - krb5_pa_server_referral_data *ref) -{ - if (ref == NULL) - return; - krb5_free_data(context, ref->referred_realm); - ref->referred_realm = NULL; - krb5_free_principal(context, ref->true_principal_name); - ref->true_principal_name = NULL; - krb5_free_principal(context, ref->requested_principal_name); - ref->requested_principal_name = NULL; - krb5_free_checksum_contents(context, &ref->rep_cksum); - free(ref); -} - -void KRB5_CALLCONV -krb5_free_pa_svr_referral_data(krb5_context context, - krb5_pa_svr_referral_data *ref) -{ - if (ref == NULL) - return; - krb5_free_principal(context, ref->principal); - ref->principal = NULL; - free(ref); -} - -void KRB5_CALLCONV krb5_free_pa_pac_req(krb5_context context, krb5_pa_pac_req *req) { |