conexus logo

nss/enums.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the conexus library.                             *
00006  *                                                                         *
00007  *   The conexus library is free software; you can redistribute it and/or  *
00008  *   modify it under the terms of the GNU General Public License           *
00009  *   version 3 as published by the Free Software Foundation.               *
00010  *                                                                         *
00011  *   The conexus library is distributed in the hope that it will be        *
00012  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty   *
00013  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00014  *   General Public License for more details.                              *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this software. If not see <http://www.gnu.org/licenses/>.  *
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 

Generated on Wed Jul 8 15:50:07 2009 for conexus by doxygen 1.5.8