- : 1.0.1: ldns-tam
+ : 1.0.1: ldns-team
* added include/ and lib/ dirs so that you can compile against ldns
without installing ldns on your system
+ Drill:
+ * -r was killed in favor of -o <header bit mnemonic> which
+ allows for a header bits setting (and maybe more in the
+ future)
18 Oct 2005: 1.0.0: ldns-team
* Commited a patch from HÃ¥kan Olsson
/* default time before sigs expire */
#define LDNS_DEFAULT_EXP_TIME 1209600
-#if 0
-/**
- * algorigthms used in dns
- */
-enum ldns_enum_algorithm
-{
- LDNS_RSAMD5 = 1,
- LDNS_DH = 2,
- LDNS_DSA = 3,
- LDNS_ECC = 4,
- LDNS_RSASHA1 = 5,
- LDNS_INDIRECT = 252,
- LDNS_PRIVATEDNS = 253,
- LDNS_PRIVATEOID = 254
-};
-typedef enum ldns_enum_algorithm ldns_algorithm;
-#endif
-
/**
* calculates a keytag of a key for use in DNSSEC.
*
*/
RSA *ldns_key_buf2rsa(ldns_buffer *key);
-/* TODO
- * Packet is still given (and used, but could be constructed from wire)
- * remove that?
- */
-
/**
* returns a new DS rr that represents the given key rr.
*
*/
ldns_zone *ldns_zone_sign(ldns_zone *zone, ldns_key_list *key_list);
+/**
+ * Initialize the random function. This calls OpenSSL
+ * \param[in] ????
+ * TODO
+ */
ldns_status ldns_init_random(FILE *fd, uint16_t bytes);
#endif /* _LDNS_DNSSEC_H_ */
ldns_rr * ldns_pkt_set_rr(ldns_pkt *p, ldns_rr *rr, uint16_t n);
bool ldns_pkt_insert_rr(ldns_pkt *p, ldns_rr *rr, uint16_t n);
-
-
#define LDNS_MAX_PACKETLEN 65535
/* allow flags to be given to mk_query */
-#define LDNS_QR 1
-#define LDNS_AA 2
-#define LDNS_TC 4
-#define LDNS_RD 8
-#define LDNS_CD 16
-#define LDNS_RA 32
-#define LDNS_AD 64
+#define LDNS_QR 1 /* QueRy - query flag */
+#define LDNS_AA 2 /* Authoritative Answer - server flag */
+#define LDNS_TC 4 /* TrunCated - server flag */
+#define LDNS_RD 8 /* Recursion Desired - query flag */
+#define LDNS_CD 16 /* Checking Disabled - query flag */
+#define LDNS_RA 32 /* Recursion Available - server flag */
+#define LDNS_AD 64 /* Authenticated Data - server flag */
#endif /* !_LDNS_PACKET_H */