nss/enums.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef CONEXUSNSSENUMS_H
00020 #define CONEXUSNSSENUMS_H
00021
00022 #include <ssl.h>
00023
00024 namespace Conexus {
00025 namespace NSS {
00026
00027 typedef enum EXPORT_POLICY
00028 {
00029 EXPORT_NONE,
00030 US_DOMESTIC,
00031 US_EXPORTABLE,
00032 FRANCE,
00033 } EXPORT_POLICY;
00034
00035 typedef enum POLICY
00036 {
00037 ALLOWED = SSL_ALLOWED,
00038 RESTRICTED = SSL_RESTRICTED,
00039 NOT_ALLOWED = SSL_NOT_ALLOWED,
00040 } POLICY;
00041
00042 typedef enum CERT_USAGE
00043 {
00044 USAGE_SSL_CLIENT = certUsageSSLClient,
00045 USAGE_SSL_SERVER = certUsageSSLServer,
00046 USAGE_SSL_SERVER_WITH_STEP_UP = certUsageSSLServerWithStepUp,
00047 USAGE_SSLCA = certUsageSSLCA,
00048 USAGE_EMAIL_SIGNER = certUsageEmailSigner,
00049 USAGE_EMAIL_RECIPIENT = certUsageEmailRecipient,
00050 USAGE_OBJECT_SIGNER = certUsageObjectSigner,
00051 USAGE_USER_CERT_IMPORT = certUsageUserCertImport,
00052 USAGE_VERIFY_CA = certUsageVerifyCA,
00053 USAGE_PROTECTED_OBJECT_SIGNER = certUsageProtectedObjectSigner,
00054 } CERT_USAGE;
00055
00056 typedef enum CERT_VALIDITY {
00057 VALID = secCertTimeValid,
00058 EXPIRED = secCertTimeExpired,
00059 NOT_VALID_YET = secCertTimeNotValidYet,
00060 } CERT_VALIDITY;
00061
00062 typedef enum NICKNAMES {
00063 NICKNAMES_ALL = SEC_CERT_NICKNAMES_ALL,
00064 NICKNAMES_USER = SEC_CERT_NICKNAMES_USER,
00065 NICKNAMES_SERVER = SEC_CERT_NICKNAMES_SERVER,
00066 NICKNAMES_CA = SEC_CERT_NICKNAMES_CA,
00067 } NICKNAMES;
00068
00069 typedef enum KEA {
00070 KEA_NONE = kt_null,
00071 RSA = kt_rsa,
00072 DH = kt_dh,
00073 FORTEZZA = kt_fortezza,
00074 KEA_SIZE = kt_kea_size,
00075 } KEA;
00076
00077 typedef enum SECURITY_STATUS {
00078 STATUS_OFF = 0,
00079 STATUS_ON_HIGH = 1,
00080 STATUS_ON_LOW = 2,
00081 } SECURITY_STATUS;
00082
00083 }
00084 }
00085
00086 #endif
00087