aboutsummaryrefslogtreecommitdiffstats
path: root/src/coap/qcoapclient.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-05-22 16:10:39 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-05-22 16:10:39 +0200
commit430a041c2ce117282a5ef660b65d0a81f61c00b7 (patch)
treeeb030b29d0b1017e671f1633fbcd5a9c4b8d5a9f /src/coap/qcoapclient.h
parentd2744ade327fe6b63bb80d6acd9c1cd7ae6e317f (diff)
Add a method for setting the minimum token size
For security reasons it is recommended to use tokens with a length of at least 4 bytes. Added a method for setting the minimum token size and changed it to be 4 by default. Change-Id: Ib589b338df8e59ccaf24dceab6691f92d92f861c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/coap/qcoapclient.h')
-rw-r--r--src/coap/qcoapclient.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/coap/qcoapclient.h b/src/coap/qcoapclient.h
index 31bf9f2..c273aa1 100644
--- a/src/coap/qcoapclient.h
+++ b/src/coap/qcoapclient.h
@@ -88,6 +88,7 @@ public:
void setAckTimeout(uint ackTimeout);
void setAckRandomFactor(double ackRandomFactor);
void setMaximumRetransmitCount(uint maximumRetransmitCount);
+ void setMinumumTokenSize(int tokenSize);
Q_SIGNALS:
void finished(QCoapReply *reply);