aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/ticket_status.h
blob: 532d4de56e42bb941a11faaf9c89b5f2f9e8561d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <util/generic/strbuf.h>

namespace NTvmAuth {
    /*!
     * Status mean result of ticket check
     */
    enum class ETicketStatus {
        Ok,
        Expired,
        InvalidBlackboxEnv,
        InvalidDst,
        InvalidTicketType,
        Malformed,
        MissingKey,
        SignBroken,
        UnsupportedVersion,
        NoRoles,
    };

    TStringBuf StatusToString(ETicketStatus st);
}