summaryrefslogtreecommitdiffstats
path: root/src/libknot/tsig-op.h
diff options
context:
space:
mode:
authorLubos Slovak <lubos.slovak@nic.cz>2014-09-24 14:01:34 +0200
committerLubos Slovak <lubos.slovak@nic.cz>2014-09-24 14:01:34 +0200
commit5f1f66cfff0bd0cdf3547c59e6273e4fc87955e2 (patch)
treed16bd19c294a502297147288e3e8206b0bb9141b /src/libknot/tsig-op.h
parentMerge branch 'master' into resolver_compat (diff)
downloadknot-5f1f66cfff0bd0cdf3547c59e6273e4fc87955e2.tar.xz
knot-5f1f66cfff0bd0cdf3547c59e6273e4fc87955e2.zip
public-libs: Prefixed mempattern + visibility
Diffstat (limited to 'src/libknot/tsig-op.h')
-rw-r--r--src/libknot/tsig-op.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libknot/tsig-op.h b/src/libknot/tsig-op.h
index 17bf4dbd6..7c9b74d8a 100644
--- a/src/libknot/tsig-op.h
+++ b/src/libknot/tsig-op.h
@@ -160,14 +160,21 @@ int knot_tsig_client_check_next(const knot_rrset_t *tsig_rr,
const knot_tsig_key_t *key,
uint64_t prev_time_signed);
+/*!
+ * \todo Documentation!
+ */
int knot_tsig_add(uint8_t *msg, size_t *msg_len, size_t msg_max_len,
uint16_t tsig_rcode, const knot_rrset_t *tsig_rr);
-/*! \brief Append TSIG RR to message. */
+/*! \brief Append TSIG RR to message.
+ * \todo Proper documentation.
+ */
int knot_tsig_append(uint8_t *msg, size_t *msg_len, size_t msg_max_len,
const knot_rrset_t *tsig_rr);
-/*! \brief Return true if the TSIG RCODE allows signing the packet. */
+/*! \brief Return true if the TSIG RCODE allows signing the packet.
+ * \todo Proper documentation.
+ */
static inline bool knot_tsig_can_sign(uint16_t tsig_rcode) {
return (tsig_rcode == KNOT_RCODE_NOERROR || tsig_rcode == KNOT_RCODE_BADTIME);
}