internal.h

Go to the documentation of this file.
00001 /*
00002  ** Copyright 2004-2007 - INL
00003  ** Written by Eric Leblond <regit@inl.fr>
00004  **            Vincent Deffontaines <vincent@inl.fr>
00005  ** INL http://www.inl.fr/
00006  **
00007  ** $Id: internal.h 4935 2008-09-22 13:39:27Z pollux $
00008  **
00009  ** This program is free software; you can redistribute it and/or modify
00010  ** it under the terms of the GNU General Public License as published by
00011  ** the Free Software Foundation, version 3 of the License.
00012  **
00013  ** This program is distributed in the hope that it will be useful,
00014  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  ** GNU General Public License for more details.
00017  **
00018  ** You should have received a copy of the GNU General Public License
00019  ** along with this program; if not, write to the Free Software
00020  ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00021  */
00022 
00023 #define NULL_THREAD 0
00024 
00025 extern char* nu_locale_charset;
00026 
00027 int init_socket(nuauth_session_t * session,
00028                 const char *hostname, const char *service,
00029                 nuclient_error_t *err);
00030 
00031 int tls_handshake(nuauth_session_t * session, nuclient_error_t * err);
00032 
00033 int init_sasl(nuauth_session_t * session, const char *hostname, nuclient_error_t * err);
00034 
00035 int send_os(nuauth_session_t * session, nuclient_error_t * err);
00036 
00037 char *secure_str_copy(const char *orig);
00038 
00039 void ask_session_end(nuauth_session_t * session);
00040 
00049 /*#ifdef USE_GCRYPT_MALLOC_SECURE
00050 #   define secure_str_free(text) gcry_free(text)
00051 #else*/
00052 #   define secure_str_free(text) free(text)
00053 /*#endif*/
00054 
00055 

Generated on Sat Nov 22 04:00:37 2008 for NuFW by  doxygen 1.4.7