OpenDNSSEC-signer 1.2.1
|
00001 /* 00002 * $Id$ 00003 * 00004 * Copyright (c) 2006-2010 NLNet Labs. All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 2. Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in the 00013 * documentation and/or other materials provided with the distribution. 00014 * 00015 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 00016 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00017 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00018 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 00019 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00020 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 00021 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00022 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00023 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00024 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 00025 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 * 00027 */ 00028 00034 #ifndef SIGNER_BACKUP_H 00035 #define SIGNER_BACKUP_H 00036 00037 #include "config.h" 00038 #include "util/duration.h" 00039 #include "util/file.h" 00040 00041 00042 /* 00043 * $Id: tools.c 3817 2010-08-27 08:43:00Z matthijs $ 00044 * 00045 * Copyright (c) 2006-2010 NLNet Labs. All rights reserved. 00046 * 00047 * Redistribution and use in source and binary forms, with or without 00048 * modification, are permitted provided that the following conditions 00049 * are met: 00050 * 1. Redistributions of source code must retain the above copyright 00051 * notice, this list of conditions and the following disclaimer. 00052 * 2. Redistributions in binary form must reproduce the above copyright 00053 * notice, this list of conditions and the following disclaimer in the 00054 * documentation and/or other materials provided with the distribution. 00055 * 00056 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 00057 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00058 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00059 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 00060 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00061 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 00062 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00063 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00064 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00065 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 00066 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00067 * 00068 */ 00069 00075 #include "config.h" 00076 #include "util/duration.h" 00077 #include "util/file.h" 00078 00079 #include <ldns/ldns.h> 00080 00087 char* backup_read_token(FILE* in); 00088 00096 int backup_read_check_str(FILE* in, const char* str); 00097 00105 int backup_read_str(FILE* in, const char** str); 00106 00114 int backup_read_time_t(FILE* in, time_t* v); 00115 00123 int backup_read_duration(FILE* in, duration_type** v); 00124 00132 int backup_read_rr_type(FILE* in, ldns_rr_type* v); 00133 00141 int backup_read_int(FILE* in, int* v); 00142 00150 int backup_read_size_t(FILE* in, size_t* v); 00151 00159 int backup_read_uint8_t(FILE* in, uint8_t* v); 00160 00168 int backup_read_uint16_t(FILE* in, uint16_t* v); 00169 00177 int backup_read_uint32_t(FILE* in, uint32_t* v); 00178 00179 #endif /* SIGNER_BACKUP_H */