From 22f8ae0e3f5d68b92aecccdf96c1d841a0334311 Mon Sep 17 00:00:00 2001
From: qrort <qrort@yandex-team.com>
Date: Wed, 30 Nov 2022 23:47:12 +0300
Subject: validate canons without yatest_common

---
 library/cpp/tvmauth/utils.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 library/cpp/tvmauth/utils.h

(limited to 'library/cpp/tvmauth/utils.h')

diff --git a/library/cpp/tvmauth/utils.h b/library/cpp/tvmauth/utils.h
new file mode 100644
index 0000000000..ad8950cab5
--- /dev/null
+++ b/library/cpp/tvmauth/utils.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <util/generic/strbuf.h>
+
+namespace NTvmAuth::NUtils {
+    /*!
+     * Remove signature from ticket string - rest part can be parsed later with `tvmknife parse_ticket ...`
+     * @param ticketBody Raw ticket body
+     * @return safe for logging part of ticket
+     */
+    TStringBuf RemoveTicketSignature(TStringBuf ticketBody);
+}
-- 
cgit v1.2.3