components/krb5/Solaris/missing_interfaces.c
changeset 5490 9bf0bc57423a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/krb5/Solaris/missing_interfaces.c	Wed Feb 24 10:43:57 2016 -0600
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * missing_interfaces.c:
+ *
+ * Following two interfaces are to provide runtime dependencies for kerberos
+ * related components staying in ON.
+ *
+ */
+#include <krb5/krb5.h>
+#include <profile.h>
+
+/* avoid including krb5-int.h, it defines functions and introduces deps */
+extern void k5_des_fixup_key_parity(unsigned char *keybits);
+extern krb5_error_code k5_os_init_context(krb5_context context,
+                                          profile_t profile, krb5_flags flags);
+typedef unsigned char mit_des_cblock[8];
+
+void
+mit_des_fixup_key_parity(mit_des_cblock key)
+{
+    k5_des_fixup_key_parity(key);
+}
+
+krb5_error_code
+krb5_os_init_context(krb5_context ctx, krb5_boolean kdc)
+{
+    return k5_os_init_context(ctx, NULL, kdc? 0x2 : 0x0);
+}