1*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 2*7c478bd9Sstevel@tonic-gate /* 3*7c478bd9Sstevel@tonic-gate * lib/krb5/os/free_hstrl.c 4*7c478bd9Sstevel@tonic-gate * 5*7c478bd9Sstevel@tonic-gate * Copyright 1990 by the Massachusetts Institute of Technology. 6*7c478bd9Sstevel@tonic-gate * All Rights Reserved. 7*7c478bd9Sstevel@tonic-gate * 8*7c478bd9Sstevel@tonic-gate * Export of this software from the United States of America may 9*7c478bd9Sstevel@tonic-gate * require a specific license from the United States Government. 10*7c478bd9Sstevel@tonic-gate * It is the responsibility of any person or organization contemplating 11*7c478bd9Sstevel@tonic-gate * export to obtain such a license before exporting. 12*7c478bd9Sstevel@tonic-gate * 13*7c478bd9Sstevel@tonic-gate * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 14*7c478bd9Sstevel@tonic-gate * distribute this software and its documentation for any purpose and 15*7c478bd9Sstevel@tonic-gate * without fee is hereby granted, provided that the above copyright 16*7c478bd9Sstevel@tonic-gate * notice appear in all copies and that both that copyright notice and 17*7c478bd9Sstevel@tonic-gate * this permission notice appear in supporting documentation, and that 18*7c478bd9Sstevel@tonic-gate * the name of M.I.T. not be used in advertising or publicity pertaining 19*7c478bd9Sstevel@tonic-gate * to distribution of the software without specific, written prior 20*7c478bd9Sstevel@tonic-gate * permission. Furthermore if you modify this software you must label 21*7c478bd9Sstevel@tonic-gate * your software as modified software and not distribute it in such a 22*7c478bd9Sstevel@tonic-gate * fashion that it might be confused with the original M.I.T. software. 23*7c478bd9Sstevel@tonic-gate * M.I.T. makes no representations about the suitability of 24*7c478bd9Sstevel@tonic-gate * this software for any purpose. It is provided "as is" without express 25*7c478bd9Sstevel@tonic-gate * or implied warranty. 26*7c478bd9Sstevel@tonic-gate * 27*7c478bd9Sstevel@tonic-gate * 28*7c478bd9Sstevel@tonic-gate * krb5_free_host_realm() 29*7c478bd9Sstevel@tonic-gate */ 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate #include "k5-int.h" 32*7c478bd9Sstevel@tonic-gate #include <stdio.h> 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate /* 35*7c478bd9Sstevel@tonic-gate Frees the storage taken by a realm list returned by krb5_get_local_realm. 36*7c478bd9Sstevel@tonic-gate */ 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate KRB5_DLLIMP krb5_error_code KRB5_CALLCONV 39*7c478bd9Sstevel@tonic-gate krb5_free_host_realm(context, realmlist) 40*7c478bd9Sstevel@tonic-gate krb5_context context; 41*7c478bd9Sstevel@tonic-gate char FAR * const FAR *realmlist; 42*7c478bd9Sstevel@tonic-gate { 43*7c478bd9Sstevel@tonic-gate /* same format, so why duplicate code? */ 44*7c478bd9Sstevel@tonic-gate return krb5_free_krbhst(context, realmlist); 45*7c478bd9Sstevel@tonic-gate } 46