2N/A * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A/* Generic SASL plugin utility functions 2N/A * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved. 2N/A * Redistribution and use in source and binary forms, with or without 2N/A * modification, are permitted provided that the following conditions 2N/A * 1. Redistributions of source code must retain the above copyright 2N/A * notice, this list of conditions and the following disclaimer. 2N/A * 2. Redistributions in binary form must reproduce the above copyright 2N/A * notice, this list of conditions and the following disclaimer in 2N/A * the documentation and/or other materials provided with the 2N/A * 3. The name "Carnegie Mellon University" must not be used to 2N/A * endorse or promote products derived from this software without 2N/A * prior written permission. For permission or any other legal 2N/A * details, please contact 2N/A * Office of Technology Transfer 2N/A * Carnegie Mellon University 2N/A * 5000 Forbes Avenue 2N/A * Pittsburgh, PA 15213-3890 2N/A * (412) 268-4387, fax: (412) 268-7395 2N/A * tech-transfer@andrew.cmu.edu 2N/A * 4. Redistributions of any form whatsoever must retain the following 2N/A * "This product includes software developed by Computing Services 2N/A * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO 2N/A * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 2N/A * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE 2N/A * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 2N/A * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 2N/A * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 2N/A * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 2N/A#
endif /* macintosh */ 2N/A/* translate IPv4 mapped IPv6 address to IPv4 address */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A/* LINTED pointer alignment */ 2N/A/* LINTED pointer alignment */ 2N/A/* LINTED pointer alignment */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A /* This an rfc 2732 ipv6 address */ 2N/A for (j = 0; p[j] !=
'\0'; j++)
2N/A /* Parse the address */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A/* Basically a conditional call to realloc(), if we need more */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A * Trys to find the prompt with the lookingfor id in the prompt list 2N/A * Returns it if found. NULL otherwise 2N/A * Retrieve the simple string given by the callback id. 2N/A /* see if we were given the result in the prompt */ 2N/A /* We prompted, and got.*/ 2N/A /* Try to get the callback... */ 2N/A * Retrieve the user password. 2N/A /* see if we were given the password in the prompt */ 2N/A /* We prompted, and got.*/ 2N/A /* copy what we got into a secret_t */ 2N/A /* Try to get the callback... */ 2N/A * Retrieve the string given by the challenge prompt id. 2N/A /* see if we were given the password in the prompt */ 2N/A /* We prompted, and got.*/ 2N/A /* Try to get the callback... */ 2N/A * Retrieve the client realm. 2N/A /* see if we were given the result in the prompt */ 2N/A /* We prompted, and got.*/ 2N/A /* Try to get the callback... */ 2N/A * Make the requested prompts. (prompt==NULL means we don't want it) 2N/A#
endif /* _INTEGRATED_SOLARIS_ */ 2N/A#
endif /* _INTEGRATED_SOLARIS_ */ 2N/A#
endif /* _INTEGRATED_SOLARIS_ */ 2N/A#
endif /* _INTEGRATED_SOLARIS_ */ 2N/A /* add the ending one */ 2N/A * Decode and concatenate multiple packets using the given function 2N/A * to decode each packet. 2N/A /* no need to free tmp */ 2N/A if (
tmp!=
NULL)
/* if received 2 packets merge them together */ 2N/A /* Protect stupid clients */ 2N/A/* returns the realm we should pretend to be in */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A /* hmmm, the user didn't specify a realm */ 2N/A /* Default to serverFQDN */ 2N/A#
endif /* _SUN_SDK_ */ 2N/A /* skip over leading whitespace and commas */ 2N/A /* Find the end of the language tag */ 2N/A * local_to_utf converts a string in the current codeset to utf-8. 2N/A * If no codeset is specified, then codeset 646 will be used. 2N/A * Upon successful completion, this function will return a non-NULL buffer 2N/A * that is allocated by local_to_utf. 2N/A * If utils is NULL, local_to_utf will use the standard memory allocation 2N/A * functions, otherwise the memory functions defined in sasl_utils_t will 2N/A * local_to_utf will return NULL in the case of any error 2N/A#
endif /* _INTEGRATED_SOLARIS_ */