summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-int.h9
-rw-r--r--src/include/krb5/krb5.hin8
2 files changed, 16 insertions, 1 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index f05adecf3..cbc810e77 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -2518,6 +2518,15 @@ void KRB5_CALLCONV krb5_realm_iterator_free
void KRB5_CALLCONV krb5_free_realm_string
(krb5_context context, char *str);
+/* Internal principal function used by KIM to avoid code duplication */
+krb5_error_code KRB5_CALLCONV
+krb5int_build_principal_alloc_va(krb5_context context,
+ krb5_principal *princ,
+ unsigned int rlen,
+ const char *realm,
+ const char *first,
+ va_list ap);
+
/* Some data comparison and conversion functions. */
#if 0
static inline int data_cmp(krb5_data d1, krb5_data d2)
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin
index 82e52ab52..62fd90df4 100644
--- a/src/include/krb5/krb5.hin
+++ b/src/include/krb5/krb5.hin
@@ -1599,9 +1599,15 @@ krb5_error_code KRB5_CALLCONV_C krb5_build_principal
__attribute__ ((sentinel))
#endif
;
-krb5_error_code KRB5_CALLCONV krb5_build_principal_va
+#if KRB5_DEPRECATED
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_build_principal_va
(krb5_context,
krb5_principal, unsigned int, const char *, va_list);
+#endif
+
+/* Version of krb5_build_principal_va which allocates krb5_principal_data */
+krb5_error_code KRB5_CALLCONV krb5_build_principal_alloc_va
+ (krb5_context, krb5_principal *, unsigned int, const char *, va_list);
krb5_error_code KRB5_CALLCONV krb5_425_conv_principal
(krb5_context,