1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_key_new_frm_algorithm, ldns_key_new_frm_fp, ldns_key_new_frm_fp_l
7
8
10 #include <stdint.h>
11 #include <stdbool.h>
12
13 #include <ldns/ldns.h>
14
15 ldns_key* ldns_key_new_frm_algorithm(ldns_signing_algorithm a, uint16_t
16 size);
17
18 ldns_status ldns_key_new_frm_fp(ldns_key **k, FILE *fp);
19
20 ldns_status ldns_key_new_frm_fp_l(ldns_key **k, FILE *fp, int
21 *line_nr);
22
24 ldns_key_new_frm_algorithm() Creates a new key based on the algorithm
25
26 a: The algorithm to use
27 size: the number of bytes for the keysize
28 Returns a new ldns_key structure with the key
29
30 ldns_key_new_frm_fp() Creates a new priv key based on the contents of
31 the file pointed by fp.
32
33 The file should be in Private-key-format v1.x.
34
35 k: the new ldns_key structure
36 fp: the file pointer to use
37 Returns an error or LDNS_STATUS_OK
38
39 ldns_key_new_frm_fp_l() Creates a new private key based on the contents
40 of the file pointed by fp
41
42 The file should be in Private-key-format v1.x.
43
44 k: the new ldns_key structure
45 fp: the file pointer to use
46 line_nr: pointer to an integer containing the current line num‐
47 ber (for debugging purposes)
48 Returns an error or LDNS_STATUS_OK
49
51 The ldns team at NLnet Labs. Which consists out of Jelte Jansen and
52 Miek Gieben.
53
54
56 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
57 http://www.nlnetlabs.nl/bugs/index.html
58
59
61 Copyright (c) 2004 - 2006 NLnet Labs.
62
63 Licensed under the BSD License. There is NO warranty; not even for MER‐
64 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
65
66
68 ldns_key. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
69 and RFC4035.
70
72 This manpage was automaticly generated from the ldns source code by use
73 of Doxygen and some perl.
74
75
76
77 30 May 2006 ldns(3)