You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
786 B
34 lines
786 B
/* 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/. |
|
* |
|
* (c) ZeroTier, Inc. |
|
* https://www.zerotier.com/ |
|
*/ |
|
|
|
#ifndef ZT_CREDENTIAL_HPP |
|
#define ZT_CREDENTIAL_HPP |
|
|
|
namespace ZeroTier { |
|
|
|
/** |
|
* Base class for credentials |
|
*/ |
|
class Credential { |
|
public: |
|
/** |
|
* 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 |
|
}; |
|
}; |
|
|
|
} // namespace ZeroTier |
|
|
|
#endif
|
|
|