ipseckey_45.c revision a7e3a86619688bc91d8c90f31c4625bf6686234a
/*
* Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
*
* 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.5 2009/01/17 13:42:39 fdupont 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);
/*
* Precedence.
*/
/*
* 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 */