Skip to content

Commit

Permalink
fix Remi's comments and some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chbruyand committed Oct 10, 2024
1 parent eb87483 commit 688b194
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pdns/dnsdistdist/docs/reference/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ DOHFrontend

.. method:: DOHFrontend:loadTicketsKey(key)

Replace the current TLS tickets key with a given one.
Load a new TLS tickets key.

:param str key: the new raw TLS tickets key to load.

Expand Down Expand Up @@ -2548,7 +2548,7 @@ TLSFrontend

.. method:: TLSFrontend:loadTicketsKey(key)

Replace the current TLS tickets key with a given one.
Load a new TLS tickets key.

:param str key: the new raw TLS tickets key to load.

Expand Down
3 changes: 0 additions & 3 deletions pdns/tcpiohandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1038,9 +1038,6 @@ class GnuTLSTicketsKey

}
catch (const std::exception& e) {
safe_memory_release(d_key.data, d_key.size);
gnutls_free(d_key.data);
d_key.data = nullptr;
safe_memory_release(d_key.data, d_key.size);
gnutls_free(d_key.data);
d_key.data = nullptr;
Expand Down
2 changes: 0 additions & 2 deletions regression-tests.dnsdist/test_TLS.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ def testSetTicketsKey(self):
"""

newKey = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(80))
print("about to send command: `{}`".format("getTLSFrontend(0):setTicketsKey(\"{}\")".format(newKey)))
self.sendConsoleCommand("getTLSFrontend(0):loadTicketsKey(\"{}\")".format(newKey))
keyLen = self.sendConsoleCommand('lastKeyLen')
self.assertEqual(int(keyLen), 80)
Expand Down Expand Up @@ -597,7 +596,6 @@ def testSetTicketsKey(self):
"""

newKey = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(64))
print("about to send command: `{}`".format("getTLSFrontend(0):setTicketsKey(\"{}\")".format(newKey)))
self.sendConsoleCommand("getTLSFrontend(0):loadTicketsKey(\"{}\")".format(newKey))
keyLen = self.sendConsoleCommand('lastKeyLen')
self.assertEqual(int(keyLen), 64)
Expand Down

0 comments on commit 688b194

Please sign in to comment.