5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * Copyright 1997 by the Massachusetts Institute of Technology.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * All Rights Reserved.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * Export of this software from the United States of America may
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * require a specific license from the United States Government.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * It is the responsibility of any person or organization contemplating
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * export to obtain such a license before exporting.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * distribute this software and its documentation for any purpose and
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * without fee is hereby granted, provided that the above copyright
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * notice appear in all copies and that both that copyright notice and
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * this permission notice appear in supporting documentation, and that
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * the name of M.I.T. not be used in advertising or publicity pertaining
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * to distribution of the software without specific, written prior
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * permission. Furthermore if you modify this software you must label
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * your software as modified software and not distribute it in such a
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * fashion that it might be confused with the original M.I.T. software.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * M.I.T. makes no representations about the suitability of
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * this software for any purpose. It is provided "as is" without express
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * or implied warranty.
5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry /* Solaris Kerberos: spruce-up the err msg */
5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry krb5_principal princ = (krb5_principal) input_name;
5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry int kret = krb5_unparse_name(context, princ, &s_name);
5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry "Input name principal '%s' is invalid (kg_validate_name()) for export_name",
5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry return(GSS_S_CALL_BAD_STRUCTURE|GSS_S_BAD_NAME);
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb if ((code = krb5_unparse_name(context, (krb5_principal) input_name,
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb exported_name->length = 10 + length + gss_mech_krb5->length;
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb /* Note: we assume the OID will be less than 128 bytes... */