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
11

SYNOPSIS

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

DESCRIPTION

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
46              k: the key
47              r: the rsa data
48
49       ldns_key_set_dsa_key() Set the key's dsa data
50              k: the key
51              d: the dsa data
52
53       ldns_key_set_hmac_key() Set the key's hmac data
54              k: the key
55              hmac: the raw key data
56
57       ldns_key_set_origttl() Set the key's original ttl
58              k: the key
59              t: the ttl
60
61       ldns_key_set_inception() Set the key's inception  date  (seconds  after
62              epoch)
63              k: the key
64              i: the inception
65
66       ldns_key_set_expiration()  Set the key's expiration date (seconds after
67              epoch)
68              k: the key
69              e: the expiration
70
71       ldns_key_set_pubkey_owner() Set the key's pubkey owner
72              k: the key
73              r: the owner
74
75       ldns_key_set_keytag() Set the key's key tag
76              k: the key
77              tag: the keytag
78
79       ldns_key_set_flags() Set the key's flags
80              k: the key
81              flags: the flags
82
83       ldns_key_list_set_key_count() Set the keylist's key count to count
84              key: the key
85              count: the cuont
86

AUTHOR

88       The ldns team at NLnet Labs. Which consists out  of  Jelte  Jansen  and
89       Miek Gieben.
90
91

REPORTING BUGS

93       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our bugzilla at
94       http://www.nlnetlabs.nl/bugs/index.html
95
96
98       Copyright (c) 2004 - 2006 NLnet Labs.
99
100       Licensed under the BSD License. There is NO warranty; not even for MER‐
101       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
102
103

SEE ALSO

105       ldns_key.   And  perldoc  Net::DNS,  RFC1034, RFC1035, RFC4033, RFC4034
106       and RFC4035.
107

REMARKS

109       This manpage was automaticly generated from the ldns source code by use
110       of Doxygen and some perl.
111
112
113
114                                  30 May 2006                          ldns(3)
Impressum