/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
*
* Copyright 1990 by the Massachusetts Institute of Technology.
* 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 M.I.T. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. Furthermore if you modify this software you must label
* your software as modified software and not distribute it in such a
* fashion that it might be confused with the original M.I.T. software.
* M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
*
* krb5_copy_addresses()
*/
#include "k5-int.h"
{
return ENOMEM;
return ENOMEM;
}
return 0;
}
/*
* Copy an address array, with fresh allocation.
*/
{
register unsigned int nelems = 0;
if (!inaddr) {
*outaddr = 0;
return 0;
}
/* one more for a null terminated list */
return ENOMEM;
if (retval) {
return retval;
}
}
return 0;
}
#if 0
/*
* Append an address array, to another address array, with fresh allocation.
* Note that this function may change the value of *outaddr even if it
* returns failure, but it will not change the contents of the list.
*/
krb5_address * const * inaddr;
krb5_address ***outaddr;
{
krb5_address ** tempaddr;
register unsigned int nelems = 0;
register int norigelems = 0;
if (!inaddr)
return 0;
if (!tempaddr)
return ENOMEM;
/* The old storage has been freed. */
if (retval)
goto cleanup;
}
return 0;
while (--nelems >= 0)
/* Try to allocate a smaller amount of memory for *outaddr. */
if (tempaddr)
return retval;
}
#endif