1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_key_set_algorithm, ldns_key_set_rsa_key, ldns_key_set_dsa_key,
7 ldns_key_set_hmac_key, ldns_key_set_origttl, ldns_key_set_inception,
8 ldns_key_set_expiration, ldns_key_set_pubkey_owner, ldns_key_set_key‐
9 tag, ldns_key_set_flags, ldns_key_list_set_key_count
10
11
13 #include <stdint.h>
14 #include <stdbool.h>
15
16 #include <ldns/ldns.h>
17
18 void ldns_key_set_algorithm(ldns_key *k, ldns_signing_algorithm l);
19
20 void ldns_key_set_rsa_key(ldns_key *k, RSA *r);
21
22 void ldns_key_set_dsa_key(ldns_key *k, DSA *d);
23
24 void ldns_key_set_hmac_key(ldns_key *k, unsigned char *hmac);
25
26 void ldns_key_set_origttl(ldns_key *k, uint32_t t);
27
28 void ldns_key_set_inception(ldns_key *k, uint32_t i);
29
30 void ldns_key_set_expiration(ldns_key *k, uint32_t e);
31
32 void ldns_key_set_pubkey_owner(ldns_key *k, ldns_rdf *r);
33
34 void ldns_key_set_keytag(ldns_key *k, uint16_t tag);
35
36 void ldns_key_set_flags(ldns_key *k, uint16_t flags);
37
38 void ldns_key_list_set_key_count(ldns_key_list *key, size_t count);
39
41 ldns_key_set_algorithm() Set the key's algorithm
42 k: the key
43 l: the algorithm
44
45 ldns_key_set_rsa_key() Set the key's rsa data. The rsa data should be
46 freed by the user.
47 k: the key
48 r: the rsa data
49
50 ldns_key_set_dsa_key() Set the key's dsa data The dsa data should be
51 freed by the user.
52 k: the key
53 d: the dsa data
54
55 ldns_key_set_hmac_key() Set the key's hmac data
56 k: the key
57 hmac: the raw key data
58
59 ldns_key_set_origttl() Set the key's original ttl
60 k: the key
61 t: the ttl
62
63 ldns_key_set_inception() Set the key's inception date (seconds after
64 epoch)
65 k: the key
66 i: the inception
67
68 ldns_key_set_expiration() Set the key's expiration date (seconds after
69 epoch)
70 k: the key
71 e: the expiration
72
73 ldns_key_set_pubkey_owner() Set the key's pubkey owner
74 k: the key
75 r: the owner
76
77 ldns_key_set_keytag() Set the key's key tag
78 k: the key
79 tag: the keytag
80
81 ldns_key_set_flags() Set the key's flags
82 k: the key
83 flags: the flags
84
85 ldns_key_list_set_key_count() Set the keylist's key count to count
86 key: the key
87 count: the cuont
88
90 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
91 Miek Gieben.
92
93
95 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
96 http://www.nlnetlabs.nl/bugs/index.html
97
98
100 Copyright (c) 2004 - 2006 NLnet Labs.
101
102 Licensed under the BSD License. There is NO warranty; not even for MER‐
103 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
104
105
107 ldns_key. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
108 and RFC4035.
109
111 This manpage was automaticly generated from the ldns source code by use
112 of Doxygen and some perl.
113
114
115
116 30 May 2006 ldns(3)