old_api_glue.c revision 159d09a20817016f09b3ea28d1bdada4a336bb91
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (C) 1998 by the FundsXpress, INC.
*
* All rights reserved.
*
* Export of this software from the United States of America may require
* a specific license from the United States Government. It is the
* responsibility of any person or organization contemplating export to
* obtain such a license before exporting.
*
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright notice and
* this permission notice appear in supporting documentation, and that
* the name of FundsXpress. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. FundsXpress makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "k5-int.h"
/*
* Solaris Kerberos
* krb5_string_to_key/krb5_use_enctype are needed by Samba
*/
{
if (ivec) {
return(ret);
}
/* size is the length of the input cleartext data */
/* The size of the output buffer isn't part of the old api. Not too
safe. So, we assume here that it's big enough. */
&outlen)))
return(ret);
}
{
if (ivec) {
return(ret);
}
/* size is the length of the input ciphertext data */
/* Solaris Kerberos */
/* we don't really know how big this is, but the code tends to assume
that the output buffer size should be the same as the input
buffer size */
}
const krb5_keyblock *key)
{
return(0);
}
{
return(0);
}
{
keyblock));
}
{
}
{
return(0);
}
{
return(ENOMEM);
return(ret);
}
{
return(eblock->crypto_entry);
}
{
return(0);
}
{
return(-1); /* XXX */
return(ret);
}
{
return(-1); /* XXX */
return(ret);
}
{
/* Solaris Kerberos */
/* Solaris Kerberos */
return(ret);
return(KRB5_BAD_MSIZE);
}
return(0);
}
{
/* Solaris Kerberos */
/* Solaris Kerberos */
&valid)))
return(ret);
if (!valid)
return(KRB5KRB_AP_ERR_BAD_INTEGRITY);
return(0);
}
{
}
{
&enclen)))
return(ret);
if (ivec) {
return(ret);
}
return(ENOMEM);
return(ret);
}
{
if (ivec) {
return(ret);
}
return(ENOMEM);
/* Solaris Kerberos */
return(ret);
}