[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/external
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/external |
Date: |
Sat, 18 Sep 2004 18:21:59 +0200 |
Update of /home/cvs/gsasl/lib/external
In directory dopio:/tmp/cvs-serv31150/lib/external
Modified Files:
Makefile.am
Added Files:
client.c server.c
Removed Files:
external.c
Log Message:
Make EXTERNAL use new callback API.
Cleanup.
--- /home/cvs/gsasl/lib/external/Makefile.am 2004/04/16 11:16:39 1.4
+++ /home/cvs/gsasl/lib/external/Makefile.am 2004/09/18 16:21:59 1.5
@@ -21,4 +21,12 @@
AM_CPPFLAGS = -I$(srcdir)/../src -I$(builddir)/../src
noinst_LTLIBRARIES = libgsasl-external.la
-libgsasl_external_la_SOURCES = external.h external.c
+libgsasl_external_la_SOURCES = external.h
+
+if CLIENT
+libgsasl_external_la_SOURCES += client.c
+endif
+
+if SERVER
+libgsasl_external_la_SOURCES += server.c
+endif
--- /home/cvs/gsasl/lib/external/client.c 2004/09/18 16:21:59 NONE
+++ /home/cvs/gsasl/lib/external/client.c 2004/09/18 16:21:59 1.1
/* client.c --- EXTERNAL mechanism as defined in RFC 2222, client side.
* Copyright (C) 2002, 2003, 2004 Simon Josefsson
*
* This file is part of GNU SASL Library.
*
* GNU SASL Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* GNU SASL Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GNU SASL Library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
*/
#include "external.h"
int
_gsasl_external_client_start (Gsasl_session_ctx * sctx, void **mech_data)
{
*mech_data = NULL;
return GSASL_OK;
}
int
_gsasl_external_client_step (Gsasl_session_ctx * sctx,
void *mech_data,
const char *input, size_t input_len,
char **output, size_t * output_len)
{
*output = NULL;
*output_len = 0;
return GSASL_OK;
}
--- /home/cvs/gsasl/lib/external/server.c 2004/09/18 16:21:59 NONE
+++ /home/cvs/gsasl/lib/external/server.c 2004/09/18 16:21:59 1.1
/* server.c --- EXTERNAL mechanism as defined in RFC 2222, server side.
* Copyright (C) 2002, 2003, 2004 Simon Josefsson
*
* This file is part of GNU SASL Library.
*
* GNU SASL Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* GNU SASL Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GNU SASL Library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
*/
#include "external.h"
int
_gsasl_external_server_start (Gsasl_session_ctx * sctx, void **mech_data)
{
return GSASL_OK;
}
int
_gsasl_external_server_step (Gsasl_session_ctx * sctx,
void *mech_data,
const char *input, size_t input_len,
char **output, size_t * output_len)
{
*output = NULL;
*output_len = 0;
return gsasl_callback (sctx, GSASL_SERVER_EXTERNAL);
}
- CVS gsasl/lib/external, gsasl-commit, 2004/09/17
- CVS gsasl/lib/external, gsasl-commit, 2004/09/17
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external,
gsasl-commit <=
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/24