anonymous.c   anonymous.c 
/* Anonymous SASL plugin /* Anonymous SASL plugin
* Rob Siemborski * Rob Siemborski
* Tim Martin * Tim Martin
* $Id: anonymous.c,v 1.51 2004/09/08 11:10:52 mel Exp $ * $Id: anonymous.c,v 1.53 2009/02/13 14:46:47 mel Exp $
*/ */
/* /*
* Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved . * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved .
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* *
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
skipping to change at line 63 skipping to change at line 63
#include <saslplug.h> #include <saslplug.h>
#include "plugin_common.h" #include "plugin_common.h"
#ifdef macintosh #ifdef macintosh
#include <sasl_anonymous_plugin_decl.h> #include <sasl_anonymous_plugin_decl.h>
#endif #endif
/***************************** Common Section *************************** **/ /***************************** Common Section *************************** **/
static const char plugin_id[] = "$Id: anonymous.c,v 1.51 2004/09/08 11:10:5 2 mel Exp $"; static const char plugin_id[] = "$Id: anonymous.c,v 1.53 2009/02/13 14:46:4 7 mel Exp $";
static const char anonymous_id[] = "anonymous"; static const char anonymous_id[] = "anonymous";
/***************************** Server Section *************************** **/ /***************************** Server Section *************************** **/
static int static int
anonymous_server_mech_new(void *glob_context __attribute__((unused)), anonymous_server_mech_new(void *glob_context __attribute__((unused)),
sasl_server_params_t *sparams, sasl_server_params_t *sparams,
const char *challenge __attribute__((unused)), const char *challenge __attribute__((unused)),
unsigned challen __attribute__((unused)), unsigned challen __attribute__((unused)),
skipping to change at line 160 skipping to change at line 160
return SASL_OK; return SASL_OK;
} }
static sasl_server_plug_t anonymous_server_plugins[] = static sasl_server_plug_t anonymous_server_plugins[] =
{ {
{ {
"ANONYMOUS", /* mech_name */ "ANONYMOUS", /* mech_name */
0, /* max_ssf */ 0, /* max_ssf */
SASL_SEC_NOPLAINTEXT, /* security_flags */ SASL_SEC_NOPLAINTEXT, /* security_flags */
SASL_FEAT_WANT_CLIENT_FIRST, /* features */ SASL_FEAT_WANT_CLIENT_FIRST
| SASL_FEAT_DONTUSE_USERPASSWD, /* features */
NULL, /* glob_context */ NULL, /* glob_context */
&anonymous_server_mech_new, /* mech_new */ &anonymous_server_mech_new, /* mech_new */
&anonymous_server_mech_step, /* mech_step */ &anonymous_server_mech_step, /* mech_step */
NULL, /* mech_dispose */ NULL, /* mech_dispose */
NULL, /* mech_free */ NULL, /* mech_free */
NULL, /* setpass */ NULL, /* setpass */
NULL, /* user_query */ NULL, /* user_query */
NULL, /* idle */ NULL, /* idle */
NULL, /* mech_avail */ NULL, /* mech_avail */
NULL /* spare */ NULL /* spare */
skipping to change at line 350 skipping to change at line 351
{ {
client_context_t *text = (client_context_t *) conn_context; client_context_t *text = (client_context_t *) conn_context;
if(!text) return; if(!text) return;
if (text->out_buf) utils->free(text->out_buf); if (text->out_buf) utils->free(text->out_buf);
utils->free(text); utils->free(text);
} }
static const long anonymous_required_prompts[] = { static const unsigned long anonymous_required_prompts[] = {
SASL_CB_LIST_END SASL_CB_LIST_END
}; };
static sasl_client_plug_t anonymous_client_plugins[] = static sasl_client_plug_t anonymous_client_plugins[] =
{ {
{ {
"ANONYMOUS", /* mech_name */ "ANONYMOUS", /* mech_name */
0, /* max_ssf */ 0, /* max_ssf */
SASL_SEC_NOPLAINTEXT, /* security_flags */ SASL_SEC_NOPLAINTEXT, /* security_flags */
SASL_FEAT_WANT_CLIENT_FIRST, /* features */ SASL_FEAT_WANT_CLIENT_FIRST, /* features */
 End of changes. 4 change blocks. 
4 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/