2
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
2
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
3
3
* Copyright (C) 1999-2001 Internet Software Consortium.
5
* Permission to use, copy, modify, and distribute this software for any
5
* Permission to use, copy, modify, and/or distribute this software for any
6
6
* purpose with or without fee is hereby granted, provided that the above
7
7
* copyright notice and this permission notice appear in all copies.
30
32
dns_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source);
32
34
* Convert the text 'source' refers to into a certificate type.
33
35
* The text may contain either a mnemonic type name or a decimal type number.
36
* 'certp' is a valid pointer.
38
*\li 'certp' is a valid pointer.
38
* 'source' is a valid text region.
40
*\li 'source' is a valid text region.
41
* ISC_R_SUCCESS on success
42
* ISC_R_RANGE numeric type is out of range
43
* DNS_R_UNKNOWN mnemonic type is unknown
43
*\li #ISC_R_SUCCESS on success
44
*\li #ISC_R_RANGE numeric type is out of range
45
*\li #DNS_R_UNKNOWN mnemonic type is unknown
47
49
dns_cert_totext(dns_cert_t cert, isc_buffer_t *target);
49
51
* Put a textual representation of certificate type 'cert' into 'target'.
52
* 'cert' is a valid cert.
54
*\li 'cert' is a valid cert.
54
* 'target' is a valid text buffer.
56
*\li 'target' is a valid text buffer.
57
* If the result is success:
59
*\li If the result is success:
58
60
* The used space in 'target' is updated.
61
* ISC_R_SUCCESS on success
62
* ISC_R_NOSPACE target buffer is too small
63
*\li #ISC_R_SUCCESS on success
64
*\li #ISC_R_NOSPACE target buffer is too small