view src/auth/auth-stream.h @ 5005:7a8f68b0cc31 HEAD

extra_fields == NULL and empty extra_fields (reset after each passdb lookup) should be treated the same. Fixes some assert crashes.
author Timo Sirainen <tss@iki.fi>
date Tue, 16 Jan 2007 15:18:23 +0200
parents 0bcee5d7da39
children e4eb71ae8e96
line wrap: on
line source

#ifndef __AUTH_STREAM_H
#define __AUTH_STREAM_H

struct auth_request;

struct auth_stream_reply *auth_stream_reply_init(struct auth_request *request);
void auth_stream_reply_add(struct auth_stream_reply *reply,
			   const char *key, const char *value);
void auth_stream_reply_reset(struct auth_stream_reply *reply);

void auth_stream_reply_import(struct auth_stream_reply *reply, const char *str);
const char *auth_stream_reply_export(struct auth_stream_reply *reply);
bool auth_stream_is_empty(struct auth_stream_reply *reply);

#endif