1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_key_list_key_count, ldns_key_list_key, ldns_key_rsa_key,
7 ldns_key_dsa_key, ldns_key_algorithm, ldns_key_hmac_key,
8 ldns_key_origttl, ldns_key_inception, ldns_key_expiration,
9 ldns_key_keytag, ldns_key_pubkey_owner, ldns_key_flags - read ldns_keys
10
11
13 #include <stdint.h>
14 #include <stdbool.h>
15
16 #include <ldns/ldns.h>
17
18 size_t ldns_key_list_key_count(const ldns_key_list *key_list);
19
20 ldns_key* ldns_key_list_key(const ldns_key_list *key, size_t nr);
21
22 RSA* ldns_key_rsa_key(const ldns_key *k);
23
24 DSA* ldns_key_dsa_key(const ldns_key *k);
25
26 ldns_signing_algorithm ldns_key_algorithm(const ldns_key *k);
27
28 unsigned char* ldns_key_hmac_key(const ldns_key *k);
29
30 uint32_t ldns_key_origttl(const ldns_key *k);
31
32 uint32_t ldns_key_inception(const ldns_key *k);
33
34 uint32_t ldns_key_expiration(const ldns_key *k);
35
36 uint16_t ldns_key_keytag(const ldns_key *k);
37
38 ldns_rdf* ldns_key_pubkey_owner(const ldns_key *k);
39
40 uint16_t ldns_key_flags(const ldns_key *k);
41
43 ldns_key_list_key_count() returns the number of keys in the key list
44 key_list: the key_list
45 Returns the numbers of keys in the list
46
47 ldns_key_list_key() returns a pointer to the key in the list at the
48 given position
49 key: the key
50 nr: the position in the list
51 Returns the key
52
53 ldns_key_rsa_key() returns the (openssl) RSA struct contained in the
54 key
55 k: the key to look in
56 Returns the RSA * structure in the key
57
58 ldns_key_dsa_key() returns the (openssl) DSA struct contained in the
59 key
60
61 ldns_key_algorithm() return the signing alg of the key
62 k: the key
63 Returns the algorithm
64
65 ldns_key_hmac_key() return the hmac key data
66 k: the key
67 Returns the hmac key data
68
69 ldns_key_origttl() return the original ttl of the key
70 k: the key
71 Returns the original ttl
72
73 ldns_key_inception() return the key's inception date
74 k: the key
75 Returns the inception date
76
77 ldns_key_expiration() return the key's expiration date
78 k: the key
79 Returns the experiration date
80
81 ldns_key_keytag() return the keytag
82 k: the key
83 Returns the keytag
84
85 ldns_key_pubkey_owner() return the public key's owner
86 k: the key
87 Returns the owner
88
89 ldns_key_flags() return the flag of the key
90 k: the key
91 Returns the flag
92
94 The ldns team at NLnet Labs.
95
96
98 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
99 http://www.nlnetlabs.nl/bugs/index.html
100
101
103 Copyright (c) 2004 - 2006 NLnet Labs.
104
105 Licensed under the BSD License. There is NO warranty; not even for MER‐
106 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
107
108
110 ldns_key. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
111 and RFC4035.
112
114 This manpage was automatically generated from the ldns source code.
115
116
117
118 30 May 2006 ldns(3)