Back to index

lightning-sunbird  0.9+nobinonly
ckfwm.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is the Netscape security libraries.
00015  *
00016  * The Initial Developer of the Original Code is
00017  * Netscape Communications Corporation.
00018  * Portions created by the Initial Developer are Copyright (C) 1994-2000
00019  * the Initial Developer. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *
00023  * Alternatively, the contents of this file may be used under the terms of
00024  * either the GNU General Public License Version 2 or later (the "GPL"), or
00025  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00026  * in which case the provisions of the GPL or the LGPL are applicable instead
00027  * of those above. If you wish to allow use of your version of this file only
00028  * under the terms of either the GPL or the LGPL, and not to allow others to
00029  * use your version of this file under the terms of the MPL, indicate your
00030  * decision by deleting the provisions above and replace them with the notice
00031  * and other provisions required by the GPL or the LGPL. If you do not delete
00032  * the provisions above, a recipient may use your version of this file under
00033  * the terms of any one of the MPL, the GPL or the LGPL.
00034  *
00035  * ***** END LICENSE BLOCK ***** */
00036 
00037 #ifndef CKFWM_H
00038 #define CKFWM_H
00039 
00040 #ifdef DEBUG
00041 static const char CKFWM_CVS_ID[] = "@(#) $RCSfile: ckfwm.h,v $ $Revision: 1.6 $ $Date: 2005/08/25 20:08:26 $";
00042 #endif /* DEBUG */
00043 
00044 /*
00045  * ckfwm.h
00046  *
00047  * This file prototypes the module-private calls of the NSS Cryptoki Framework.
00048  */
00049 
00050 #ifndef NSSBASET_H
00051 #include "nssbaset.h"
00052 #endif /* NSSBASET_H */
00053 
00054 #ifndef NSSCKT_H
00055 #include "nssckt.h"
00056 #endif /* NSSCKT_H */
00057 
00058 #ifndef NSSCKFWT_H
00059 #include "nssckfwt.h"
00060 #endif /* NSSCKFWT_H */
00061 
00062 /*
00063  * nssCKFWHash
00064  *
00065  *  nssCKFWHash_Create
00066  *  nssCKFWHash_Destroy
00067  *  nssCKFWHash_Add
00068  *  nssCKFWHash_Remove
00069  *  nssCKFWHash_Count
00070  *  nssCKFWHash_Exists
00071  *  nssCKFWHash_Lookup
00072  *  nssCKFWHash_Iterate
00073  */
00074 
00075 /*
00076  * nssCKFWHash_Create
00077  *
00078  */
00079 NSS_EXTERN nssCKFWHash *
00080 nssCKFWHash_Create
00081 (
00082   NSSCKFWInstance *fwInstance,
00083   NSSArena *arena,
00084   CK_RV *pError
00085 );
00086 
00087 /*
00088  * nssCKFWHash_Destroy
00089  *
00090  */
00091 NSS_EXTERN void
00092 nssCKFWHash_Destroy
00093 (
00094   nssCKFWHash *hash
00095 );
00096 
00097 /*
00098  * nssCKFWHash_Add
00099  *
00100  */
00101 NSS_EXTERN CK_RV
00102 nssCKFWHash_Add
00103 (
00104   nssCKFWHash *hash,
00105   const void *key,
00106   const void *value
00107 );
00108 
00109 /*
00110  * nssCKFWHash_Remove
00111  *
00112  */
00113 NSS_EXTERN void
00114 nssCKFWHash_Remove
00115 (
00116   nssCKFWHash *hash,
00117   const void *it
00118 );
00119 
00120 /*
00121  * nssCKFWHash_Count
00122  *
00123  */
00124 NSS_EXTERN CK_ULONG
00125 nssCKFWHash_Count
00126 (
00127   nssCKFWHash *hash
00128 );
00129 
00130 /*
00131  * nssCKFWHash_Exists
00132  *
00133  */
00134 NSS_EXTERN CK_BBOOL
00135 nssCKFWHash_Exists
00136 (
00137   nssCKFWHash *hash,
00138   const void *it
00139 );
00140 
00141 /*
00142  * nssCKFWHash_Lookup
00143  *
00144  */
00145 NSS_EXTERN void *
00146 nssCKFWHash_Lookup
00147 (
00148   nssCKFWHash *hash,
00149   const void *it
00150 );
00151 
00152 /*
00153  * nssCKFWHash_Iterate
00154  *
00155  */
00156 NSS_EXTERN void
00157 nssCKFWHash_Iterate
00158 (
00159   nssCKFWHash *hash,
00160   nssCKFWHashIterator fcn,
00161   void *closure
00162 );
00163 
00164 #endif /* CKFWM_H */