Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalServiceKit/Security/OWSVerificationState.h
1 views
1
//
2
// Copyright 2017 Signal Messenger, LLC
3
// SPDX-License-Identifier: AGPL-3.0-only
4
//
5
6
#import <Foundation/Foundation.h>
7
8
NS_ASSUME_NONNULL_BEGIN
9
10
typedef NS_CLOSED_ENUM(uint64_t, OWSVerificationState) {
11
/// The user hasn't taken an explicit action on this identity key. It's
12
/// trusted after `defaultUntrustedInterval`.
13
OWSVerificationStateDefault = 0,
14
15
/// The user has explicitly verified this identity key. It's trusted.
16
OWSVerificationStateVerified = 1,
17
18
/// The user has explicitly verified a previous identity key. This one will
19
/// never be trusted based on elapsed time. The user must mark it as
20
/// "verified" or "default acknowledged" to trust it.
21
OWSVerificationStateNoLongerVerified = 2,
22
23
/// The user hasn't verified this identity key, but they've explicitly
24
/// chosen not to, so we don't need to check `defaultUntrustedInterval`.
25
OWSVerificationStateDefaultAcknowledged = 3,
26
};
27
28
NS_ASSUME_NONNULL_END
29
30