security/nss/lib/util/utilmodt.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/util/utilmodt.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef _UTILMODT_H_
     1.9 +#define _UTILMODT_H_ 1
    1.10 +
    1.11 +/*
    1.12 + * these are SECMOD flags that would normally be in secmodt.h, but are needed
    1.13 + * for the parser in util. Fort this reason we preserve the SECMOD names.
    1.14 + */
    1.15 +#define SECMOD_RSA_FLAG 	0x00000001L
    1.16 +#define SECMOD_DSA_FLAG 	0x00000002L
    1.17 +#define SECMOD_RC2_FLAG 	0x00000004L
    1.18 +#define SECMOD_RC4_FLAG 	0x00000008L
    1.19 +#define SECMOD_DES_FLAG 	0x00000010L
    1.20 +#define SECMOD_DH_FLAG	 	0x00000020L
    1.21 +#define SECMOD_FORTEZZA_FLAG	0x00000040L
    1.22 +#define SECMOD_RC5_FLAG		0x00000080L
    1.23 +#define SECMOD_SHA1_FLAG	0x00000100L
    1.24 +#define SECMOD_MD5_FLAG		0x00000200L
    1.25 +#define SECMOD_MD2_FLAG		0x00000400L
    1.26 +#define SECMOD_SSL_FLAG		0x00000800L
    1.27 +#define SECMOD_TLS_FLAG		0x00001000L
    1.28 +#define SECMOD_AES_FLAG 	0x00002000L
    1.29 +#define SECMOD_SHA256_FLAG	0x00004000L     /* also for SHA224 */
    1.30 +#define SECMOD_SHA512_FLAG	0x00008000L	/* also for SHA384 */
    1.31 +#define SECMOD_CAMELLIA_FLAG 	0x00010000L /* = PUBLIC_MECH_CAMELLIA_FLAG */
    1.32 +#define SECMOD_SEED_FLAG	0x00020000L
    1.33 +#define SECMOD_ECC_FLAG		0x00040000L
    1.34 +/* reserved bit for future, do not use */
    1.35 +#define SECMOD_RESERVED_FLAG    0X08000000L
    1.36 +#define SECMOD_FRIENDLY_FLAG	0x10000000L
    1.37 +#define SECMOD_RANDOM_FLAG	0x80000000L
    1.38 +
    1.39 +#define PK11_OWN_PW_DEFAULTS 0x20000000L
    1.40 +#define PK11_DISABLE_FLAG    0x40000000L
    1.41 +
    1.42 +/* need to make SECMOD and PK11 prefixes consistent. */
    1.43 +#define SECMOD_OWN_PW_DEFAULTS PK11_OWN_PW_DEFAULTS
    1.44 +#define SECMOD_DISABLE_FLAG    PK11_DISABLE_FLAG
    1.45 +
    1.46 +#endif /* _UTILMODT_H_ */

mercurial