components/krb5/Solaris/missing_interfaces.c
author Tomas Kuthan <tomas.kuthan@oracle.com>
Fri, 04 Nov 2016 09:14:49 -0700
changeset 7246 b3414fa83399
parent 5490 9bf0bc57423a
permissions -rw-r--r--
18794793 MIT 1.8.3 resync removed pw history when using LDAP as a backend

/*
 * 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);
}