Lines Matching refs:error
65 # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
114 /* Include generated data (error codes) */
151 #error "Py_SSL_DEFAULT_CIPHERS 0 needs Py_SSL_DEFAULT_CIPHER_STRING"
178 #error "Unsupported PY_SSL_DEFAULT_CIPHERS"
189 PY_SSL_ERROR_SYSCALL, /* look at error stack/return value/errno */
248 #error "PY_PROTO_MINIMUM_AVAILABLE not found"
262 #error "PY_PROTO_MAXIMUM_AVAILABLE not found"
299 int ssl; /* last seen error from SSL */
300 int c; /* last seen error from libc */
302 int ws; /* last seen error from winsock */
315 _PySSLError err; /* last seen error from various sources */
316 /* Some SSL callbacks don't have error reporting. Callback wrappers
376 /* Wrap error strings with filename and line # */
395 "An error occurred in the SSL implementation.");
412 "System error when attempting SSL operation.");
475 errstr = "unknown error";
477 /* verify code for cert validation error */
631 /* underlying BIO reported an I/O error */
650 errstr = "Some I/O error occurred";
670 * zero return value to SSL_ERROR_SSL with a special error code. */
682 errstr = "Invalid error code";
748 goto error;
756 goto error;
765 goto error;
771 goto error;
776 error:
826 /* Make sure the SSL error state is initialized */
970 goto error;
986 goto error;
990 goto error;
994 goto error;
1006 error:
2374 goto error;
2378 goto error;
2382 goto error;
2393 goto error;
2410 goto error;
2414 goto error;
2427 error:
2503 goto error;
2517 goto error;
2546 goto error;
2568 goto error;
2577 goto error;
2580 goto error;
2592 error:
2689 goto error;
2694 goto error;
2697 /* Retain the SSL error code */
2706 goto error;
2713 error:
2797 goto error;
2804 goto error;
2808 goto error;
2813 goto error;
2818 goto error;
2822 error:
3167 goto error;
3179 goto error;
3208 error:
3263 /* Clearing the error queue is necessary on some OpenSSL versions,
3264 otherwise the error will be reported again when another SSL call
3735 int error;
3753 goto error;
3765 goto error;
3771 goto error;
3779 goto error;
3787 error:
3800 if (pw_info->error) {
3802 * callback multiple times which can lead to fatal Python error in
3804 goto error;
3812 goto error;
3817 goto error;
3825 goto error;
3832 error:
3835 pw_info->error = 1;
3874 goto error;
3881 goto error;
3891 if (pw_info.error) {
3893 /* the password callback has already set the error information */
3902 goto error;
3912 if (pw_info.error) {
3914 /* the password callback has already set the error information */
3923 goto error;
3930 goto error;
3937 error:
3946 /* internal helper function, returns -1 on error
3998 /* cert already in hash table, not an error */
4020 /* EOF ASN1 file, not an error */
4026 /* EOF PEM file, not an error */
4071 goto error;
4078 goto error;
4085 goto error;
4096 goto error;
4104 goto error;
4110 goto error;
4117 goto error;
4122 goto error;
4130 goto error;
4151 goto error;
4156 error:
4298 goto error; \
4302 goto error;
4321 error:
4424 goto error;
4437 goto error;
4446 goto error;
4463 * None and SSLContext are OK, integer or other values are an error.
4481 error:
4658 goto error;
4681 goto error;
4684 goto error;
4691 error:
5309 if (!target) goto error; \
5320 error:
5435 DWORD size, error, i;
5439 error = GetLastError();
5440 if (error == CRYPT_E_NOT_FOUND) {
5443 return PyErr_SetFromWindowsErr(error);
5454 error = GetLastError();
5455 if (error == CRYPT_E_NOT_FOUND) {
5458 return PyErr_SetFromWindowsErr(error);
5462 goto error;
5471 goto error;
5477 goto error;
5481 error:
5605 /* loop ended with an error, need to clean up context manually */
5609 /* In error cases cert, enc and tup may not be NULL */
5619 /* This error case might shadow another exception.*/
5693 /* loop ended with an error, need to clean up context manually */
5697 /* In error cases cert, enc and tup may not be NULL */
5706 /* This error case might shadow another exception.*/
5751 if ((state) == NULL) goto error; \
5752 if (PyModule_AddObjectRef(module, name, exc) < 0) goto error; \
5758 goto error;
5761 goto error;
5767 goto error;
5814 error:
6097 /* Mappings for error codes */