diff options
author | Sam Hartman <hartmans@mit.edu> | 2009-03-26 05:36:48 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 2009-03-26 05:36:48 +0000 |
commit | e400e2233ccae153986178be0ff67219eab91573 (patch) | |
tree | 599266e1b0c59be6ec73cb79e73ef308a1a81f0b | |
parent | 1b7bfe6a08fa453d050463c2a544a5e447034bb6 (diff) | |
download | krb5-e400e2233ccae153986178be0ff67219eab91573.zip krb5-e400e2233ccae153986178be0ff67219eab91573.tar.gz krb5-e400e2233ccae153986178be0ff67219eab91573.tar.bz2 |
Some fast free functions
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/fast@22127 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/krb/kfree.c | 15 | ||||
-rw-r--r-- | src/lib/krb5/libkrb5.exports | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c index c15e8bd..227e634 100644 --- a/src/lib/krb5/krb/kfree.c +++ b/src/lib/krb5/krb/kfree.c @@ -797,3 +797,18 @@ krb5_free_etype_list(krb5_context context, free(etypes); } } +void krb5_free_fast_req(krb5_context context, krb5_fast_req *val) +{ + if (val == NULL) + return; + krb5_free_kdc_req(context, val->req_body); + free(val); +} + +void krb5_free_fast_armor(krb5_context context, krb5_fast_armor *val) +{ + if (val == NULL) + return; + krb5_free_data_contents(context, &val->armor_value); + free(val); +} diff --git a/src/lib/krb5/libkrb5.exports b/src/lib/krb5/libkrb5.exports index f83ada8..37ba383 100644 --- a/src/lib/krb5/libkrb5.exports +++ b/src/lib/krb5/libkrb5.exports @@ -227,6 +227,7 @@ krb5_free_enc_tkt_part krb5_free_error krb5_free_error_message krb5_free_etype_info +krb5_free_fast_req krb5_free_host_realm krb5_free_kdc_rep krb5_free_kdc_req |