Files

35 lines
786 B
C++
Raw Permalink Normal View History

2025-08-06 12:10:18 -04:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
2017-04-04 06:47:01 -07:00
*
2025-08-06 12:10:18 -04:00
* (c) ZeroTier, Inc.
* https://www.zerotier.com/
2017-04-04 06:47:01 -07:00
*/
#ifndef ZT_CREDENTIAL_HPP
#define ZT_CREDENTIAL_HPP
namespace ZeroTier {
/**
* Base class for credentials
*/
2024-09-26 08:52:29 -04:00
class Credential {
public:
2025-07-03 12:02:18 -04:00
/**
* Do not change type code IDs -- these are used in Revocation objects and elsewhere
*/
enum Type {
CREDENTIAL_TYPE_NULL = 0,
CREDENTIAL_TYPE_COM = 1, // CertificateOfMembership
CREDENTIAL_TYPE_CAPABILITY = 2,
CREDENTIAL_TYPE_TAG = 3,
CREDENTIAL_TYPE_COO = 4, // CertificateOfOwnership
CREDENTIAL_TYPE_REVOCATION = 6
};
2017-04-04 06:47:01 -07:00
};
2025-07-03 12:02:18 -04:00
} // namespace ZeroTier
2017-04-04 06:47:01 -07:00
#endif