From 285b5662050c6a33513f74489226d0c218e73cab Mon Sep 17 00:00:00 2001 From: Mats Klepsland Date: Tue, 17 Jan 2017 09:53:23 +0100 Subject: [PATCH] doc: add documentation for TlsGetCertSerial Lua function --- doc/userguide/output/lua-output.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/userguide/output/lua-output.rst b/doc/userguide/output/lua-output.rst index 158c0505b0..21e278a5e2 100644 --- a/doc/userguide/output/lua-output.rst +++ b/doc/userguide/output/lua-output.rst @@ -457,6 +457,22 @@ Example: end +TlsGetCertSerial +~~~~~~~~~~~~~~~~ + +Get TLS certificate serial number through TlsGetCertSerial. + +Example: + +:: + + function log (args) + serial = TlsGetCertSerial() + if serial then + -- do something + end + end + SSH ---