security/nss/lib/util/utilmodt.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef _UTILMODT_H_
michael@0 6 #define _UTILMODT_H_ 1
michael@0 7
michael@0 8 /*
michael@0 9 * these are SECMOD flags that would normally be in secmodt.h, but are needed
michael@0 10 * for the parser in util. Fort this reason we preserve the SECMOD names.
michael@0 11 */
michael@0 12 #define SECMOD_RSA_FLAG 0x00000001L
michael@0 13 #define SECMOD_DSA_FLAG 0x00000002L
michael@0 14 #define SECMOD_RC2_FLAG 0x00000004L
michael@0 15 #define SECMOD_RC4_FLAG 0x00000008L
michael@0 16 #define SECMOD_DES_FLAG 0x00000010L
michael@0 17 #define SECMOD_DH_FLAG 0x00000020L
michael@0 18 #define SECMOD_FORTEZZA_FLAG 0x00000040L
michael@0 19 #define SECMOD_RC5_FLAG 0x00000080L
michael@0 20 #define SECMOD_SHA1_FLAG 0x00000100L
michael@0 21 #define SECMOD_MD5_FLAG 0x00000200L
michael@0 22 #define SECMOD_MD2_FLAG 0x00000400L
michael@0 23 #define SECMOD_SSL_FLAG 0x00000800L
michael@0 24 #define SECMOD_TLS_FLAG 0x00001000L
michael@0 25 #define SECMOD_AES_FLAG 0x00002000L
michael@0 26 #define SECMOD_SHA256_FLAG 0x00004000L /* also for SHA224 */
michael@0 27 #define SECMOD_SHA512_FLAG 0x00008000L /* also for SHA384 */
michael@0 28 #define SECMOD_CAMELLIA_FLAG 0x00010000L /* = PUBLIC_MECH_CAMELLIA_FLAG */
michael@0 29 #define SECMOD_SEED_FLAG 0x00020000L
michael@0 30 #define SECMOD_ECC_FLAG 0x00040000L
michael@0 31 /* reserved bit for future, do not use */
michael@0 32 #define SECMOD_RESERVED_FLAG 0X08000000L
michael@0 33 #define SECMOD_FRIENDLY_FLAG 0x10000000L
michael@0 34 #define SECMOD_RANDOM_FLAG 0x80000000L
michael@0 35
michael@0 36 #define PK11_OWN_PW_DEFAULTS 0x20000000L
michael@0 37 #define PK11_DISABLE_FLAG 0x40000000L
michael@0 38
michael@0 39 /* need to make SECMOD and PK11 prefixes consistent. */
michael@0 40 #define SECMOD_OWN_PW_DEFAULTS PK11_OWN_PW_DEFAULTS
michael@0 41 #define SECMOD_DISABLE_FLAG PK11_DISABLE_FLAG
michael@0 42
michael@0 43 #endif /* _UTILMODT_H_ */

mercurial