Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: nss/lib/pk11wrap/secmod.h

Issue 319593003: Update to NSS 3.16.2 Beta 3. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Remove unused function SEC_NumberOrNameStringToOIDTag Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 #ifndef _SECMOD_H_ 4 #ifndef _SECMOD_H_
5 #define _SECMOD_H_ 5 #define _SECMOD_H_
6 #include "seccomon.h" 6 #include "seccomon.h"
7 #include "secmodt.h" 7 #include "secmodt.h"
8 #include "prinrval.h" 8 #include "prinrval.h"
9 9
10 /* These mechanisms flags are visible to all other libraries. */ 10 /* These mechanisms flags are visible to all other libraries. */
(...skipping 10 matching lines...) Expand all
21 #define PUBLIC_MECH_SHA1_FLAG 0x00000100ul 21 #define PUBLIC_MECH_SHA1_FLAG 0x00000100ul
22 #define PUBLIC_MECH_MD5_FLAG 0x00000200ul 22 #define PUBLIC_MECH_MD5_FLAG 0x00000200ul
23 #define PUBLIC_MECH_MD2_FLAG 0x00000400ul 23 #define PUBLIC_MECH_MD2_FLAG 0x00000400ul
24 #define PUBLIC_MECH_SSL_FLAG 0x00000800ul 24 #define PUBLIC_MECH_SSL_FLAG 0x00000800ul
25 #define PUBLIC_MECH_TLS_FLAG 0x00001000ul 25 #define PUBLIC_MECH_TLS_FLAG 0x00001000ul
26 #define PUBLIC_MECH_AES_FLAG 0x00002000ul 26 #define PUBLIC_MECH_AES_FLAG 0x00002000ul
27 #define PUBLIC_MECH_SHA256_FLAG 0x00004000ul 27 #define PUBLIC_MECH_SHA256_FLAG 0x00004000ul
28 #define PUBLIC_MECH_SHA512_FLAG 0x00008000ul 28 #define PUBLIC_MECH_SHA512_FLAG 0x00008000ul
29 #define PUBLIC_MECH_CAMELLIA_FLAG 0x00010000ul 29 #define PUBLIC_MECH_CAMELLIA_FLAG 0x00010000ul
30 #define PUBLIC_MECH_SEED_FLAG 0x00020000ul 30 #define PUBLIC_MECH_SEED_FLAG 0x00020000ul
31 #define PUBLIC_MECH_ECC_FLAG 0x00040000ul
31 32
32 #define PUBLIC_MECH_RANDOM_FLAG 0x08000000ul 33 #define PUBLIC_MECH_RANDOM_FLAG 0x08000000ul
33 #define PUBLIC_MECH_FRIENDLY_FLAG 0x10000000ul 34 #define PUBLIC_MECH_FRIENDLY_FLAG 0x10000000ul
34 #define PUBLIC_OWN_PW_DEFAULTS 0X20000000ul 35 #define PUBLIC_OWN_PW_DEFAULTS 0X20000000ul
35 #define PUBLIC_DISABLE_FLAG 0x40000000ul 36 #define PUBLIC_DISABLE_FLAG 0x40000000ul
36 37
37 /* warning: reserved means reserved */ 38 /* warning: reserved means reserved */
38 #define PUBLIC_MECH_RESERVED_FLAGS 0x87FF0000ul 39 #define PUBLIC_MECH_RESERVED_FLAGS 0x87FF0000ul
39 40
40 /* These cipher flags are visible to all other libraries, */ 41 /* These cipher flags are visible to all other libraries, */
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 /* of modType has been installed */ 132 /* of modType has been installed */
132 PRBool SECMOD_IsModulePresent( unsigned long int pubCipherEnableFlags ); 133 PRBool SECMOD_IsModulePresent( unsigned long int pubCipherEnableFlags );
133 134
134 /* accessors */ 135 /* accessors */
135 PRBool SECMOD_GetSkipFirstFlag(SECMODModule *mod); 136 PRBool SECMOD_GetSkipFirstFlag(SECMODModule *mod);
136 PRBool SECMOD_GetDefaultModDBFlag(SECMODModule *mod); 137 PRBool SECMOD_GetDefaultModDBFlag(SECMODModule *mod);
137 138
138 /* Functions used to convert between internal & public representation 139 /* Functions used to convert between internal & public representation
139 * of Mechanism Flags and Cipher Enable Flags */ 140 * of Mechanism Flags and Cipher Enable Flags */
140 extern unsigned long SECMOD_PubMechFlagstoInternal(unsigned long publicFlags); 141 extern unsigned long SECMOD_PubMechFlagstoInternal(unsigned long publicFlags);
142 extern unsigned long SECMOD_InternaltoPubMechFlags(unsigned long internalFlags);
141 extern unsigned long SECMOD_PubCipherFlagstoInternal(unsigned long publicFlags); 143 extern unsigned long SECMOD_PubCipherFlagstoInternal(unsigned long publicFlags);
142 144
143 PRBool SECMOD_HasRemovableSlots(SECMODModule *mod); 145 PRBool SECMOD_HasRemovableSlots(SECMODModule *mod);
144 PK11SlotInfo *SECMOD_WaitForAnyTokenEvent(SECMODModule *mod, 146 PK11SlotInfo *SECMOD_WaitForAnyTokenEvent(SECMODModule *mod,
145 unsigned long flags, PRIntervalTime latency); 147 unsigned long flags, PRIntervalTime latency);
146 /* 148 /*
147 * Warning: the SECMOD_CancelWait function is highly destructive, potentially 149 * Warning: the SECMOD_CancelWait function is highly destructive, potentially
148 * finalizing the module 'mod' (causing inprogress operations to fail, 150 * finalizing the module 'mod' (causing inprogress operations to fail,
149 * and session key material to disappear). It should only be called when 151 * and session key material to disappear). It should only be called when
150 * shutting down the module. 152 * shutting down the module.
151 */ 153 */
152 SECStatus SECMOD_CancelWait(SECMODModule *mod); 154 SECStatus SECMOD_CancelWait(SECMODModule *mod);
153 /* 155 /*
154 * check to see if the module has added new slots. PKCS 11 v2.20 allows for 156 * check to see if the module has added new slots. PKCS 11 v2.20 allows for
155 * modules to add new slots, but never remove them. Slots not be added between 157 * modules to add new slots, but never remove them. Slots not be added between
156 * a call to C_GetSlotLlist(Flag, NULL, &count) and the corresponding 158 * a call to C_GetSlotLlist(Flag, NULL, &count) and the corresponding
157 * C_GetSlotList(flag, &data, &count) so that the array doesn't accidently 159 * C_GetSlotList(flag, &data, &count) so that the array doesn't accidently
158 * grow on the caller. It is permissible for the slots to increase between 160 * grow on the caller. It is permissible for the slots to increase between
159 * corresponding calls with NULL to get the size. 161 * corresponding calls with NULL to get the size.
160 */ 162 */
161 SECStatus SECMOD_UpdateSlotList(SECMODModule *mod); 163 SECStatus SECMOD_UpdateSlotList(SECMODModule *mod);
162 SEC_END_PROTOS 164 SEC_END_PROTOS
163 165
164 #endif 166 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698