OLD | NEW |
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 /* | 4 /* |
5 * pkix_pl_common.h | 5 * pkix_pl_common.h |
6 * | 6 * |
7 * Common central header file included by all PL source files | 7 * Common central header file included by all PL source files |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "pkix_pl_ldapcertstore.h" | 68 #include "pkix_pl_ldapcertstore.h" |
69 #include "pkix_pl_ldaprequest.h" | 69 #include "pkix_pl_ldaprequest.h" |
70 #include "pkix_pl_ldapresponse.h" | 70 #include "pkix_pl_ldapresponse.h" |
71 #endif /* !NSS_PKIX_NO_LDAP */ | 71 #endif /* !NSS_PKIX_NO_LDAP */ |
72 #include "pkix_pl_nsscontext.h" | 72 #include "pkix_pl_nsscontext.h" |
73 #include "pkix_pl_httpcertstore.h" | 73 #include "pkix_pl_httpcertstore.h" |
74 #include "pkix_pl_httpdefaultclient.h" | 74 #include "pkix_pl_httpdefaultclient.h" |
75 #include "pkix_pl_infoaccess.h" | 75 #include "pkix_pl_infoaccess.h" |
76 #include "pkix_sample_modules.h" | 76 #include "pkix_sample_modules.h" |
77 | 77 |
78 #define MAX_DIGITS_32 (PKIX_UInt32) 10 | 78 #define MAX_DIGITS_32 (PKIX_UInt32)10 |
79 | 79 |
80 #define PKIX_PL_NSSCALL(type, func, args) \ | 80 #define PKIX_PL_NSSCALL(type, func, args) \ |
81 PKIX_ ## type ## _DEBUG_ARG("( Calling %s).\n", #func); \ | 81 PKIX_##type##_DEBUG_ARG("( Calling %s).\n", #func); \ |
82 (func args) | 82 (func args) |
83 | 83 |
84 #define PKIX_PL_NSSCALLRV(type, lvalue, func, args) \ | 84 #define PKIX_PL_NSSCALLRV(type, lvalue, func, args) \ |
85 PKIX_ ## type ## _DEBUG_ARG("( Calling %s).\n", #func); \ | 85 PKIX_##type##_DEBUG_ARG("( Calling %s).\n", #func); \ |
86 lvalue = (func args) | 86 lvalue = (func args) |
87 | 87 |
88 /* see source file for function documentation */ | 88 /* see source file for function documentation */ |
89 | 89 |
90 PKIX_Error * | 90 PKIX_Error *pkix_LockObject(PKIX_PL_Object *object, void *plContext); |
91 pkix_LockObject( | |
92 PKIX_PL_Object *object, | |
93 void *plContext); | |
94 | 91 |
95 PKIX_Error * | 92 PKIX_Error *pkix_UnlockObject(PKIX_PL_Object *object, void *plContext); |
96 pkix_UnlockObject( | |
97 PKIX_PL_Object *object, | |
98 void *plContext); | |
99 | 93 |
100 PKIX_Boolean | 94 PKIX_Boolean pkix_pl_UInt32_Overflows(char *string); |
101 pkix_pl_UInt32_Overflows(char *string); | |
102 | 95 |
103 PKIX_Error * | 96 PKIX_Error *pkix_pl_helperBytes2Ascii(PKIX_UInt32 *tokens, |
104 pkix_pl_helperBytes2Ascii( | 97 PKIX_UInt32 numTokens, char **pAscii, |
105 PKIX_UInt32 *tokens, | 98 void *plContext); |
106 PKIX_UInt32 numTokens, | |
107 char **pAscii, | |
108 void *plContext); | |
109 | 99 |
110 PKIX_Error * | 100 PKIX_Error *pkix_pl_ipAddrBytes2Ascii(SECItem *secItem, char **pAscii, |
111 pkix_pl_ipAddrBytes2Ascii( | 101 void *plContext); |
112 SECItem *secItem, | |
113 char **pAscii, | |
114 void *plContext); | |
115 | 102 |
116 PKIX_Error * | 103 PKIX_Error *pkix_pl_oidBytes2Ascii(SECItem *secItem, char **pAscii, |
117 pkix_pl_oidBytes2Ascii( | 104 void *plContext); |
118 SECItem *secItem, | |
119 char **pAscii, | |
120 void *plContext); | |
121 | 105 |
122 /* --String-Encoding-Conversion-Functions------------------------ */ | 106 /* --String-Encoding-Conversion-Functions------------------------ */ |
123 | 107 |
124 PKIX_Error * | 108 PKIX_Error *pkix_UTF16_to_EscASCII(const void *utf16String, |
125 pkix_UTF16_to_EscASCII( | 109 PKIX_UInt32 utf16Length, PKIX_Boolean debug, |
126 const void *utf16String, | 110 char **pDest, PKIX_UInt32 *pLength, |
127 PKIX_UInt32 utf16Length, | 111 void *plContext); |
128 PKIX_Boolean debug, | |
129 char **pDest, | |
130 PKIX_UInt32 *pLength, | |
131 void *plContext); | |
132 | 112 |
133 PKIX_Error * | 113 PKIX_Error *pkix_EscASCII_to_UTF16(const char *escAsciiString, |
134 pkix_EscASCII_to_UTF16( | 114 PKIX_UInt32 escAsciiLen, PKIX_Boolean debug, |
135 const char *escAsciiString, | 115 void **pDest, PKIX_UInt32 *pLength, |
136 PKIX_UInt32 escAsciiLen, | 116 void *plContext); |
137 PKIX_Boolean debug, | |
138 void **pDest, | |
139 PKIX_UInt32 *pLength, | |
140 void *plContext); | |
141 | 117 |
142 PKIX_Error * | 118 PKIX_Error *pkix_UTF16_to_UTF8(const void *utf16String, PKIX_UInt32 utf16Length, |
143 pkix_UTF16_to_UTF8( | 119 PKIX_Boolean null_Term, void **pDest, |
144 const void *utf16String, | 120 PKIX_UInt32 *pLength, void *plContext); |
145 PKIX_UInt32 utf16Length, | |
146 PKIX_Boolean null_Term, | |
147 void **pDest, | |
148 PKIX_UInt32 *pLength, | |
149 void *plContext); | |
150 | 121 |
151 PKIX_Error * | 122 PKIX_Error *pkix_UTF8_to_UTF16(const void *utf8Source, PKIX_UInt32 utf8Length, |
152 pkix_UTF8_to_UTF16( | 123 void **pDest, PKIX_UInt32 *pLength, |
153 const void *utf8Source, | 124 void *plContext); |
154 PKIX_UInt32 utf8Length, | |
155 void **pDest, | |
156 PKIX_UInt32 *pLength, | |
157 void *plContext); | |
158 | 125 |
159 #endif /* _PKIX_PL_COMMON_H */ | 126 #endif /* _PKIX_PL_COMMON_H */ |
OLD | NEW |