diff options
| author | Greg Hudson <ghudson@mit.edu> | 2012-06-07 12:58:26 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2012-06-07 12:58:26 -0400 |
| commit | 1523033c95693c635c53dcc990b9269771e80707 (patch) | |
| tree | 7be5a6b940b5f91c37f33bd6a0b5adcd82e70366 /src/include | |
| parent | 7d1caa110226f85b4001a97afa05ef479018c511 (diff) | |
| download | krb5-1523033c95693c635c53dcc990b9269771e80707.tar.gz krb5-1523033c95693c635c53dcc990b9269771e80707.tar.xz krb5-1523033c95693c635c53dcc990b9269771e80707.zip | |
Rename and add to etype utility functions
Rename krb5int_count_etypes and krb5int_copy_etypes to have k5_
prefixes, and make them available outside of libkrb5 (but not part of
the public API). Add k5_etypes_contains to search an etype list, and
use it in krb5_is_permitted_enctype.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/k5-int.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 539c8831ac..643af18033 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -2579,6 +2579,12 @@ krb5_error_code krb5int_parse_enctype_list(krb5_context context, krb5_enctype *default_list, krb5_enctype **result); +/* Utility functions for zero-terminated enctype lists. */ +size_t k5_count_etypes(const krb5_enctype *list); +krb5_error_code k5_copy_etypes(const krb5_enctype *old_list, + krb5_enctype **new_list); +krb5_boolean k5_etypes_contains(const krb5_enctype *list, krb5_enctype etype); + #ifdef DEBUG_ERROR_LOCATIONS #define krb5_set_error_message(ctx, code, ...) \ krb5_set_error_message_fl(ctx, code, __FILE__, __LINE__, __VA_ARGS__) |
