ipseckey_45.c revision 0bb7c66ef8e3e8740cbac4a4de607060dfc4d6c8
/*
* Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
*
* 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 ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC 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.
*/
/* $Id: ipseckey_45.c,v 1.2 2005/07/07 03:12:56 marka Exp $ */
#ifndef RDATA_GENERIC_IPSECKEY_45_C
#define RDATA_GENERIC_IPSECKEY_45_C
#include <string.h>
#define RRTYPE_IPSECKEY_ATTRIBUTES (0)
static inline isc_result_t
unsigned int gateway;
unsigned char addr6[16];
/*
* Precedence.
*/
ISC_FALSE));
/*
* Gateway type.
*/
ISC_FALSE));
/*
* Algorithm.
*/
ISC_FALSE));
/*
* Gateway.
*/
ISC_FALSE));
switch (gateway) {
case 0:
break;
case 1:
return (ISC_R_NOSPACE);
break;
case 2:
return (ISC_R_NOSPACE);
break;
case 3:
break;
}
/*
* Public key.
*/
}
static inline isc_result_t
char buf[sizeof("255 ")];
unsigned short num;
unsigned short gateway;
return (ISC_R_NOTIMPLEMENTED);
/*
* Precendence.
*/
/*
* Gateway type.
*/
/*
* Algorithm.
*/
/*
* Gateway.
*/
switch (gateway) {
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
break;
}
/*
* Key.
*/
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
return (ISC_R_UNEXPECTEDEND);
case 0:
case 1:
return (ISC_R_UNEXPECTEDEND);
case 2:
return (ISC_R_UNEXPECTEDEND);
case 3:
default:
return (ISC_R_NOTIMPLEMENTED);
}
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
isc_uint32_t n;
return (ISC_R_NOTIMPLEMENTED);
switch (ipseckey->gateway_type) {
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
break;
}
}
static inline isc_result_t
isc_uint32_t n;
return (ISC_R_NOTIMPLEMENTED);
switch (ipseckey->gateway_type) {
case 0:
break;
case 1:
n = uint32_fromregion(®ion);
break;
case 2:
break;
case 3:
break;
}
return (ISC_R_NOMEMORY);
}
} else
return (ISC_R_SUCCESS);
}
static inline void
return;
}
static inline isc_result_t
return (ISC_R_SUCCESS);
}
static inline isc_result_t
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
#endif /* RDATA_GENERIC_IPSECKEY_45_C */