lwres_gnba.c revision c05e003dce672b2f8555a3e56857f29ce89c1677
/*
* Copyright (C) 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#include <config.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <lwres/lwbuffer.h>
#include <lwres/lwpacket.h>
#include "context_p.h"
#include "assert_p.h"
int
{
unsigned char *buf;
int ret;
return (-1);
}
pkt->authlength = 0;
if (ret != 0) {
return (ret);
}
/*
* Put the length and the data. We know this will fit because we
* just checked for it.
*/
INSIST(LWRES_BUFFER_AVAILABLECOUNT(b) == 0);
return (0);
}
int
{
unsigned char *buf;
int ret;
int x;
/* naliases */
payload_length = sizeof(isc_uint16_t);
/* real name encoding */
/* each alias */
return (-1);
}
pkt->authlength = 0;
if (ret != 0) {
return (ret);
}
/* encode naliases */
/* encode the real name */
/* encode the aliases */
}
INSIST(LWRES_BUFFER_AVAILABLECOUNT(b) == 0);
return (0);
}
int
{
}
int
{
}
void
{
}
void
{
}