1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

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       ldns_key_algo_supported - set ldns_key attributes
11
12

SYNOPSIS

14       #include <stdint.h>
15       #include <stdbool.h>
16
17       #include <ldns/ldns.h>
18
19       void ldns_key_set_algorithm(ldns_key *k, ldns_signing_algorithm l);
20
21       void ldns_key_set_rsa_key(ldns_key *k, RSA *r);
22
23       void ldns_key_set_dsa_key(ldns_key *k, DSA *d);
24
25       void ldns_key_set_hmac_key(ldns_key *k, unsigned char *hmac);
26
27       void ldns_key_set_origttl(ldns_key *k, uint32_t t);
28
29       void ldns_key_set_inception(ldns_key *k, uint32_t i);
30
31       void ldns_key_set_expiration(ldns_key *k, uint32_t e);
32
33       void ldns_key_set_pubkey_owner(ldns_key *k, ldns_rdf *r);
34
35       void ldns_key_set_keytag(ldns_key *k, uint16_t tag);
36
37       void ldns_key_set_flags(ldns_key *k, uint16_t flags);
38
39       void ldns_key_list_set_key_count(ldns_key_list *key, size_t count);
40
41       int ldns_key_algo_supported(int algo);
42

DESCRIPTION

44       ldns_key_set_algorithm() Set the key's algorithm
45              k: the key
46              l: the algorithm
47
48       ldns_key_set_rsa_key() Set the key's rsa data.  The rsa data should be
49              freed by the user.
50              k: the key
51              r: the rsa data
52
53       ldns_key_set_dsa_key() Set the key's dsa data The dsa data should be
54              freed by the user.
55              k: the key
56              d: the dsa data
57
58       ldns_key_set_hmac_key() Set the key's hmac data
59              k: the key
60              hmac: the raw key data
61
62       ldns_key_set_origttl() Set the key's original ttl
63              k: the key
64              t: the ttl
65
66       ldns_key_set_inception() Set the key's inception date (seconds after
67              epoch)
68              k: the key
69              i: the inception
70
71       ldns_key_set_expiration() Set the key's expiration date (seconds after
72              epoch)
73              k: the key
74              e: the expiration
75
76       ldns_key_set_pubkey_owner() Set the key's pubkey owner
77              k: the key
78              r: the owner
79
80       ldns_key_set_keytag() Set the key's key tag
81              k: the key
82              tag: the keytag
83
84       ldns_key_set_flags() Set the key's flags
85              k: the key
86              flags: the flags
87
88       ldns_key_list_set_key_count() Set the keylist's key count to count
89              key: the key
90              count: the cuont
91
92       ldns_key_algo_supported() See if a key algorithm is supported
93              algo: the signing algorithm number.
94              Returns s true if supported.
95

AUTHOR

97       The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
98       Miek Gieben.
99
100

REPORTING BUGS

102       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
103       http://www.nlnetlabs.nl/bugs/index.html
104
105
107       Copyright (c) 2004 - 2006 NLnet Labs.
108
109       Licensed under the BSD License. There is NO warranty; not even for MER‐
110       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
111
112

SEE ALSO

114       ldns_key_push_key, ldns_key.  And perldoc Net::DNS, RFC1034, RFC1035,
115       RFC4033, RFC4034  and RFC4035.
116

REMARKS

118       This manpage was automatically generated from the ldns source code by
119       use of Doxygen and some perl.
120
121
122
123                                  30 May 2006                          ldns(3)
Impressum