117 #ifndef OPENSSL_NO_FP_API
123 #ifndef OPENSSL_NO_BIO
126 #ifndef OPENSSL_NO_LHASH
134 #ifndef OPENSSL_NO_ERR
135 #define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,d,e)
137 #define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0)
142 #define ERR_TXT_MALLOCED 0x01
143 #define ERR_TXT_STRING 0x02
145 #define ERR_FLAG_MARK 0x01
147 #define ERR_NUM_ERRORS 16
161 #define ERR_LIB_NONE 1
162 #define ERR_LIB_SYS 2
164 #define ERR_LIB_RSA 4
166 #define ERR_LIB_EVP 6
167 #define ERR_LIB_BUF 7
168 #define ERR_LIB_OBJ 8
169 #define ERR_LIB_PEM 9
170 #define ERR_LIB_DSA 10
171 #define ERR_LIB_X509 11
173 #define ERR_LIB_ASN1 13
174 #define ERR_LIB_CONF 14
175 #define ERR_LIB_CRYPTO 15
176 #define ERR_LIB_EC 16
177 #define ERR_LIB_SSL 20
183 #define ERR_LIB_BIO 32
184 #define ERR_LIB_PKCS7 33
185 #define ERR_LIB_X509V3 34
186 #define ERR_LIB_PKCS12 35
187 #define ERR_LIB_RAND 36
188 #define ERR_LIB_DSO 37
189 #define ERR_LIB_ENGINE 38
190 #define ERR_LIB_OCSP 39
191 #define ERR_LIB_UI 40
192 #define ERR_LIB_COMP 41
193 #define ERR_LIB_ECDSA 42
194 #define ERR_LIB_ECDH 43
195 #define ERR_LIB_STORE 44
196 #define ERR_LIB_FIPS 45
197 #define ERR_LIB_CMS 46
198 #define ERR_LIB_TS 47
199 #define ERR_LIB_HMAC 48
200 #define ERR_LIB_JPAKE 49
202 #define ERR_LIB_USER 128
204 #define SYSerr(f,r) ERR_PUT_error(ERR_LIB_SYS,(f),(r),__FILE__,__LINE__)
205 #define BNerr(f,r) ERR_PUT_error(ERR_LIB_BN,(f),(r),__FILE__,__LINE__)
206 #define RSAerr(f,r) ERR_PUT_error(ERR_LIB_RSA,(f),(r),__FILE__,__LINE__)
207 #define DHerr(f,r) ERR_PUT_error(ERR_LIB_DH,(f),(r),__FILE__,__LINE__)
208 #define EVPerr(f,r) ERR_PUT_error(ERR_LIB_EVP,(f),(r),__FILE__,__LINE__)
209 #define BUFerr(f,r) ERR_PUT_error(ERR_LIB_BUF,(f),(r),__FILE__,__LINE__)
210 #define OBJerr(f,r) ERR_PUT_error(ERR_LIB_OBJ,(f),(r),__FILE__,__LINE__)
211 #define PEMerr(f,r) ERR_PUT_error(ERR_LIB_PEM,(f),(r),__FILE__,__LINE__)
212 #define DSAerr(f,r) ERR_PUT_error(ERR_LIB_DSA,(f),(r),__FILE__,__LINE__)
213 #define X509err(f,r) ERR_PUT_error(ERR_LIB_X509,(f),(r),__FILE__,__LINE__)
214 #define ASN1err(f,r) ERR_PUT_error(ERR_LIB_ASN1,(f),(r),__FILE__,__LINE__)
215 #define CONFerr(f,r) ERR_PUT_error(ERR_LIB_CONF,(f),(r),__FILE__,__LINE__)
216 #define CRYPTOerr(f,r) ERR_PUT_error(ERR_LIB_CRYPTO,(f),(r),__FILE__,__LINE__)
217 #define ECerr(f,r) ERR_PUT_error(ERR_LIB_EC,(f),(r),__FILE__,__LINE__)
218 #define SSLerr(f,r) ERR_PUT_error(ERR_LIB_SSL,(f),(r),__FILE__,__LINE__)
219 #define BIOerr(f,r) ERR_PUT_error(ERR_LIB_BIO,(f),(r),__FILE__,__LINE__)
220 #define PKCS7err(f,r) ERR_PUT_error(ERR_LIB_PKCS7,(f),(r),__FILE__,__LINE__)
221 #define X509V3err(f,r) ERR_PUT_error(ERR_LIB_X509V3,(f),(r),__FILE__,__LINE__)
222 #define PKCS12err(f,r) ERR_PUT_error(ERR_LIB_PKCS12,(f),(r),__FILE__,__LINE__)
223 #define RANDerr(f,r) ERR_PUT_error(ERR_LIB_RAND,(f),(r),__FILE__,__LINE__)
224 #define DSOerr(f,r) ERR_PUT_error(ERR_LIB_DSO,(f),(r),__FILE__,__LINE__)
225 #define ENGINEerr(f,r) ERR_PUT_error(ERR_LIB_ENGINE,(f),(r),__FILE__,__LINE__)
226 #define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),__FILE__,__LINE__)
227 #define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),__FILE__,__LINE__)
228 #define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),__FILE__,__LINE__)
229 #define ECDSAerr(f,r) ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),__FILE__,__LINE__)
230 #define ECDHerr(f,r) ERR_PUT_error(ERR_LIB_ECDH,(f),(r),__FILE__,__LINE__)
231 #define STOREerr(f,r) ERR_PUT_error(ERR_LIB_STORE,(f),(r),__FILE__,__LINE__)
232 #define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),__FILE__,__LINE__)
233 #define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),__FILE__,__LINE__)
234 #define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),__FILE__,__LINE__)
235 #define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),__FILE__,__LINE__)
236 #define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__)
240 #define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)*0x1000000)| \
241 ((((unsigned long)f)&0xfffL)*0x1000)| \
242 ((((unsigned long)r)&0xfffL)))
243 #define ERR_GET_LIB(l) (int)((((unsigned long)l)>>24L)&0xffL)
244 #define ERR_GET_FUNC(l) (int)((((unsigned long)l)>>12L)&0xfffL)
245 #define ERR_GET_REASON(l) (int)((l)&0xfffL)
246 #define ERR_FATAL_ERROR(l) (int)((l)&ERR_R_FATAL)
250 #define SYS_F_FOPEN 1
251 #define SYS_F_CONNECT 2
252 #define SYS_F_GETSERVBYNAME 3
253 #define SYS_F_SOCKET 4
254 #define SYS_F_IOCTLSOCKET 5
256 #define SYS_F_LISTEN 7
257 #define SYS_F_ACCEPT 8
258 #define SYS_F_WSASTARTUP 9
259 #define SYS_F_OPENDIR 10
260 #define SYS_F_FREAD 11
264 #define ERR_R_SYS_LIB ERR_LIB_SYS
265 #define ERR_R_BN_LIB ERR_LIB_BN
266 #define ERR_R_RSA_LIB ERR_LIB_RSA
267 #define ERR_R_DH_LIB ERR_LIB_DH
268 #define ERR_R_EVP_LIB ERR_LIB_EVP
269 #define ERR_R_BUF_LIB ERR_LIB_BUF
270 #define ERR_R_OBJ_LIB ERR_LIB_OBJ
271 #define ERR_R_PEM_LIB ERR_LIB_PEM
272 #define ERR_R_DSA_LIB ERR_LIB_DSA
273 #define ERR_R_X509_LIB ERR_LIB_X509
274 #define ERR_R_ASN1_LIB ERR_LIB_ASN1
275 #define ERR_R_CONF_LIB ERR_LIB_CONF
276 #define ERR_R_CRYPTO_LIB ERR_LIB_CRYPTO
277 #define ERR_R_EC_LIB ERR_LIB_EC
278 #define ERR_R_SSL_LIB ERR_LIB_SSL
279 #define ERR_R_BIO_LIB ERR_LIB_BIO
280 #define ERR_R_PKCS7_LIB ERR_LIB_PKCS7
281 #define ERR_R_X509V3_LIB ERR_LIB_X509V3
282 #define ERR_R_PKCS12_LIB ERR_LIB_PKCS12
283 #define ERR_R_RAND_LIB ERR_LIB_RAND
284 #define ERR_R_DSO_LIB ERR_LIB_DSO
285 #define ERR_R_ENGINE_LIB ERR_LIB_ENGINE
286 #define ERR_R_OCSP_LIB ERR_LIB_OCSP
287 #define ERR_R_UI_LIB ERR_LIB_UI
288 #define ERR_R_COMP_LIB ERR_LIB_COMP
289 #define ERR_R_ECDSA_LIB ERR_LIB_ECDSA
290 #define ERR_R_ECDH_LIB ERR_LIB_ECDH
291 #define ERR_R_STORE_LIB ERR_LIB_STORE
292 #define ERR_R_TS_LIB ERR_LIB_TS
294 #define ERR_R_NESTED_ASN1_ERROR 58
295 #define ERR_R_BAD_ASN1_OBJECT_HEADER 59
296 #define ERR_R_BAD_GET_ASN1_OBJECT_CALL 60
297 #define ERR_R_EXPECTING_AN_ASN1_SEQUENCE 61
298 #define ERR_R_ASN1_LENGTH_MISMATCH 62
299 #define ERR_R_MISSING_ASN1_EOS 63
302 #define ERR_R_FATAL 64
303 #define ERR_R_MALLOC_FAILURE (1|ERR_R_FATAL)
304 #define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED (2|ERR_R_FATAL)
305 #define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL)
306 #define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL)
307 #define ERR_R_DISABLED (5|ERR_R_FATAL)
342 #ifndef OPENSSL_NO_FP_API
345 #ifndef OPENSSL_NO_BIO
357 #ifndef OPENSSL_NO_DEPRECATED
362 #ifndef OPENSSL_NO_LHASH