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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5/*
6 * utilrename.h - rename symbols moved from libnss3 to libnssutil3
7 *
8 */
9
10#ifndef _LIBUTIL_H_
11#define _LIBUTIL_H_ _LIBUTIL_H__Util
12
13#ifdef USE_UTIL_DIRECTLY
14
15/* functions moved from libnss3 */
16#define ATOB_AsciiToData ATOB_AsciiToData_Util
17#define ATOB_ConvertAsciiToItem ATOB_ConvertAsciiToItem_Util
18#define BTOA_ConvertItemToAscii BTOA_ConvertItemToAscii_Util
19#define BTOA_DataToAscii BTOA_DataToAscii_Util
20#define CERT_GenTime2FormattedAscii CERT_GenTime2FormattedAscii_Util
21#define DER_AsciiToTime DER_AsciiToTime_Util
22#define DER_DecodeTimeChoice DER_DecodeTimeChoice_Util
23#define DER_Encode DER_Encode_Util
24#define DER_EncodeTimeChoice DER_EncodeTimeChoice_Util
25#define DER_GeneralizedDayToAscii DER_GeneralizedDayToAscii_Util
26#define DER_GeneralizedTimeToTime DER_GeneralizedTimeToTime_Util
27#define DER_GetInteger DER_GetInteger_Util
28#define DER_Lengths DER_Lengths_Util
29#define DER_TimeChoiceDayToAscii DER_TimeChoiceDayToAscii_Util
30#define DER_TimeToGeneralizedTime DER_TimeToGeneralizedTime_Util
31#define DER_TimeToGeneralizedTimeArena DER_TimeToGeneralizedTimeArena_Util
32#define DER_TimeToUTCTime DER_TimeToUTCTime_Util
33#define DER_UTCDayToAscii DER_UTCDayToAscii_Util
34#define DER_UTCTimeToAscii DER_UTCTimeToAscii_Util
35#define DER_UTCTimeToTime DER_UTCTimeToTime_Util
36#define NSS_PutEnv NSS_PutEnv_Util
37#define NSSBase64_DecodeBuffer NSSBase64_DecodeBuffer_Util
38#define NSSBase64_EncodeItem NSSBase64_EncodeItem_Util
39#define NSSBase64Decoder_Create NSSBase64Decoder_Create_Util
40#define NSSBase64Decoder_Destroy NSSBase64Decoder_Destroy_Util
41#define NSSBase64Decoder_Update NSSBase64Decoder_Update_Util
42#define NSSBase64Encoder_Create NSSBase64Encoder_Create_Util
43#define NSSBase64Encoder_Destroy NSSBase64Encoder_Destroy_Util
44#define NSSBase64Encoder_Update NSSBase64Encoder_Update_Util
45#define NSSRWLock_Destroy NSSRWLock_Destroy_Util
46#define NSSRWLock_HaveWriteLock NSSRWLock_HaveWriteLock_Util
47#define NSSRWLock_LockRead NSSRWLock_LockRead_Util
48#define NSSRWLock_LockWrite NSSRWLock_LockWrite_Util
49#define NSSRWLock_New NSSRWLock_New_Util
50#define NSSRWLock_UnlockRead NSSRWLock_UnlockRead_Util
51#define NSSRWLock_UnlockWrite NSSRWLock_UnlockWrite_Util
52#define PORT_Alloc PORT_Alloc_Util
53#define PORT_ArenaAlloc PORT_ArenaAlloc_Util
54#define PORT_ArenaGrow PORT_ArenaGrow_Util
55#define PORT_ArenaMark PORT_ArenaMark_Util
56#define PORT_ArenaRelease PORT_ArenaRelease_Util
57#define PORT_ArenaStrdup PORT_ArenaStrdup_Util
58#define PORT_ArenaUnmark PORT_ArenaUnmark_Util
59#define PORT_ArenaZAlloc PORT_ArenaZAlloc_Util
60#define PORT_Free PORT_Free_Util
61#define PORT_FreeArena PORT_FreeArena_Util
62#define PORT_GetError PORT_GetError_Util
63#define PORT_NewArena PORT_NewArena_Util
64#define PORT_Realloc PORT_Realloc_Util
65#define PORT_SetError PORT_SetError_Util
66#define PORT_SetUCS2_ASCIIConversionFunction PORT_SetUCS2_ASCIIConversionFunction_Util
67#define PORT_SetUCS2_UTF8ConversionFunction PORT_SetUCS2_UTF8ConversionFunction_Util
68#define PORT_SetUCS4_UTF8ConversionFunction PORT_SetUCS4_UTF8ConversionFunction_Util
69#define PORT_Strdup PORT_Strdup_Util
70#define PORT_UCS2_ASCIIConversion PORT_UCS2_ASCIIConversion_Util
71#define PORT_UCS2_UTF8Conversion PORT_UCS2_UTF8Conversion_Util
72#define PORT_ZAlloc PORT_ZAlloc_Util
73#define PORT_ZAllocAligned PORT_ZAllocAligned_Util
74#define PORT_ZAllocAlignedOffset PORT_ZAllocAlignedOffset_Util
75#define PORT_ZFree PORT_ZFree_Util
76#define SEC_ASN1Decode SEC_ASN1Decode_Util
77#define SEC_ASN1DecodeInteger SEC_ASN1DecodeInteger_Util
78#define SEC_ASN1DecodeItem SEC_ASN1DecodeItem_Util
79#define SEC_ASN1DecoderAbort SEC_ASN1DecoderAbort_Util
80#define SEC_ASN1DecoderClearFilterProc SEC_ASN1DecoderClearFilterProc_Util
81#define SEC_ASN1DecoderClearNotifyProc SEC_ASN1DecoderClearNotifyProc_Util
82#define SEC_ASN1DecoderFinish SEC_ASN1DecoderFinish_Util
83#define SEC_ASN1DecoderSetFilterProc SEC_ASN1DecoderSetFilterProc_Util
84#define SEC_ASN1DecoderSetNotifyProc SEC_ASN1DecoderSetNotifyProc_Util
85#define SEC_ASN1DecoderStart SEC_ASN1DecoderStart_Util
86#define SEC_ASN1DecoderUpdate SEC_ASN1DecoderUpdate_Util
87#define SEC_ASN1Encode SEC_ASN1Encode_Util
88#define SEC_ASN1EncodeInteger SEC_ASN1EncodeInteger_Util
89#define SEC_ASN1EncodeItem SEC_ASN1EncodeItem_Util
90#define SEC_ASN1EncoderAbort SEC_ASN1EncoderAbort_Util
91#define SEC_ASN1EncoderClearNotifyProc SEC_ASN1EncoderClearNotifyProc_Util
92#define SEC_ASN1EncoderClearStreaming SEC_ASN1EncoderClearStreaming_Util
93#define SEC_ASN1EncoderClearTakeFromBuf SEC_ASN1EncoderClearTakeFromBuf_Util
94#define SEC_ASN1EncoderFinish SEC_ASN1EncoderFinish_Util
95#define SEC_ASN1EncoderSetNotifyProc SEC_ASN1EncoderSetNotifyProc_Util
96#define SEC_ASN1EncoderSetStreaming SEC_ASN1EncoderSetStreaming_Util
97#define SEC_ASN1EncoderSetTakeFromBuf SEC_ASN1EncoderSetTakeFromBuf_Util
98#define SEC_ASN1EncoderStart SEC_ASN1EncoderStart_Util
99#define SEC_ASN1EncoderUpdate SEC_ASN1EncoderUpdate_Util
100#define SEC_ASN1EncodeUnsignedInteger SEC_ASN1EncodeUnsignedInteger_Util
101#define SEC_ASN1LengthLength SEC_ASN1LengthLength_Util
102#define SEC_QuickDERDecodeItem SEC_QuickDERDecodeItem_Util
103#define SECITEM_AllocItem SECITEM_AllocItem_Util
104#define SECITEM_ArenaDupItem SECITEM_ArenaDupItem_Util
105#define SECITEM_CompareItem SECITEM_CompareItem_Util
106#define SECITEM_CopyItem SECITEM_CopyItem_Util
107#define SECITEM_DupItem SECITEM_DupItem_Util
108#define SECITEM_FreeItem SECITEM_FreeItem_Util
109#define SECITEM_ItemsAreEqual SECITEM_ItemsAreEqual_Util
110#define SECITEM_ZfreeItem SECITEM_ZfreeItem_Util
111#define SECOID_AddEntry SECOID_AddEntry_Util
112#define SECOID_CompareAlgorithmID SECOID_CompareAlgorithmID_Util
113#define SECOID_CopyAlgorithmID SECOID_CopyAlgorithmID_Util
114#define SECOID_DestroyAlgorithmID SECOID_DestroyAlgorithmID_Util
115#define SECOID_FindOID SECOID_FindOID_Util
116#define SECOID_FindOIDByTag SECOID_FindOIDByTag_Util
117#define SECOID_FindOIDTag SECOID_FindOIDTag_Util
118#define SECOID_FindOIDTagDescription SECOID_FindOIDTagDescription_Util
119#define SECOID_GetAlgorithmTag SECOID_GetAlgorithmTag_Util
120#define SECOID_SetAlgorithmID SECOID_SetAlgorithmID_Util
121#define SGN_CompareDigestInfo SGN_CompareDigestInfo_Util
122#define SGN_CopyDigestInfo SGN_CopyDigestInfo_Util
123#define SGN_CreateDigestInfo SGN_CreateDigestInfo_Util
124#define SGN_DestroyDigestInfo SGN_DestroyDigestInfo_Util
125
126/* templates moved from libnss3 */
127#define NSS_Get_SEC_AnyTemplate NSS_Get_SEC_AnyTemplate_Util
128#define NSS_Get_SEC_BitStringTemplate NSS_Get_SEC_BitStringTemplate_Util
129#define NSS_Get_SEC_BMPStringTemplate NSS_Get_SEC_BMPStringTemplate_Util
130#define NSS_Get_SEC_BooleanTemplate NSS_Get_SEC_BooleanTemplate_Util
131#define NSS_Get_SEC_GeneralizedTimeTemplate NSS_Get_SEC_GeneralizedTimeTemplate_Util
132#define NSS_Get_SEC_IA5StringTemplate NSS_Get_SEC_IA5StringTemplate_Util
133#define NSS_Get_SEC_IntegerTemplate NSS_Get_SEC_IntegerTemplate_Util
134#define NSS_Get_SEC_NullTemplate NSS_Get_SEC_NullTemplate_Util
135#define NSS_Get_SEC_ObjectIDTemplate NSS_Get_SEC_ObjectIDTemplate_Util
136#define NSS_Get_SEC_OctetStringTemplate NSS_Get_SEC_OctetStringTemplate_Util
137#define NSS_Get_SEC_PointerToAnyTemplate NSS_Get_SEC_PointerToAnyTemplate_Util
138#define NSS_Get_SEC_PointerToOctetStringTemplate NSS_Get_SEC_PointerToOctetStringTemplate_Util
139#define NSS_Get_SEC_SetOfAnyTemplate NSS_Get_SEC_SetOfAnyTemplate_Util
140#define NSS_Get_SEC_UTCTimeTemplate NSS_Get_SEC_UTCTimeTemplate_Util
141#define NSS_Get_SEC_UTF8StringTemplate NSS_Get_SEC_UTF8StringTemplate_Util
142#define NSS_Get_SECOID_AlgorithmIDTemplate NSS_Get_SECOID_AlgorithmIDTemplate_Util
143#define NSS_Get_sgn_DigestInfoTemplate NSS_Get_sgn_DigestInfoTemplate_Util
144#define SEC_AnyTemplate SEC_AnyTemplate_Util
145#define SEC_BitStringTemplate SEC_BitStringTemplate_Util
146#define SEC_BMPStringTemplate SEC_BMPStringTemplate_Util
147#define SEC_BooleanTemplate SEC_BooleanTemplate_Util
148#define SEC_GeneralizedTimeTemplate SEC_GeneralizedTimeTemplate_Util
149#define SEC_IA5StringTemplate SEC_IA5StringTemplate_Util
150#define SEC_IntegerTemplate SEC_IntegerTemplate_Util
151#define SEC_NullTemplate SEC_NullTemplate_Util
152#define SEC_ObjectIDTemplate SEC_ObjectIDTemplate_Util
153#define SEC_OctetStringTemplate SEC_OctetStringTemplate_Util
154#define SEC_PointerToAnyTemplate SEC_PointerToAnyTemplate_Util
155#define SEC_PointerToOctetStringTemplate SEC_PointerToOctetStringTemplate_Util
156#define SEC_SetOfAnyTemplate SEC_SetOfAnyTemplate_Util
157#define SEC_UTCTimeTemplate SEC_UTCTimeTemplate_Util
158#define SEC_UTF8StringTemplate SEC_UTF8StringTemplate_Util
159#define SECOID_AlgorithmIDTemplate SECOID_AlgorithmIDTemplate_Util
160#define sgn_DigestInfoTemplate sgn_DigestInfoTemplate_Util
161
162#endif /* USE_UTIL_DIRECTLY */
163
164#endif /* _LIBUTIL_H_ */
165