PageRenderTime 141ms CodeModel.GetById 50ms app.highlight 11ms RepoModel.GetById 69ms app.codeStats 1ms

/gecko_api/include/utilrename.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 194 lines | 146 code | 7 blank | 41 comment | 0 complexity | 2f26e022457241ca0a4e616004c18a3b MD5 | raw file
  1/* ***** BEGIN LICENSE BLOCK *****
  2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3 *
  4 * The contents of this file are subject to the Mozilla Public License Version
  5 * 1.1 (the "License") you may not use this file except in compliance with
  6 * the License. You may obtain a copy of the License at
  7 * http://www.mozilla.org/MPL/
  8 *
  9 * Software distributed under the License is distributed on an "AS IS" basis,
 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 11 * for the specific language governing rights and limitations under the
 12 * License.
 13 *
 14 * The Original Code is the Network Security Services libraries.
 15 *
 16 * The Initial Developer of the Original Code is
 17 * Sun Microsystems, Inc.
 18 * Portions created by the Initial Developer are Copyright (C) 2007
 19 * the Initial Developer. All Rights Reserved.
 20 *
 21 * Contributor(s):
 22 *
 23 * Alternatively, the contents of this file may be used under the terms of
 24 * either the GNU General Public License Version 2 or later (the "GPL"), or
 25 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 26 * in which case the provisions of the GPL or the LGPL are applicable instead
 27 * of those above. If you wish to allow use of your version of this file only
 28 * under the terms of either the GPL or the LGPL, and not to allow others to
 29 * use your version of this file under the terms of the MPL, indicate your
 30 * decision by deleting the provisions above and replace them with the notice
 31 * and other provisions required by the GPL or the LGPL. If you do not delete
 32 * the provisions above, a recipient may use your version of this file under
 33 * the terms of any one of the MPL, the GPL or the LGPL.
 34 *
 35 * ***** END LICENSE BLOCK ***** */
 36
 37/*
 38 * utilrename.h - rename symbols moved from libnss3 to libnssutil3
 39 *
 40 */
 41
 42#ifndef _LIBUTIL_H_
 43#define _LIBUTIL_H_ _LIBUTIL_H__Util
 44
 45#ifdef USE_UTIL_DIRECTLY
 46
 47/* functions moved from libnss3 */
 48#define ATOB_AsciiToData ATOB_AsciiToData_Util
 49#define ATOB_ConvertAsciiToItem ATOB_ConvertAsciiToItem_Util
 50#define BTOA_ConvertItemToAscii BTOA_ConvertItemToAscii_Util
 51#define BTOA_DataToAscii BTOA_DataToAscii_Util
 52#define CERT_GenTime2FormattedAscii CERT_GenTime2FormattedAscii_Util
 53#define DER_AsciiToTime DER_AsciiToTime_Util
 54#define DER_DecodeTimeChoice DER_DecodeTimeChoice_Util
 55#define DER_Encode DER_Encode_Util
 56#define DER_EncodeTimeChoice DER_EncodeTimeChoice_Util
 57#define DER_GeneralizedDayToAscii DER_GeneralizedDayToAscii_Util
 58#define DER_GeneralizedTimeToTime DER_GeneralizedTimeToTime_Util
 59#define DER_GetInteger DER_GetInteger_Util
 60#define DER_Lengths DER_Lengths_Util
 61#define DER_TimeChoiceDayToAscii DER_TimeChoiceDayToAscii_Util
 62#define DER_TimeToGeneralizedTime DER_TimeToGeneralizedTime_Util
 63#define DER_TimeToGeneralizedTimeArena DER_TimeToGeneralizedTimeArena_Util
 64#define DER_TimeToUTCTime DER_TimeToUTCTime_Util
 65#define DER_UTCDayToAscii DER_UTCDayToAscii_Util
 66#define DER_UTCTimeToAscii DER_UTCTimeToAscii_Util
 67#define DER_UTCTimeToTime DER_UTCTimeToTime_Util
 68#define NSS_PutEnv NSS_PutEnv_Util
 69#define NSSBase64_DecodeBuffer NSSBase64_DecodeBuffer_Util
 70#define NSSBase64_EncodeItem NSSBase64_EncodeItem_Util
 71#define NSSBase64Decoder_Create NSSBase64Decoder_Create_Util
 72#define NSSBase64Decoder_Destroy NSSBase64Decoder_Destroy_Util
 73#define NSSBase64Decoder_Update NSSBase64Decoder_Update_Util
 74#define NSSBase64Encoder_Create NSSBase64Encoder_Create_Util
 75#define NSSBase64Encoder_Destroy NSSBase64Encoder_Destroy_Util
 76#define NSSBase64Encoder_Update NSSBase64Encoder_Update_Util
 77#define NSSRWLock_Destroy NSSRWLock_Destroy_Util
 78#define NSSRWLock_HaveWriteLock NSSRWLock_HaveWriteLock_Util
 79#define NSSRWLock_LockRead NSSRWLock_LockRead_Util
 80#define NSSRWLock_LockWrite NSSRWLock_LockWrite_Util
 81#define NSSRWLock_New NSSRWLock_New_Util
 82#define NSSRWLock_UnlockRead NSSRWLock_UnlockRead_Util
 83#define NSSRWLock_UnlockWrite NSSRWLock_UnlockWrite_Util
 84#define PORT_Alloc PORT_Alloc_Util
 85#define PORT_ArenaAlloc PORT_ArenaAlloc_Util
 86#define PORT_ArenaGrow PORT_ArenaGrow_Util
 87#define PORT_ArenaMark PORT_ArenaMark_Util
 88#define PORT_ArenaRelease PORT_ArenaRelease_Util
 89#define PORT_ArenaStrdup PORT_ArenaStrdup_Util
 90#define PORT_ArenaUnmark PORT_ArenaUnmark_Util
 91#define PORT_ArenaZAlloc PORT_ArenaZAlloc_Util
 92#define PORT_Free PORT_Free_Util
 93#define PORT_FreeArena PORT_FreeArena_Util
 94#define PORT_GetError PORT_GetError_Util
 95#define PORT_NewArena PORT_NewArena_Util
 96#define PORT_Realloc PORT_Realloc_Util
 97#define PORT_SetError PORT_SetError_Util
 98#define PORT_SetUCS2_ASCIIConversionFunction PORT_SetUCS2_ASCIIConversionFunction_Util
 99#define PORT_SetUCS2_UTF8ConversionFunction PORT_SetUCS2_UTF8ConversionFunction_Util
100#define PORT_SetUCS4_UTF8ConversionFunction PORT_SetUCS4_UTF8ConversionFunction_Util
101#define PORT_Strdup PORT_Strdup_Util
102#define PORT_UCS2_ASCIIConversion PORT_UCS2_ASCIIConversion_Util
103#define PORT_UCS2_UTF8Conversion PORT_UCS2_UTF8Conversion_Util
104#define PORT_ZAlloc PORT_ZAlloc_Util
105#define PORT_ZFree PORT_ZFree_Util
106#define SEC_ASN1Decode SEC_ASN1Decode_Util
107#define SEC_ASN1DecodeInteger SEC_ASN1DecodeInteger_Util
108#define SEC_ASN1DecodeItem SEC_ASN1DecodeItem_Util
109#define SEC_ASN1DecoderAbort SEC_ASN1DecoderAbort_Util
110#define SEC_ASN1DecoderClearFilterProc SEC_ASN1DecoderClearFilterProc_Util
111#define SEC_ASN1DecoderClearNotifyProc SEC_ASN1DecoderClearNotifyProc_Util
112#define SEC_ASN1DecoderFinish SEC_ASN1DecoderFinish_Util
113#define SEC_ASN1DecoderSetFilterProc SEC_ASN1DecoderSetFilterProc_Util
114#define SEC_ASN1DecoderSetNotifyProc SEC_ASN1DecoderSetNotifyProc_Util
115#define SEC_ASN1DecoderStart SEC_ASN1DecoderStart_Util
116#define SEC_ASN1DecoderUpdate SEC_ASN1DecoderUpdate_Util
117#define SEC_ASN1Encode SEC_ASN1Encode_Util
118#define SEC_ASN1EncodeInteger SEC_ASN1EncodeInteger_Util
119#define SEC_ASN1EncodeItem SEC_ASN1EncodeItem_Util
120#define SEC_ASN1EncoderAbort SEC_ASN1EncoderAbort_Util
121#define SEC_ASN1EncoderClearNotifyProc SEC_ASN1EncoderClearNotifyProc_Util
122#define SEC_ASN1EncoderClearStreaming SEC_ASN1EncoderClearStreaming_Util
123#define SEC_ASN1EncoderClearTakeFromBuf SEC_ASN1EncoderClearTakeFromBuf_Util
124#define SEC_ASN1EncoderFinish SEC_ASN1EncoderFinish_Util
125#define SEC_ASN1EncoderSetNotifyProc SEC_ASN1EncoderSetNotifyProc_Util
126#define SEC_ASN1EncoderSetStreaming SEC_ASN1EncoderSetStreaming_Util
127#define SEC_ASN1EncoderSetTakeFromBuf SEC_ASN1EncoderSetTakeFromBuf_Util
128#define SEC_ASN1EncoderStart SEC_ASN1EncoderStart_Util
129#define SEC_ASN1EncoderUpdate SEC_ASN1EncoderUpdate_Util
130#define SEC_ASN1EncodeUnsignedInteger SEC_ASN1EncodeUnsignedInteger_Util
131#define SEC_ASN1LengthLength SEC_ASN1LengthLength_Util
132#define SEC_QuickDERDecodeItem SEC_QuickDERDecodeItem_Util
133#define SECITEM_AllocItem SECITEM_AllocItem_Util
134#define SECITEM_ArenaDupItem SECITEM_ArenaDupItem_Util
135#define SECITEM_CompareItem SECITEM_CompareItem_Util
136#define SECITEM_CopyItem SECITEM_CopyItem_Util
137#define SECITEM_DupItem SECITEM_DupItem_Util
138#define SECITEM_FreeItem SECITEM_FreeItem_Util
139#define SECITEM_ItemsAreEqual SECITEM_ItemsAreEqual_Util
140#define SECITEM_ZfreeItem SECITEM_ZfreeItem_Util
141#define SECOID_AddEntry SECOID_AddEntry_Util
142#define SECOID_CompareAlgorithmID SECOID_CompareAlgorithmID_Util
143#define SECOID_CopyAlgorithmID SECOID_CopyAlgorithmID_Util
144#define SECOID_DestroyAlgorithmID SECOID_DestroyAlgorithmID_Util
145#define SECOID_FindOID SECOID_FindOID_Util
146#define SECOID_FindOIDByTag SECOID_FindOIDByTag_Util
147#define SECOID_FindOIDTag SECOID_FindOIDTag_Util
148#define SECOID_FindOIDTagDescription SECOID_FindOIDTagDescription_Util
149#define SECOID_GetAlgorithmTag SECOID_GetAlgorithmTag_Util
150#define SECOID_SetAlgorithmID SECOID_SetAlgorithmID_Util
151#define SGN_CompareDigestInfo SGN_CompareDigestInfo_Util
152#define SGN_CopyDigestInfo SGN_CopyDigestInfo_Util
153#define SGN_CreateDigestInfo SGN_CreateDigestInfo_Util
154#define SGN_DestroyDigestInfo SGN_DestroyDigestInfo_Util
155
156/* templates moved from libnss3 */
157#define NSS_Get_SEC_AnyTemplate NSS_Get_SEC_AnyTemplate_Util
158#define NSS_Get_SEC_BitStringTemplate NSS_Get_SEC_BitStringTemplate_Util
159#define NSS_Get_SEC_BMPStringTemplate NSS_Get_SEC_BMPStringTemplate_Util
160#define NSS_Get_SEC_BooleanTemplate NSS_Get_SEC_BooleanTemplate_Util
161#define NSS_Get_SEC_GeneralizedTimeTemplate NSS_Get_SEC_GeneralizedTimeTemplate_Util
162#define NSS_Get_SEC_IA5StringTemplate NSS_Get_SEC_IA5StringTemplate_Util
163#define NSS_Get_SEC_IntegerTemplate NSS_Get_SEC_IntegerTemplate_Util
164#define NSS_Get_SEC_NullTemplate NSS_Get_SEC_NullTemplate_Util
165#define NSS_Get_SEC_ObjectIDTemplate NSS_Get_SEC_ObjectIDTemplate_Util
166#define NSS_Get_SEC_OctetStringTemplate NSS_Get_SEC_OctetStringTemplate_Util
167#define NSS_Get_SEC_PointerToAnyTemplate NSS_Get_SEC_PointerToAnyTemplate_Util
168#define NSS_Get_SEC_PointerToOctetStringTemplate NSS_Get_SEC_PointerToOctetStringTemplate_Util
169#define NSS_Get_SEC_SetOfAnyTemplate NSS_Get_SEC_SetOfAnyTemplate_Util
170#define NSS_Get_SEC_UTCTimeTemplate NSS_Get_SEC_UTCTimeTemplate_Util
171#define NSS_Get_SEC_UTF8StringTemplate NSS_Get_SEC_UTF8StringTemplate_Util
172#define NSS_Get_SECOID_AlgorithmIDTemplate NSS_Get_SECOID_AlgorithmIDTemplate_Util
173#define NSS_Get_sgn_DigestInfoTemplate NSS_Get_sgn_DigestInfoTemplate_Util
174#define SEC_AnyTemplate SEC_AnyTemplate_Util
175#define SEC_BitStringTemplate SEC_BitStringTemplate_Util
176#define SEC_BMPStringTemplate SEC_BMPStringTemplate_Util
177#define SEC_BooleanTemplate SEC_BooleanTemplate_Util
178#define SEC_GeneralizedTimeTemplate SEC_GeneralizedTimeTemplate_Util
179#define SEC_IA5StringTemplate SEC_IA5StringTemplate_Util
180#define SEC_IntegerTemplate SEC_IntegerTemplate_Util
181#define SEC_NullTemplate SEC_NullTemplate_Util
182#define SEC_ObjectIDTemplate SEC_ObjectIDTemplate_Util
183#define SEC_OctetStringTemplate SEC_OctetStringTemplate_Util
184#define SEC_PointerToAnyTemplate SEC_PointerToAnyTemplate_Util
185#define SEC_PointerToOctetStringTemplate SEC_PointerToOctetStringTemplate_Util
186#define SEC_SetOfAnyTemplate SEC_SetOfAnyTemplate_Util
187#define SEC_UTCTimeTemplate SEC_UTCTimeTemplate_Util
188#define SEC_UTF8StringTemplate SEC_UTF8StringTemplate_Util
189#define SECOID_AlgorithmIDTemplate SECOID_AlgorithmIDTemplate_Util
190#define sgn_DigestInfoTemplate sgn_DigestInfoTemplate_Util
191
192#endif /* USE_UTIL_DIRECTLY */
193
194#endif /* _LIBUTIL_H_ */