components/krb5/Solaris/missing_interfaces.c
changeset 5490 9bf0bc57423a
equal deleted inserted replaced
5489:a5031bb8b66d 5490:9bf0bc57423a
       
     1 /*
       
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
     3  */
       
     4 
       
     5 /*
       
     6  * missing_interfaces.c:
       
     7  *
       
     8  * Following two interfaces are to provide runtime dependencies for kerberos
       
     9  * related components staying in ON.
       
    10  *
       
    11  */
       
    12 #include <krb5/krb5.h>
       
    13 #include <profile.h>
       
    14 
       
    15 /* avoid including krb5-int.h, it defines functions and introduces deps */
       
    16 extern void k5_des_fixup_key_parity(unsigned char *keybits);
       
    17 extern krb5_error_code k5_os_init_context(krb5_context context,
       
    18                                           profile_t profile, krb5_flags flags);
       
    19 typedef unsigned char mit_des_cblock[8];
       
    20 
       
    21 void
       
    22 mit_des_fixup_key_parity(mit_des_cblock key)
       
    23 {
       
    24     k5_des_fixup_key_parity(key);
       
    25 }
       
    26 
       
    27 krb5_error_code
       
    28 krb5_os_init_context(krb5_context ctx, krb5_boolean kdc)
       
    29 {
       
    30     return k5_os_init_context(ctx, NULL, kdc? 0x2 : 0x0);
       
    31 }